Commit aa20560d authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

update conda recipe template to use pip

parent 508ca3a9
Pipeline #54673 passed with stage
in 14 minutes and 39 seconds
...@@ -385,6 +385,8 @@ pandas: ...@@ -385,6 +385,8 @@ pandas:
- 1.3.3 - 1.3.3
pillow: pillow:
- 8.3.2 - 8.3.2
pip:
- 21.2.4
pkg_config: pkg_config:
- 0.29.2 - 0.29.2
psutil: psutil:
......
...@@ -12,9 +12,9 @@ build: ...@@ -12,9 +12,9 @@ build:
script: script:
- cd {{ project_dir }} - cd {{ project_dir }}
{% if environ.get('BUILD_EGG') %} {% if environ.get('BUILD_EGG') %}
- python setup.py sdist --formats=zip - "{{ PYTHON }} setup.py sdist --formats=zip"
{% endif %} {% 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 # installs the documentation source, readme to share/doc so it is available
# during test time # during test time
- install -d "${PREFIX}/share/doc/{{ name }}" - install -d "${PREFIX}/share/doc/{{ name }}"
...@@ -25,6 +25,7 @@ requirements: ...@@ -25,6 +25,7 @@ requirements:
host: host:
- python {{ python }} - python {{ python }}
- setuptools {{ setuptools }} - setuptools {{ setuptools }}
- pip {{ pip }}
- bob.extension - bob.extension
# place your other host dependencies here (same as requirements.txt) # place your other host dependencies here (same as requirements.txt)
# use the format: # use the format:
...@@ -47,6 +48,7 @@ test: ...@@ -47,6 +48,7 @@ test:
imports: imports:
- {{ name }} - {{ name }}
commands: commands:
- pip check
# runs tests for package only, report only what is in the package # runs tests for package only, report only what is in the package
# creates html and xml reports and place them in specific directories # 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 }} - 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: ...@@ -55,6 +57,7 @@ test:
- 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: requires:
- pip {{ pip }}
- pytest {{ pytest }} - pytest {{ pytest }}
- pytest-cov {{ pytest_cov }} - pytest-cov {{ pytest_cov }}
- coverage {{ coverage }} - coverage {{ coverage }}
......
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