Skip to content

Commit 8c4a27c

Browse files
committed
Replace tests_require with extras_require tests
1 parent ff30680 commit 8c4a27c

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

.github/workflows/ci.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,6 @@ jobs:
7373
run: |
7474
pytest --cov=geotiepoints geotiepoints/tests --cov-report=xml --cov-report=
7575
76-
# FIXME: These fail
77-
# - name: Test website
78-
# shell: bash -l {0}
79-
# run: |
80-
# cd doc && mkdir doctest && sphinx-build -E -n -b doctest ./source ./doctest && cd ..
81-
8276
- name: Upload unittest coverage to Codecov
8377
uses: codecov/codecov-action@v5
8478
with:

setup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from Cython.Distutils import Extension
2424

2525
requirements = ['numpy', 'scipy', 'pandas']
26-
test_requires = ['pytest', 'pytest-cov', 'h5py', 'xarray', 'dask', 'pyproj', "pyresample"]
26+
test_requires = ['pytest', 'pytest-cov', 'h5py', 'xarray', 'dask[array]', 'pyproj', "pyresample"]
2727

2828
if sys.platform.startswith("win"):
2929
extra_compile_args = []
@@ -114,6 +114,8 @@
114114
cmdclass=cmdclass,
115115
install_requires=requirements,
116116
ext_modules=EXTENSIONS,
117-
tests_require=test_requires,
117+
extras_require={
118+
"tests": test_requires,
119+
},
118120
zip_safe=False
119121
)

0 commit comments

Comments
 (0)