meta.yaml 2 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{% set name = '(( name ))' %}
{% set project_dir = environ.get('RECIPE_DIR') + '/..' %}

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 {{ project_dir }}
    {% if environ.get('BUILD_EGG') %}
    - python setup.py sdist --formats=zip
    {% endif %}
    - python setup.py install --single-version-externally-managed --record record.txt
18
19
20
21
    # 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 doc "${PREFIX}/share/doc/{{ name }}/"
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44

requirements:
  # place your build dependencies before the 'host' section
  host:
    - python {{ python }}
    - setuptools {{ setuptools }}
    # place your other host dependencies here
  run:
    - python
    - setuptools
    # place other runtime dependencies here (same as requirements.txt)

test:
  imports:
    - {{ name }}
  commands:
    # test commands ("script" entry-points) from your package here
    - nosetests --with-coverage --cover-package={{ name }} -sv {{ name }}
    - sphinx-build -aEW {{ project_dir }}/doc {{ project_dir }}/sphinx
    - sphinx-build -aEb doctest {{ project_dir }}/doc sphinx
    - conda inspect linkages -p $PREFIX {{ name }}  # [not win]
    - conda inspect objects -p $PREFIX {{ name }}  # [osx]
  requires:
André Anjos's avatar
André Anjos committed
45
46
    - bob-devel {{ bob_devel }}.*(% if group == 'beat' %)
    - beat-devel {{ beat_devel }}.*(% endif %)
47
48
49
50
51
52
53
    - nose
    - coverage
    - sphinx
    - sphinx_rtd_theme
    # extend this list with further test-time-only dependencies

about:
54
  summary: (( title ))
André Anjos's avatar
André Anjos committed
55
  home: https://www.idiap.ch/software/{{ group }}/
56
57
  license: (% if license == 'gplv3' %)GNU General Public License v3 (GPLv3)(% else %)BSD 3-Clause(% endif %)
  license_family: (% if license == 'gplv3' %)GPL(% else %)BSD(% endif %)
58
  license_file: (% if license == 'gplv3' %)../COPYING(% else %)../LICENSE(% endif %)