meta.yaml 1.86 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 {{ project_dir }}
13 14 15 16
    {% if environ.get('BUILD_EGG') %}
    - python setup.py sdist --formats=zip
    {% endif %}
    - python setup.py install --single-version-externally-managed --record record.txt
17 18 19
    # installs the documentation source, readme to share/doc so it is available
    # during test time
    - install -d "${PREFIX}/share/doc/{{ name }}"
20
    - cp -R README.rst requirements.txt doc "${PREFIX}/share/doc/{{ name }}/"
21 22 23

requirements:
  host:
24
    - pip
25 26
    - python {{ python }}
    - setuptools {{ setuptools }}
27

28 29 30 31
  run:
    - python
    - setuptools
    - jinja2
32 33 34
    - pyqt
    - click
    - click-plugins
35 36
    - docopt
    - beat.cmdline
37 38 39 40 41 42 43

test:
  requires:
    - bob-devel {{ bob_devel }}.*
    - beat-devel {{ beat_devel }}.*
    - bob.extension
    - nose
44
    - pytest
45 46 47 48 49 50 51 52
    - coverage
    - sphinx
    - sphinx_rtd_theme

  imports:
    - {{ name }}

  commands:
53
    - beat editor --help
54
    - nosetests --with-coverage --cover-package={{ name }} -sv {{ name }}
55
    - export CHROMIUM_BIN=chromium-browser
56
    - if [ -n "${BEAT_BROWSER_TESTS}" ]; then python linkeditor.py; cd js; npm install; npm test; cd -; fi
57
    - unset CHROMIUM_BIN
58 59 60
    - 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
61 62
    - conda inspect linkages -p $PREFIX {{ name }}  # [not win]
    - conda inspect objects -p $PREFIX {{ name }}  # [osx]
63 64 65 66 67 68

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