Hi,
what is the recommended to solution to declare dependencies which are only required to run tests?
In the past there was "tests_require" but as far as I know this is deprecated.
I tried to read obvious github issues but maybe I missed something so please bear with me if this has come up way too often. I appreciate pointers.
Felix
Hello,
you might want to use the "test" extra: cf https://packaging.python.org/specifications/core-metadata/#provides-extra-mu... : "Two feature names test and doc are reserved to mark dependencies that are needed for running automated tests and generating documentation, respectively"
With the caveat that one should not use setuptools to satisfy those dependencies, but instead use some kind of test runner such as tox/nox (which then delegate to pip to acquire packages).
On Mon, Mar 9, 2020 at 11:10 AM Xavier Fernandez xav.fernandez@gmail.com wrote:
Hello,
you might want to use the "test" extra: cf https://packaging.python.org/specifications/core-metadata/#provides-extra-mu... : "Two feature names test and doc are reserved to mark dependencies that are needed for running automated tests and generating documentation, respectively"
-- Xavier
On Mon, 9 Mar 2020 at 12:02, Felix Schwarz felix.schwarz@oss.schwarz.eu wrote:
Hi,
what is the recommended to solution to declare dependencies which are only required to run tests?
In the past there was "tests_require" but as far as I know this is deprecated.
I tried to read obvious github issues but maybe I missed something so please bear with me if this has come up way too often. I appreciate pointers.
Felix
Distutils-SIG mailing list -- distutils-sig@python.org To unsubscribe send an email to distutils-sig-leave@python.org https://mail.python.org/mailman3/lists/distutils-sig.python.org/ Message archived at https://mail.python.org/archives/list/distutils-sig@python.org/message/L52T3...
-- Distutils-SIG mailing list -- distutils-sig@python.org To unsubscribe send an email to distutils-sig-leave@python.org https://mail.python.org/mailman3/lists/distutils-sig.python.org/ Message archived at https://mail.python.org/archives/list/distutils-sig@python.org/message/2PNZP...
Am 09.03.20 um 12:08 schrieb Xavier Fernandez:
you might want to use the "test" extra: cf https://packaging.python.org/specifications/core-metadata/#provides-extra-mu... : "Two feature names test and doc are reserved to mark dependencies that are needed for running automated tests and generating documentation, respectively"
Thank you :-)
Felix