From c03c6a5846e8c0b2707b98baabacfff3d038e657 Mon Sep 17 00:00:00 2001 From: Samuel Gaist <samuel.gaist@idiap.ch> Date: Mon, 11 Oct 2021 09:35:11 +0200 Subject: [PATCH] [conda] Refactor the recipe to follow bob's latest standard --- conda/meta.yaml | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/conda/meta.yaml b/conda/meta.yaml index 8fc171e2..a4cdabae 100644 --- a/conda/meta.yaml +++ b/conda/meta.yaml @@ -12,36 +12,41 @@ build: script: - cd {{ project_dir }} {% if environ.get('BUILD_EGG') %} - - python setup.py sdist --formats=zip + - "{{ PYTHON }} setup.py sdist --formats=zip" {% endif %} - - "{{ PYTHON }} -m pip install . --no-deps --ignore-installed --no-cache-dir -vvv" + - "{{ PYTHON }} -m pip install . -vv" + # 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 }}/" requirements: host: - - pip - python {{ python }} - setuptools {{ setuptools }} + - pip {{ pip }} + - bob.extension + - beat.cmdline >=1.10.2 + - docopt {{ docopt }} + - click {{ click }} + - click-plugins {{ click_plugins }} run: - python - setuptools - pyqt - - click - - click-plugins - - docopt - - beat.cmdline >=1.10.2 + - {{ pin_compatible('docopt') }} + - {{ pin_compatible('click') }} + - {{ pin_compatible('click-plugins') }} test: requires: - - bob-devel {{ bob_devel }}.* - - beat-devel {{ beat_devel }}.* - - bob.extension - - pytest + - pytest {{ pytest }} - pytest-qt - - pytest-cov - - coverage - - sphinx - - sphinx_rtd_theme + - pytest-cov {{ pytest_cov }} + - coverage {{ coverage }} + - sphinx {{ sphinx }} + - sphinx_rtd_theme {{ sphinx_rtd_theme }} imports: - {{ name }} -- GitLab