meta.yaml 2.1 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11
{% set name = 'beat.editor' %}

package:
  name: {{ name }}
  version: {{ environ.get('BOB_PACKAGE_VERSION', '0.0.1') }}

build:
  number: {{ environ.get('BOB_BUILD_NUMBER', 0) }}
  run_exports:
    - {{ pin_subpackage(name) }}
  script:
12
    - cd {{ environ.get('RECIPE_DIR') }}/js
13 14
    - npm install
    - npm run build
15
    - cd {{ environ.get('RECIPE_DIR') + '/..' }}
16 17 18 19
    {% if environ.get('BUILD_EGG') %}
    - python setup.py sdist --formats=zip
    {% endif %}
    - python setup.py install --single-version-externally-managed --record record.txt
20 21 22
    # installs the documentation source, readme to share/doc so it is available
    # during test time
    - install -d "${PREFIX}/share/doc/{{ name }}"
23
    - cp -R README.rst requirements.txt doc "${PREFIX}/share/doc/{{ name }}/"
24 25 26 27 28 29 30 31 32 33 34 35 36 37

requirements:
  host:
    - python {{ python }}
    - setuptools {{ setuptools }}
    - nodejs {{ nodejs }}
  run:
    - python
    - setuptools
    - simplejson
    - jinja2
    - flask
    - flask-cors
    - flask-restful
38 39
    - docopt
    - beat.cmdline
40 41

test:
42 43 44
  script_env:
    - BEAT_BROWSER_TESTS

André Anjos's avatar
André Anjos committed
45
  files:
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
    - js

  requires:
    - bob-devel {{ bob_devel }}.*
    - beat-devel {{ beat_devel }}.*
    - bob.extension
    - nose
    - coverage
    - sphinx
    - sphinx_rtd_theme
    - nodejs

  imports:
    - {{ name }}

  commands:
62
    - beat editor --help
63
    - beat editor serve --help
64
    - nosetests --with-coverage --cover-package={{ name }} -sv {{ name }}
65 66 67
    - export CHROMIUM_BIN=chromium-browser
    - if [ -n "${BEAT_BROWSER_TESTS}" ]; then pushd {{ environ.get('RECIPE_DIR') }}/js; npm install; npm test; popd; fi
    - unset CHROMIUM_BIN
68 69 70
    - sphinx-build -aEW ${PREFIX}/share/doc/{{ name }}/doc sphinx
    - if [ -n "${CI_PROJECT_DIR}" ]; then mv sphinx "${CI_PROJECT_DIR}/"; fi
    - sphinx-build -aEb doctest ${PREFIX}/share/doc/{{ name }}/doc sphinx
71 72
    - conda inspect linkages -p $PREFIX {{ name }}  # [not win]
    - conda inspect objects -p $PREFIX {{ name }}  # [osx]
73 74 75 76 77 78

about:
  home: https://www.idiap.ch/software/beat/
  license: AGPLv3
  summary: Local editor for BEAT objects
  license_family: AGPL
79
  license_file: ../LICENSE.AGPL