Skip to content

Commit 2300a8a

Browse files
penguinpeejgrewe
authored andcommitted
Remove deprecated pytest-runner dependency
The `pytest-runner` project has been deprecated since 2019 and has been archived on git hub in December 2024. This removes the dependency on the deprecated package and also removes deprecated keywords from `setup.py` related to it. Use the new extra to install test dependencies in CI workflow.
1 parent 5e5ec01 commit 2300a8a

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ jobs:
2929
python-version: ${{ matrix.python-version }}
3030
- name: Run install
3131
run: |
32-
pip install setuptools
3332
pip install .
3433
- name: Lint with Pylint
3534
run: |
@@ -38,7 +37,7 @@ jobs:
3837
pylint --rcfile=.pylintrc nixio
3938
- name: Test with pytest
4039
run: |
41-
pip install pytest scipy pillow matplotlib
40+
pip install .[test]
4241
# pytest will skip cross-compatibility tests since NIX isn't installed
4342
pytest
4443

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ def get_wheel_data():
8080
packages=packages,
8181
scripts=[],
8282
python_requires=">=3.6",
83-
tests_require=['pytest', 'scipy', 'pillow', 'matplotlib'],
84-
test_suite='pytest',
85-
setup_requires=['pytest-runner'],
83+
extras_require={
84+
"test": ['pytest', 'scipy', 'pillow', 'matplotlib', 'setuptools'],
85+
},
8686
install_requires=['numpy', 'h5py'],
8787
package_data={'nixio': [license_text, description_text]},
8888
include_package_data=True,

0 commit comments

Comments
 (0)