From 67682253e8472245d0f49976530f95b0992a279d Mon Sep 17 00:00:00 2001
From: Maeva Pourpoint <maeva@passcal.nmt.edu>
Date: Thu, 10 Sep 2020 09:38:04 -0600
Subject: [PATCH] Create conda package that is python and platform independent

---
 conda.recipe/meta.yaml | 27 +++++++++++++++++----------
 1 file changed, 17 insertions(+), 10 deletions(-)

diff --git a/conda.recipe/meta.yaml b/conda.recipe/meta.yaml
index 69ed63f..32bc711 100644
--- a/conda.recipe/meta.yaml
+++ b/conda.recipe/meta.yaml
@@ -1,24 +1,31 @@
 package:
   name: refscrub
-  version: 2011.046
+  version: 2020.216
 
 source:
-  path: ..
+  path: ../
 
 build:
-  # If the installation is complex, or different between Unix and Windows, use
-  # separate bld.bat and build.sh files instead of this key.  Add the line
-  # "skip: True  # [py<35]" (for example) to limit to Python 3.5 and newer, or
-  # "skip: True  # [not win]" to limit to Windows.
-  script: python setup.py install --single-version-externally-managed --record=record.txt
+  noarch: python
+  number: 0
+  script: {{ PYTHON }} -m pip install . --no-deps -vv
+  string: py_3
 
 requirements:
   build:
-    - python
-    - setuptools
+    - python >=3.6
+    - pip
   run:
-    - python
+    - python >=3.6
+
+test:
+  source_files:
+    - tests
+  commands:
+    - python -m unittest
 
 about:
   home: https://git.passcal.nmt.edu/passoft/refscrub
+  license: GPLv3
+  license_file: LICENSE
   summary: Remove select packets from RT130 data
-- 
GitLab