Skip to content
Snippets Groups Projects
Commit 89725e81 authored by André MAYORAZ's avatar André MAYORAZ
Browse files

[conda] Updated meta.yaml to new process

parent fbadec84
No related branches found
No related tags found
1 merge request!17Resolve "Switch to new CI/CD configuration"
Pipeline #69793 failed
{% set name = 'bob.fusion.base' %} {% set data = load_file_data(RECIPE_DIR + '/../pyproject.toml') %}
{% set project_dir = environ.get('RECIPE_DIR') + '/..' %} {% set name = data['project']['name'] %}
package: package:
name: {{ name }} name: {{ name }}
version: {{ environ.get('BOB_PACKAGE_VERSION', '0.0.1') }} version: {{ data['project']['version'] }}
source:
path: ..
build: build:
noarch: python
number: {{ environ.get('BOB_BUILD_NUMBER', 0) }} number: {{ environ.get('BOB_BUILD_NUMBER', 0) }}
run_exports: run_exports:
- {{ pin_subpackage(name) }} - {{ pin_subpackage(name) }}
script: script:
- cd {{ project_dir }} - "{{ PYTHON }} -m pip install {{ SRC_DIR }} -vv"
{% if environ.get('BUILD_EGG') %}
- "{{ PYTHON }} setup.py sdist --formats=zip"
{% endif %}
- "{{ PYTHON }} -m pip install . -vv"
requirements: requirements:
host: host:
...@@ -31,6 +31,10 @@ requirements: ...@@ -31,6 +31,10 @@ requirements:
run: run:
- python - python
- setuptools - setuptools
- bob.extension
- bob.measure
- bob.learn.em
- bob.bio.base
- {{ pin_compatible('matplotlib') }} - {{ pin_compatible('matplotlib') }}
- {{ pin_compatible('numpy') }} - {{ pin_compatible('numpy') }}
- {{ pin_compatible('scikit-learn') }} - {{ pin_compatible('scikit-learn') }}
...@@ -39,24 +43,11 @@ test: ...@@ -39,24 +43,11 @@ test:
imports: imports:
- {{ name }} - {{ name }}
commands: 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 linkages -p $PREFIX {{ name }} # [not win]
- conda inspect objects -p $PREFIX {{ name }} # [osx] - 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: about:
home: https://www.idiap.ch/software/bob/ home: {{ data['project']['urls']['homepage'] }}
license: GPL-3.0 summary: {{ data['project']['description'] }}
summary: Score fusion in biometric and pad experiments license: {{ data['project']['license']['text'] }}
license_family: GPL license_family: GPL
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment