meta.yaml 2 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
{% 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:
14
    - cd {{ environ.get('RECIPE_DIR') + '/..' }}
15 16 17 18
    {% if environ.get('BUILD_EGG') %}
    - python setup.py sdist --formats=zip
    {% endif %}
    - python setup.py install --single-version-externally-managed --record record.txt
19 20 21
    # installs the documentation source, readme to share/doc so it is available
    # during test time
    - install -d "${PREFIX}/share/doc/{{ name }}"
22
    - cp -R README.rst requirements.txt doc "${PREFIX}/share/doc/{{ name }}/"
23 24 25 26 27 28 29 30

requirements:
  host:
    - python {{ python }}
    - setuptools {{ setuptools }}
  run:
    - python
    - setuptools
André Anjos's avatar
André Anjos committed
31
    - docker-py
32
    - docopt
André Anjos's avatar
André Anjos committed
33
    - python-graphviz
34 35 36 37 38 39
    - jsonschema
    - numpy
    - pip
    - pyzmq
    - simplejson
    - six
40
    - beat.backend.python >=1.6.0a0
41
    - matplotlib
André Anjos's avatar
André Anjos committed
42
    - pillow
43 44 45

test:
  requires:
46
    - bob-devel {{ bob_devel }}.*
47 48 49 50 51 52 53 54 55 56 57
    - beat-devel {{ beat_devel }}.*
    - bob.extension
    - nose
    - coverage
    - sphinx
    - sphinx_rtd_theme

  imports:
    - {{ name }}

  commands:
58
    # pulls required images once before running the tests
59
    - python -c "from beat.core.test.utils import pull_docker_test_images as f; f()"
60
    - worker --help
61
    - nosetests --with-coverage --cover-package={{ name }} -sv {{ name }}
62 63 64
    - 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
65 66 67 68 69 70
    - 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
André Anjos's avatar
André Anjos committed
71
  summary: Core modules and definitions for the BEAT platform
72
  license_family: AGPL
73
  license_file: ../LICENSE.AGPL