Drop pytest-runner and "setup.py test" support (#3921)

* Drop pytest-runner and "setup.py test" support

This does not affect running the tests with `pytest`.

Add a `test` extra to represent test dependencies.

* Remove spurious more-itertools test dependency

* Add HISTORY.md entry

* Add Benjamin A. Beasley to COPYRIGHT.txt
This commit is contained in:
Ben Beasley
2025-04-08 13:59:01 +02:00
committed by GitHub
parent e30bd30df7
commit 0ecd6db488
4 changed files with 7 additions and 6 deletions
+1
View File
@@ -160,6 +160,7 @@ Copyright:
Copyright 2024, Martin Lambertsen <github@lambertsen.one>
Copyright 2024, Andrea Novellini <andre.novellini@gmail.com>
Copyright 2024, Felix Patschkowski <felix.patschkowski@gmail.com>
Copyright 2025, Benjamin A. Beasley <code@musicinmybrain.net>
License: BSD-3-clause
All rights reserved.
+2
View File
@@ -4,6 +4,8 @@
_????-??-??_
* Drop pytest-runner and "setup.py test" support (#3921).
## mlpack 4.6.0
-2
View File
@@ -1,2 +0,0 @@
[aliases]
test=pytest
+4 -4
View File
@@ -151,8 +151,8 @@ setup(name='mlpack',
include_package_data=True,
cmdclass={ 'build_ext': build_ext },
ext_modules = modules,
setup_requires=['cython', 'pytest-runner'],
tests_require=['pytest>3;python_version>"3.4"', 'pytest>3,<=4.6;python_version<="3.4"',
'more-itertools>=4.0.0,<6.0.0;python_version<="2.7"',
'more-itertools>=4.0.0;python_version>"2.7"'],
setup_requires=['cython'],
extras_require={
"tests": ['pytest>3;python_version>"3.4"', 'pytest>3,<=4.6;python_version<="3.4"'],
},
zip_safe = False)