diff --git a/conda/meta.yaml b/conda/meta.yaml index 055254d0230f3ea89ca4677ead6ec7855fe9f345..06a5d3787529db00988f4f6d1b7cf045c1b85d3a 100644 --- a/conda/meta.yaml +++ b/conda/meta.yaml @@ -1,6 +1,5 @@ {% set data = load_file_data(RECIPE_DIR + '/../pyproject.toml') %} {% set name = data['project']['name'] %} -{% set project_dir = environ.get('RECIPE_DIR') + '/..' %} package: name: {{ name }} @@ -12,12 +11,7 @@ build: run_exports: - {{ pin_subpackage(name) }} script: - - cd {{ project_dir }} - - "{{ 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 }}/" + - "{{ PYTHON }} -m pip install {{ SRC_DIR }} -vv" requirements: host: @@ -33,21 +27,16 @@ requirements: run: - python - setuptools - - {{ pin_compatible('numpy', max_pin='x.x') }} + - {{ pin_compatible('numpy') }} - {{ pin_compatible('dask') }} - {{ pin_compatible('dask-ml') }} - {{ pin_compatible('h5py') }} - # scikit-learn keeps breaking API in minor versions, so we pin to the - # next minor version - - {{ pin_compatible('scikit-learn', max_pin='x.x') }} + - {{ pin_compatible('scikit-learn') }} test: imports: - {{ name.replace('-','_') }} 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 objects -p $PREFIX {{ name }} # [osx]