* "python setup.py test" is deprecated
@ 2019-08-05 12:03 Marius Bakke
2019-08-09 1:41 ` Chris Marusich
0 siblings, 1 reply; 2+ messages in thread
From: Marius Bakke @ 2019-08-05 12:03 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 693 bytes --]
Hello,
Pythons setuptools are deprecating the "python setup.py test" command:
https://github.com/pypa/setuptools/issues/1684
As you may know, "python setup.py test" is what python-build-system does
during the 'check' phase.
I'm not sure what we should do about it, and there does not seem to be
an established "community consensus" yet. I suppose many packages will
be migrating to Pytest and/or Tox? Perhaps we could check package
inputs and try to guess the correct test command?
Something to keep in mind for future python-build-system improvements...
PS: Apparently "python setup.py install" is going away too:
https://github.com/pypa/setuptools/issues/1684#issuecomment-508302910
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: "python setup.py test" is deprecated
2019-08-05 12:03 "python setup.py test" is deprecated Marius Bakke
@ 2019-08-09 1:41 ` Chris Marusich
0 siblings, 0 replies; 2+ messages in thread
From: Chris Marusich @ 2019-08-09 1:41 UTC (permalink / raw)
To: Marius Bakke; +Cc: guix-devel
[-- Attachment #1: Type: text/plain, Size: 1609 bytes --]
Marius Bakke <mbakke@fastmail.com> writes:
> Pythons setuptools are deprecating the "python setup.py test" command:
>
> https://github.com/pypa/setuptools/issues/1684
>
> As you may know, "python setup.py test" is what python-build-system does
> during the 'check' phase.
>
> I'm not sure what we should do about it, and there does not seem to be
> an established "community consensus" yet. I suppose many packages will
> be migrating to Pytest and/or Tox? Perhaps we could check package
> inputs and try to guess the correct test command?
>
> Something to keep in mind for future python-build-system improvements...
>
> PS: Apparently "python setup.py install" is going away too:
> https://github.com/pypa/setuptools/issues/1684#issuecomment-508302910
To my knowledge, the "targets" of the setup.py script are somewhat not
standardized, even though they seem like they ought to be. At the very
least, you are right about the "test" target. Even pytest dropped
support for it since last year:
https://docs.pytest.org/en/latest/changelog.html?highlight=%22setup.py%20test%22#id511
This is just one example of how a project can implement its own
idiosyncratic build logic. Somebody uses tox, someone else uses a
Makefile with a "check" target (that runs pytest), somebody else just
runs pytest directly... It's business as usual as far as I can tell.
Guix can accommodate all those idiosyncrasies via modifications to the
phases, and if the Python community starts using one method much more
often, we can just make that the default in the build system.
--
Chris
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-08-09 1:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-05 12:03 "python setup.py test" is deprecated Marius Bakke
2019-08-09 1:41 ` Chris Marusich
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.