{% 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: - cd {{ environ.get('RECIPE_DIR') }}/js - npm install - npm run build - cd {{ environ.get('RECIPE_DIR') + '/..' }} {% if environ.get('BUILD_EGG') %} - python setup.py sdist --formats=zip {% endif %} - python setup.py install --single-version-externally-managed --record record.txt # installs the documentation source, readme to share/doc so it is available # during test time - install -d "${PREFIX}/share/doc/{{ name }}" - cp -R README.rst requirements.txt doc "${PREFIX}/share/doc/{{ name }}/" requirements: host: - python {{ python }} - setuptools {{ setuptools }} - nodejs {{ nodejs }} run: - python - setuptools - simplejson - jinja2 - flask - flask-cors - flask-restful - docopt - beat.cmdline test: script_env: - BEAT_BROWSER_TESTS files: - js requires: - bob-devel {{ bob_devel }}.* - beat-devel {{ beat_devel }}.* - bob.extension - nose - coverage - sphinx - sphinx_rtd_theme - nodejs imports: - {{ name }} commands: - beat editor --help - beat editor serve --help - nosetests --with-coverage --cover-package={{ name }} -sv {{ name }} - 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 - 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 - conda inspect linkages -p $PREFIX {{ name }} # [not win] - conda inspect objects -p $PREFIX {{ name }} # [osx] about: home: https://www.idiap.ch/software/beat/ license: AGPLv3 summary: Local editor for BEAT objects license_family: AGPL license_file: ../LICENSE.AGPL