Skip to content

Commit

Permalink
fixed setup and conda files
Browse files Browse the repository at this point in the history
  • Loading branch information
paolap committed Mar 1, 2022
1 parent f5e6ea1 commit 86c2bae
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 25 deletions.
2 changes: 0 additions & 2 deletions conda/.condarc

This file was deleted.

2 changes: 0 additions & 2 deletions conda/bld.bat

This file was deleted.

1 change: 0 additions & 1 deletion conda/build.sh

This file was deleted.

13 changes: 9 additions & 4 deletions conda/meta.yml → conda/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package:
about:
home: https://github.com/coecms/xmhw
license: Apache-2.0
license_file: LICENSE-2.0.txt
license_file: LICENSE.txt
summary: "Xarray based Marine HeatWave detection code"
description: |
XMHW identifies marine heatwaves from a timseries of
Expand All @@ -18,10 +18,11 @@ about:

requirements:
host:
- python >= 3.7
- python >=3.7
- pip
- pbr
run:
- python >= 3.7
- python >=3.7
- pandas
- xarray
- numpy
Expand All @@ -31,14 +32,16 @@ source:
url: https://github.com/coecms/xmhw/archive/refs/tags/{{version}}.tar.gz

build:
script: "{{ PYTHON }} -m pip install . --no-deps --ignore-installed"
noarch: python
number: {{ GIT_DESCRIBE_NUMBER }}
script: python setup.py install --single-version-externally-managed --record=record.txt

test:
source_files:
- setup.cfg
- test
requires:
- netcdf4
- pytest
- coverage
- numpy
Expand All @@ -47,6 +50,8 @@ test:
- dask
imports:
- xmhw
script_env:
- TEST_OUTPUT
commands:
- COVERAGE_FILE=${TEST_OUTPUT:-.}/coverage coverage run --source xmhw -m pytest ./test

2 changes: 0 additions & 2 deletions conda/run_test.sh

This file was deleted.

3 changes: 0 additions & 3 deletions conda/run_test_coverage.sh

This file was deleted.

11 changes: 1 addition & 10 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[metadata]
name = xmhw
url = https://github.com/coecms/xmhw
version = 0.8.0
author = Paola Petrelli
author_email = [email protected]
summary = 'Marine heatwave detection code using xarray'
Expand All @@ -18,16 +19,6 @@ classifier =
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10

[options]
install_requires =
xarray
numpy
pandas
dask
tests_require =
netCDF4

python_requires = >= 3.7

[files]
packages =
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from setuptools import setup

setup(
setup_requires=['pbr>=1.9', 'setuptools>=17.1'],
setup_requires=['pbr', 'setuptools'],
pbr=True,
)

0 comments on commit 86c2bae

Please sign in to comment.