diff --git a/conda/meta.yaml b/conda/meta.yaml index 6739adae253282464e411ac7d5f29b899cdd4d94..8fe822929cbf6c661943bf978c255f3446402d62 100644 --- a/conda/meta.yaml +++ b/conda/meta.yaml @@ -1,20 +1,20 @@ -{% set name = 'bob.fusion.base' %} -{% set project_dir = environ.get('RECIPE_DIR') + '/..' %} +{% set data = load_file_data(RECIPE_DIR + '/../pyproject.toml') %} +{% set name = data['project']['name'] %} package: name: {{ name }} - version: {{ environ.get('BOB_PACKAGE_VERSION', '0.0.1') }} + version: {{ data['project']['version'] }} + +source: + path: .. build: + noarch: python 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 }} -m pip install . -vv" + - "{{ PYTHON }} -m pip install {{ SRC_DIR }} -vv" requirements: host: @@ -31,6 +31,10 @@ requirements: run: - python - setuptools + - bob.extension + - bob.measure + - bob.learn.em + - bob.bio.base - {{ pin_compatible('matplotlib') }} - {{ pin_compatible('numpy') }} - {{ pin_compatible('scikit-learn') }} @@ -39,24 +43,11 @@ test: imports: - {{ name }} commands: - - bob fusion fuse --help - - bob fusion resource --help - - bob fusion resource - - bob fusion boundary --help - - pytest --verbose --cov {{ name }} --cov-report term-missing --cov-report html:{{ project_dir }}/sphinx/coverage --cov-report xml:{{ project_dir }}/coverage.xml --pyargs {{ 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: - - pytest {{ pytest }} - - pytest-cov {{ pytest_cov }} - - coverage {{ coverage }} - - sphinx {{ sphinx }} - - sphinx_rtd_theme {{ sphinx_rtd_theme }} about: - home: https://www.idiap.ch/software/bob/ - license: GPL-3.0 - summary: Score fusion in biometric and pad experiments + home: {{ data['project']['urls']['homepage'] }} + summary: {{ data['project']['description'] }} + license: {{ data['project']['license']['text'] }} license_family: GPL