[opensuse-python] Deprecation of setup.py test
Hi all, as $SUBJ says, the upstream setuptools project is deprecating and plans to remove the 'python setup.py test' functionality for test execution. This for us means that some packages will have to be tweaked. We are talking about ~500 packages: openSUSE:Factory $ grep 'setup.py test' *.spec |wc -l 494 At this moment it is not critical and it is more of an outlook, yet if you happen to do some changes this might be something that should be tweaked on the packages too. Cheers Tom
John Paul Adrian Glaubitz píše v Út 05. 11. 2019 v 12:47 +0000:
On 11/5/19 1:43 PM, Tomas Chvatal wrote:
as $SUBJ says, the upstream setuptools project is deprecating and plans to remove the 'python setup.py test' functionality for test execution.
And what's the replacement?
Depends really on the upstream... Mostly if they use tox or any other virtenv setup they have some execution line we need to copy and simply do it the same way. Something along the way of: 'python -m unittest discover' 'pytest' 'nosetests' ... Cheers Tom
On Tue, Nov 5, 2019 at 8:21 AM Dirk Mueller <dmueller@suse.com> wrote:
Am Dienstag, 5. November 2019, 13:51:40 CET schrieb Tomas Chvatal:
'nosetests'
I hope we're not adding further usages of nose..
Greetings, Dirk
If the upstream test suite depends on nose, the package would need it installed before "setup.py test" would work anyway. So there wouldn't be any more usage of nose, it is just that nose would need to be run directly instead of being invoked automatically through setuptools. -- To unsubscribe, e-mail: opensuse-python+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-python+owner@opensuse.org
participants (4)
-
Dirk Mueller
-
John Paul Adrian Glaubitz
-
Todd Rme
-
Tomas Chvatal