Skip to content

setup.py: remove unnecessary setuptools (runtime) dependency #1379

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

Merged
merged 1 commit into from
Jun 23, 2025

Conversation

karlicoss
Copy link
Contributor

@karlicoss karlicoss commented Jun 20, 2025

setuptools should only be necessary for building package, but not for using it

It was introduced ~9 years ago in this commit be47be5 , likely for pkg_resources, but pyinfra migrated off it since due to deprecation

  • Pull request is based on the default branch (3.x at this time)
  • Pull request includes tests for any new/updated operations/facts
  • Pull request includes documentation for any new/updated operations/facts
  • Tests pass (see scripts/dev-test.sh)
  • Type checking & code style passes (see scripts/dev-lint.sh)

setuptools should only be necessary for building package, but not for using it

It was introduced ~9 years ago in this commit pyinfra-dev@be47be5
, likely for `pkg_resources`, but pyinfra migrated off it since due to deprecation
@karlicoss
Copy link
Contributor Author

Hmm some random test failed, I guess it's just flaky? Doesn't seem like I can retry CI for some reason.

Copy link
Member

@Fizzadar Fizzadar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great spot, thanks for fixing this @karlicoss!

@Fizzadar Fizzadar merged commit ab96666 into pyinfra-dev:3.x Jun 23, 2025
130 of 138 checks passed
@karlicoss karlicoss deleted the remove-setuptools-dependency branch June 24, 2025 01:25
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.

2 participants