-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Remove easy_install and package_index #4963
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
Conversation
Hey @jaraco I think this broke openstack packages. When trying to install them I am getting
I did find your bug submission here https://bugs.launchpad.net/pbr/+bug/2107732 so I guess this is the reason... seems like PBR devs didn't do anything to mitigate this :( |
That bug report is meant to track the removal of The I don't see that I ever added a deprecation warning or linked any ticket, so I'm not even sure how I learned about the issue or why I addressed it the way I did. Perhaps I was pinged in a private channel or in another bug tracker (the code was likely in Bitbucket at the time). Regardless, I can't find the rationale for exposing that attribute. In any case, the deprecation was mentioned there, so presumably someone at pbr knew this removal was pending. If someone wants to make the case that this attribute should be restored and there should be a deprecation period, I'm willing to supply it for up to 6 months. Just have that project file an issue in Setuptools and tag me in on it. |
Interesting that the test still passes as a Must be something different going on then what your test covers 🤷 Anyway appreciate the reply, I'll wait to see what the pbr folks decide to do :) |
I have reported the issue as #4976. Please yank setuptools 80.3.0 ASAP. Setuptools breaking major parts of the Python community again. In fact it is the fourth release with major breaking changes in since mid of March. |
It also broke installing hylang/hy#2653, people should really start pinning setuptools versions in pyproject.toml, but many don't even have that file. |
That's not a good solution either. It's going to cause more trouble in the long run. For starters setuptools development team has to reconsider their development style and must implement mandatory reviews and approval process. @jaraco has landed this major breaking change without any review or approval of other maintainers. All PRs should require at least one approval. Possibly breaking changes should require at least two approvals plus testing with major packages and build backends that rely on setuptools. |
Breaking changes should additionally be in a major versions. Then it would be enough to pin a major version. Currently I have to pin a patch version to guarantee that my stuff keeps working. |
This change was meant to be non-breaking (hence the minor version bump). It was a follow-up change to the intended breaking change in v80 (#2908). I expected that change could cause disruption, so I wanted to implement it first and monitor for the fallout before fully removing the functionality in this PR. I didn't expect this change to have significant impact given the minimal impact from #2908, but it's become clear that there is widespread dependence on internal APIs of Setuptools. Maybe I should make it clear that any software that relies on undocumented functionality is unsupported and can break at any time, or maybe do something like pip did by moving everything into an |
|
I don't recall seeing a DeprecationWarning for this, thus it was a really big surprise to see the gazillion bug reports and failing CI run due to the removal of |
Fix broadinstitute#192 , which was caused by the removal of `package_index` from setuptools in pypa/setuptools#4963 . Note that I needed to use `setuptools.build_meta:__legacy__` as `build-backend` (instead of the usual `setuptools.build_meta`) because otherwise `python3 -m build` would fail with: ``` ModuleNotFoundError: No module named 'firecloud' ```
Closes #917
Summary of changes
Closes
Pull Request Checklist
newsfragments/
.(See documentation for details)