From 19ef72b411c029b197c601a6fe07de68c4106183 Mon Sep 17 00:00:00 2001
From: Yannick DAYER <yannick.dayer@idiap.ch>
Date: Fri, 21 Oct 2022 09:44:23 +0000
Subject: [PATCH] Simplify conda/meta.yaml further.

---
 conda/meta.yaml | 17 +++--------------
 1 file changed, 3 insertions(+), 14 deletions(-)

diff --git a/conda/meta.yaml b/conda/meta.yaml
index 055254d..06a5d37 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]
 
-- 
GitLab