Skip to content

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

Merged
Fizzadar merged 1 commit into
pyinfra-dev:3.xfrom
karlicoss:remove-setuptools-dependency
Jun 23, 2025
Merged

setup.py: remove unnecessary setuptools (runtime) dependency#1379
Fizzadar merged 1 commit into
pyinfra-dev:3.xfrom
karlicoss:remove-setuptools-dependency

Conversation

@karlicoss

@karlicoss karlicoss commented Jun 20, 2025

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor Author

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

@Fizzadar Fizzadar left a comment

Copy link
Copy Markdown
Member

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