Skip to content
Snippets Groups Projects
Commit aa20560d authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

update conda recipe template to use pip

parent 508ca3a9
Branches
Tags
1 merge request!250Use Pip
Pipeline #54673 passed
......@@ -385,6 +385,8 @@ pandas:
- 1.3.3
pillow:
- 8.3.2
pip:
- 21.2.4
pkg_config:
- 0.29.2
psutil:
......
......@@ -12,9 +12,9 @@ build:
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
- "{{ 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 }}"
......@@ -25,6 +25,7 @@ requirements:
host:
- python {{ python }}
- setuptools {{ setuptools }}
- pip {{ pip }}
- bob.extension
# place your other host dependencies here (same as requirements.txt)
# use the format:
......@@ -47,6 +48,7 @@ test:
imports:
- {{ name }}
commands:
- pip check
# runs tests for package only, report only what is in the package
# creates html and xml reports and place them in specific directories
- pytest --verbose --cov {{ name }} --cov-report term-missing --cov-report html:{{ project_dir }}/sphinx/coverage --cov-report xml:{{ project_dir }}/coverage.xml --pyargs {{ name }}
......@@ -55,6 +57,7 @@ test:
- conda inspect linkages -p $PREFIX {{ name }} # [not win]
- conda inspect objects -p $PREFIX {{ name }} # [osx]
requires:
- pip {{ pip }}
- pytest {{ pytest }}
- pytest-cov {{ pytest_cov }}
- coverage {{ coverage }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment