From e943fceea37a884a07c4f9a6d00d14090fb89ce1 Mon Sep 17 00:00:00 2001 From: Maeva Pourpoint <maeva@passcal.nmt.edu> Date: Wed, 9 Sep 2020 15:32:41 -0600 Subject: [PATCH] Create conda package that is python and platform independent --- conda.recipe/meta.yaml | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/conda.recipe/meta.yaml b/conda.recipe/meta.yaml index b165cad..c57cf7d 100644 --- a/conda.recipe/meta.yaml +++ b/conda.recipe/meta.yaml @@ -1,24 +1,32 @@ package: name: mseedpeek - version: 2018.129 + version: 2020.204 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 + host: + - 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/mseedpeek + license: GPLv3 + license_file: LICENSE summary: View mseed headers -- GitLab