-
Couldn't load subscription status.
- Fork 3.2k
PEP 517 only #13602
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
PEP 517 only #13602
Conversation
b9733f3 to
b490e48
Compare
b490e48 to
32ec3f0
Compare
04bee4e to
0befe7d
Compare
|
In terms of availability, I should have some (although not a lot!) time to review starting in mid-late October. If you want to wait for reviews (since this is a major change), then you may want to take that into consideration. Otherwise, it will depend on whether Paul, Pradyun or Damian have any time for reviews. Anyway, thank you a lot for working on this! |
0befe7d to
3b2bc9e
Compare
|
I will try and add my review before 25.3, although this is really outside my wheelhouse (pun intended), so I'll only really be reviewing code quality and doing some smoke tests, I assume there aren't many design choices here, but if there are I won't be able to add much useful input. |
|
Thanks @ichard26 and @notatallshaw ! I'll also try to make some time to review other 25.3 PRs in the coming 2 weeks. Regarding this PR, there were not any design decisions left to do. So it's a big diff but it's straightforward removal of all non-pep517 code paths. The code base was already prepared for that thanks to the work we progressively did over the last (10?) years - kudos to everyone involved, by the way! The vast majority of the changes to the test suite is adding |
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.
I've done a light reading, tried to find edge case issues, and I've run a bunch of smoke tests, and it all looks good to me.
|
Thanks for this @notatallshaw. I still need to update the documentation. |
|
@sbidoul I am slowly reviewing this PR. I expect to be done in a few days. A few notes though:
Footnotes
|
|
@ichard26 thanks!
Did this PR do that? I don't immediately see it. If not I'd rather do that in another PR.
Me neither. I had the same reasoning as you, plus I did not want to mix a huge refactor of the test suite in this PR so it remains feasible to review that the tests did not change what they intended to test. |
@sbidoul, actually I double checked and it appears that |
aaed08e to
3aff09a
Compare
|
I updated the documentation by merging the This is now ready to go. |
|
I don't have any additional review comments, so If no one objects or beats me to it I plan to merge this tomorrow. |
|
I do want to give this one more look-over, so as with my Direct URL PR, give me until EOD tomorrow to do so. If I don't review by EOD, go ahead w/o me. |
|
Yeah, I did not get the chance (as I write this at 2am) to review this again. I'm wary of merging such a major PR this late into a development cycle and w/ very limited maintainer resources post-release, but if you're up for it, I won't block this PR either. |
|
I'm not really worried about the risk. In any case I'll be around post release to followup on this if needed. |
We remove - legacy metadata preparation - legacy wheel build (bdist_wheel) - --global-option and --build-option - --no-use-pep517 - and therefore all setuptools shims --use-pep517 stays as a no-op This commits removes some tests that become irrelevant, but just the minimum so mypy is happy.
This option is now always on, so need to test it.
This option is gone.
Some unit test need to run metadata preparation for setuptools based test projects.
Because pip now uses flit_core as build backend.
Most tests use setup.py-based test packages, and we want to avoid network access for building them.
Since there is no 'setup.py develop' fallback anymore, this check needs to be updated, and also needs to run when not using build isolation.
3aff09a to
5a17132
Compare
|
I resolved the conflict. |
While it's a major PR it's not a conceptionally complex PR, it removes depreciated behavior from pip. And I dont think a long period in main is going to help us find anything, very few people are running pip off the main branch, and PEP 517 is well validated in the wild. All that is to say I am fine with releasing with this PR so I'm going to merge now! Thanks so much @sbidoul, I'm not sure there's any other maintainer right now who has the motivation to do this, but it's important pip moves ever closer to standards complaince. |
|
FWIW, this breaks a bunch of documentation URLs and we should add entries to the RTD redirects for them or, otherwise, not remove the pages. Not sure if we need something beyond what's possible with https://github.com/pypa/pip/blob/main/.readthedocs-custom-redirects.yml today. |
|
Indeed, good point @pradyunsg. When you say "a bunch", do you have a mean to see a list somewhere, or is it just the two pages I have merged in place of the index page? |
|
I guess it's those pages + anchors within them that have been broken. It ends up being more than two URLs, but is probably just those two pages. Thinking a bit more about this though, I think we should keep the old docs for setup.py around for users who might be affected and need to understand what's changed between the two build systems as part of figuring out how migrate/be able to adapt to the "new" PEP 517 only world? |
|
FWIW, I tried the pip main branch on I also tried it on the core development repo of Plone, both with zc.buildout and pip, and that went fine. So: looking good. Thanks for carefully cleaning this up @sbidoul ! |
|
@mauritsvanrees thanks a lot for taking the time to provide feedback. Much appreciated. |
|
I'm happy to submit or accept a PR to fix the broken links. I'm a little less motivated by setup.py information, I'd rather point users to the packaging user guide where possible. But if someone wants to submit a PR that contains useful information I can accept it. |
closes #6334
closes #11457
closes #11859
This is the big one - it does not make much sense to split in smaller PRs.
--use-pep517always on--no-use-pep517removed (error if used)--global-optionand--build-optionremoved (error if used)setup.py develop) removedsetup.py bdist_wheel) removedsetup.py egg_info) removedThere is still a lot to do in the test suite, but it looks like it will mostly be adding--no-build-isolationto many tests, in order to use the locally installed setuptools. I'm opening as draft nevertheless in case there are any suggestions.I tried to split in small commits that should be relatively easy to review.
Documentation update will follow.