Declare a [test] extra with test dependencies (#1074)

Since `python setup.py test` is deprecated and `tests_require` is only used by that,
this allows to programmatically read the tests dependencies from the metadata.
This commit is contained in:
Miro Hrončok 2021-05-27 19:21:34 +02:00 committed by GitHub
parent 06ef27c576
commit fc7a349d36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,6 +59,7 @@ if 'bdist_wheel' not in sys.argv:
# bdist_wheel # bdist_wheel
extras_require = { extras_require = {
'test': tests_require,
# https://wheel.readthedocs.io/en/latest/#defining-conditional-dependencies # https://wheel.readthedocs.io/en/latest/#defining-conditional-dependencies
':sys_platform == "win32"': install_requires_win_only, ':sys_platform == "win32"': install_requires_win_only,
} }