Commit a1e232de authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira
Browse files

[conda] patch the recipe

parent 14008116
Pipeline #58977 failed with stages
in 19 minutes and 6 seconds
......@@ -6,35 +6,41 @@ package:
version: {{ environ.get('BOB_PACKAGE_VERSION', '0.0.1') }}
build:
entry_points:
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
- "{{ PYTHON }} setup.py sdist --formats=zip"
{% endif %}
- python setup.py install --single-version-externally-managed --record record.txt
# 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 requirements.txt doc "${PREFIX}/share/doc/{{ name }}/"
- "{{ PYTHON }} -m pip install . -vv"
requirements:
# place your build dependencies before the 'host' section
host:
- python {{ python }}
- setuptools {{ setuptools }}
- pip {{ pip }}
- bob.extension
# place your other host dependencies here
run:
- python
- setuptools
- bob.measure
- bob.bio.base
- bob.bio.face
- seaborn
# place other runtime dependencies here (same as requirements.txt)
- matplotlib {{ matplotlib }}
- pytorch {{ pytorch }}
- torchvision {{ torchvision }}
- tabulate {{ tabulate }}
run:
- python
- setuptools
- {{ pin_compatible('matplotlib', max_pin="x.x") }}
- {{ pin_compatible('six') }}
- {{ pin_compatible('pytorch', max_pin="x.x") }}
- {{ pin_compatible('torchvision', max_pin="x.x") }}
- {{ pin_compatible('pytorch-lightning', max_pin="x.x") }}
- pydeprecate==0.3.1
test:
imports:
......@@ -42,21 +48,28 @@ test:
commands:
# runs tests for package only, report only what is in the package
# creates html and xml reports and place them in specific directories
- bob bio demographics --help
- bob bio demographics calibration --help
- bob bio demographics regularization-level-fairness --help
- bob bio demographics reports --help
- bob bio demographics score-level-fairness --help
- bob bio demographics train-regularization-level-fairness --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
- sphinx-build -aEW {{ project_dir }}/doc {{ project_dir }}/sphinx # [linux]
- sphinx-build -aEb doctest {{ project_dir }}/doc sphinx # [linux]
- conda inspect linkages -p $PREFIX {{ name }} # [not win]
- conda inspect objects -p $PREFIX {{ name }} # [osx]
requires:
- pytest
- pytest-cov
- coverage
- sphinx
- sphinx_rtd_theme
# extend this list with further test-time-only dependencies
requires:
- nose {{ nose }}
- pytest {{ pytest }}
- pytest-cov {{ pytest_cov }}
- coverage {{ coverage }}
- sphinx {{ sphinx }}
- sphinx_rtd_theme {{ sphinx_rtd_theme }}
- pydeprecate==0.3.1
about:
summary: bob.bio.demographics
home: https://www.idiap.ch/software/bob/
license: BSD 3-Clause
license_family: BSD
\ No newline at end of file
license: BSD License
summary: Tools for running face recognition experiments with demographic features
license_family: BSD
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment