From: Chris Marusich <cmmarusich@gmail.com>
To: Marius Bakke <mbakke@fastmail.com>
Cc: guix-devel@gnu.org
Subject: Re: "python setup.py test" is deprecated
Date: Thu, 08 Aug 2019 18:41:40 -0700 [thread overview]
Message-ID: <87y303yv1n.fsf@gmail.com> (raw)
In-Reply-To: <87blx33jlx.fsf@devup.no> (Marius Bakke's message of "Mon, 05 Aug 2019 14:03:06 +0200")
[-- 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 --]
prev parent reply other threads:[~2019-08-09 1:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-05 12:03 "python setup.py test" is deprecated Marius Bakke
2019-08-09 1:41 ` Chris Marusich [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y303yv1n.fsf@gmail.com \
--to=cmmarusich@gmail.com \
--cc=guix-devel@gnu.org \
--cc=mbakke@fastmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.