Skip to content
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

Convert off pkg resources #6139

Merged
merged 39 commits into from
Apr 27, 2024
Merged

Convert off pkg resources #6139

merged 39 commits into from
Apr 27, 2024

Conversation

matteius
Copy link
Member

@matteius matteius commented Apr 24, 2024

The issue

image

https://github.com/pypa/pipenv/blob/master/peeps/PEEP-000.md

The fix

I worked between myself and with Claude 3 Opus to iterate on fixing these things related to pkg_resources. I was aware pipdeptree did the important work of converting off pkg_resources and I vendored it in as a starting point and began with the environment.py and worked from there.

Fixes #6097
Fixes #5475

Still TODO:

Fix the pipenv graph commands and re-submit the possible import patch there, but the whole integration changed and I am out of Opus 3 messages for the night.

The checklist

  • Associated issue
  • A news fragment in the news/ directory to describe this fix with the extension .bugfix.rst, .feature.rst, .behavior.rst, .doc.rst. .vendor.rst. or .trivial.rst (this will appear in the release changelog). Use semantic line breaks and name the file after the issue number or the PR #.

…to patch importlib-metadata version that we vendor.
@matteius matteius requested a review from oz123 April 24, 2024 07:00
pipenv/vendor/vendor.txt Show resolved Hide resolved
pipenv/vendor/vendor.txt Outdated Show resolved Hide resolved
@oz123
Copy link
Contributor

oz123 commented Apr 25, 2024

The usual failure of :

FAILED tests/integration/test_cli.py::test_pipenv_graph_reverse

Interesting is that here it fails for all Python versions.

@oz123
Copy link
Contributor

oz123 commented Apr 25, 2024

Please do not merge this before #6134

@matteius matteius merged commit b1c14a2 into main Apr 27, 2024
3 of 19 checks passed
@matteius matteius deleted the convert-off-pkg_resources branch April 27, 2024 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants