meta.yaml 1.33 KB
Newer Older
Amir MOHAMMADI's avatar
Amir MOHAMMADI committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{% set name = 'bob.db.mnist' %}
{% 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') %}
15
    - "{{ PYTHON }} setup.py sdist --formats=zip"
Amir MOHAMMADI's avatar
Amir MOHAMMADI committed
16
    {% endif %}
17
    - bob_dbmanage.py {{ name.replace('bob.db.', '') }} download --missing
18
    - "{{ PYTHON }} -m pip install . -vv"
Amir MOHAMMADI's avatar
Amir MOHAMMADI committed
19
20
21
22
23

requirements:
  host:
    - python {{ python }}
    - setuptools {{ setuptools }}
24
    - pip {{ pip }}
Amir MOHAMMADI's avatar
Amir MOHAMMADI committed
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
    - bob.db.base
  run:
    - python
    - setuptools

test:
  imports:
    - {{ name }}
  commands:
    - 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:
40
41
42
43
    - nose {{ nose }}
    - coverage {{ coverage }}
    - sphinx {{ sphinx }}
    - sphinx_rtd_theme {{ sphinx_rtd_theme }}
Amir MOHAMMADI's avatar
Amir MOHAMMADI committed
44
45
46
47
48
49

about:
  home: https://www.idiap.ch/software/bob/
  license: BSD 3-Clause
  summary: MNIST Database Access API for Bob
  license_family: BSD