{% set name = 'beat.core' %} package: name: {{ name }} version: {{ environ.get('BOB_PACKAGE_VERSION', '0.0.1') }} build: entry_points: - worker = beat.core.scripts.worker:main number: {{ environ.get('BOB_BUILD_NUMBER', 0) }} run_exports: - {{ pin_subpackage(name) }} script: - 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 }} run: - python - setuptools - docker-py - docopt - python-graphviz - jsonschema >=3.0.0 - numpy - pip - pyzmq - simplejson - six - beat.backend.python >=1.7.0b0 - matplotlib - pillow test: requires: - bob-devel {{ bob_devel }}.* - beat-devel {{ beat_devel }}.* - bob.extension - ddt - nose - coverage - sphinx - sphinx_rtd_theme imports: - {{ name }} commands: # pulls required images once before running the tests - python -c "from beat.core.test.utils import pull_docker_test_images as f; f()" - worker --help - nosetests --with-coverage --cover-package={{ name }} -sv {{ name }}.test.test_algorithm_loading - 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: BSD summary: Core modules and definitions for the BEAT platform license_family: BSD license_file: ../LICENSE