Skip to content

Remove setuptools as a runtime dependency#3138

Open
daniel7an wants to merge 1 commit intosanic-org:mainfrom
daniel7an:remove-setuptools-runtime-dep
Open

Remove setuptools as a runtime dependency#3138
daniel7an wants to merge 1 commit intosanic-org:mainfrom
daniel7an:remove-setuptools-runtime-dep

Conversation

@daniel7an
Copy link

Remove setuptools from install_requires in setup.py. It is a build-time dependency only and should not be required at runtime.

The sanic package source code does not import setuptools or pkg_resources anywhere. It is already correctly declared as a build dependency in pyproject.toml.

Closes #3133

setuptools is only needed at build time, not at runtime. The sanic
package code does not import setuptools or pkg_resources anywhere,
so there is no reason to include it in install_requires.

It is already correctly listed as a build dependency in pyproject.toml.

Closes sanic-org#3133
@daniel7an daniel7an requested a review from a team as a code owner February 9, 2026 19:50
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.

Consider removing setuptools as a runtime dependency

1 participant