Skip to content
Snippets Groups Projects
Commit 19ef72b4 authored by Yannick DAYER's avatar Yannick DAYER
Browse files

Simplify conda/meta.yaml further.

parent 401c4f11
Branches
Tags
1 merge request!69Cookiecutter restructuration
Pipeline #65985 failed
{% set data = load_file_data(RECIPE_DIR + '/../pyproject.toml') %} {% set data = load_file_data(RECIPE_DIR + '/../pyproject.toml') %}
{% set name = data['project']['name'] %} {% set name = data['project']['name'] %}
{% set project_dir = environ.get('RECIPE_DIR') + '/..' %}
package: package:
name: {{ name }} name: {{ name }}
...@@ -12,12 +11,7 @@ build: ...@@ -12,12 +11,7 @@ build:
run_exports: run_exports:
- {{ pin_subpackage(name) }} - {{ pin_subpackage(name) }}
script: script:
- cd {{ project_dir }} - "{{ PYTHON }} -m pip install {{ SRC_DIR }} -vv"
- "{{ 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 doc "${PREFIX}/share/doc/{{ name }}/"
requirements: requirements:
host: host:
...@@ -33,21 +27,16 @@ requirements: ...@@ -33,21 +27,16 @@ requirements:
run: run:
- python - python
- setuptools - setuptools
- {{ pin_compatible('numpy', max_pin='x.x') }} - {{ pin_compatible('numpy') }}
- {{ pin_compatible('dask') }} - {{ pin_compatible('dask') }}
- {{ pin_compatible('dask-ml') }} - {{ pin_compatible('dask-ml') }}
- {{ pin_compatible('h5py') }} - {{ pin_compatible('h5py') }}
# scikit-learn keeps breaking API in minor versions, so we pin to the - {{ pin_compatible('scikit-learn') }}
# next minor version
- {{ pin_compatible('scikit-learn', max_pin='x.x') }}
test: test:
imports: imports:
- {{ name.replace('-','_') }} - {{ name.replace('-','_') }}
commands: commands:
# runs tests for package only, report only what is in the package
# creates xml tests report and place it in a specific directory
# creates html and xml coverage reports and place them in a specific directory
- 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]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment