-
-
Notifications
You must be signed in to change notification settings - Fork 530
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
replace setup.py integration with a warning #376
Conversation
|
||
Integrating tox into ``setup.py`` is strongly discouraged as | ||
it breaks standard packaging approaches as used by many downstream distributions | ||
which expect ``setup.py test`` to to test the current interpreter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to to
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@RonnyPfannschmidt Can you please quote the "standard packaging approaches" and "many downstream distributions"? I don't know about any.
The argument sounds strongly biased. We should care about transparency.
Cc @hpk42
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, discouraging is one thing. I'd prefer to read about the "recommended approach".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bittner I agree it sounds biased and should therefore be rephrased. I don't think anyone has a good overview of how downstream distributions deal with this or similar situations. Perhaps we should document this somewhere? But where? And who will keep this up to date, as such information will always lag on the current practices of the distributions.
PEP 426 mentions the following:
python setup.py test : run the distribution's test suite in place given an sdist, source archive or VCS checkout
The distribution means here the package.
Neither this PEP, nor others (as far as I know), mention what the test suite can and cannot cover. Therefore, using tox
like that is supposedly fine.
However, as a Python on Nix packager that would very much annoy me and I would argue that
python setup.py test
is for testing against the current env, andtox
is for testing against multiple envs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bittner the recommended approach is not calling tox from setup.py - it is basically outlined in the rest of the documentation
In subsequent commits i revised the text. See https://github.com/tox-dev/tox/blob/master/doc/example/basic.txt#L237 The basic argument is that On Tue, Oct 11, 2016 at 04:08 -0700, Frederik Rietdijk wrote:
|
fixes #375
fixes #330