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

Experiment: remove setuptools requirement #5658

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

mdellweg
Copy link
Member

No description provided.

@mdellweg
Copy link
Member Author

mdellweg commented Jul 31, 2024

I do not think this is quite honest, because we still import from pkg_resources.
No no longer now...

@mdellweg mdellweg force-pushed the remove_setuptools branch 7 times, most recently from c98e389 to 4cd2001 Compare July 31, 2024 14:22
@gerrod3
Copy link
Contributor

gerrod3 commented Jul 31, 2024

I do not think this is quite honest, because we still import from pkg_resources.

Where exactly do we import from them?

@mdellweg
Copy link
Member Author

mdellweg commented Aug 1, 2024

I do not think this is quite honest, because we still import from pkg_resources.

Where exactly do we import from them?

I first just removed the requirement, and tests were still passing. Probably because on pyton3.9 with pip you are almost guaranteed to have a version of setuptools.

This refactors the use of pkg_resource to the more modern
importlib_resources, that is supposed to be superseeded by
importlib.resources eventually.
In the fallout, the dependency on setuptools was dropped.

[noissue]
@mdellweg mdellweg force-pushed the remove_setuptools branch from 4cd2001 to 2826b1d Compare August 1, 2024 06:30
@mdellweg mdellweg marked this pull request as ready for review August 1, 2024 06:30
@mdellweg mdellweg enabled auto-merge (rebase) August 5, 2024 08:38
@mdellweg mdellweg merged commit 4f65152 into pulp:main Aug 5, 2024
11 checks passed
@mdellweg mdellweg deleted the remove_setuptools branch August 5, 2024 16:13
rochacbruno added a commit to rochacbruno/pulpcore that referenced this pull request Nov 28, 2024
Fix pkg_resources (deprecated) error when loading extra requirements.
rochacbruno added a commit to rochacbruno/pulpcore that referenced this pull request Nov 28, 2024
Fix pkg_resources (deprecated) error when loading extra requirements.
rochacbruno added a commit to rochacbruno/pulpcore that referenced this pull request Nov 28, 2024
Fix pkg_resources (deprecated) error when loading extra requirements.
rochacbruno added a commit to rochacbruno/pulpcore that referenced this pull request Nov 28, 2024
Fix pkg_resources (deprecated) error when loading extra requirements.
rochacbruno added a commit to rochacbruno/pulpcore that referenced this pull request Nov 29, 2024
Fix pkg_resources (deprecated) error when loading extra requirements.
mdellweg pushed a commit that referenced this pull request Nov 29, 2024
Fix pkg_resources (deprecated) error when loading extra requirements.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants