From 2408c38e7b0ac0bb88cffc6d8520f5884845f392 Mon Sep 17 00:00:00 2001 From: Maeva Pourpoint <maeva@passcal.nmt.edu> Date: Wed, 9 Sep 2020 16:16:55 -0600 Subject: [PATCH] Create conda package that is python and platform independent --- conda.recipe/meta.yaml | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/conda.recipe/meta.yaml b/conda.recipe/meta.yaml index 4561f0b..bc557b0 100644 --- a/conda.recipe/meta.yaml +++ b/conda.recipe/meta.yaml @@ -1,24 +1,32 @@ package: name: fixhdr - version: 2018.176 + version: 2020.212 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 + - pmw + +test: + source_files: + - tests + commands: + - python -m unittest about: home: https://git.passcal.nmt.edu/passoft/fixhdr + license: GPLv3 + license_file: LICENSE summary: Modifies mseed headers -- GitLab