chore: minimise dependency on the Python package named 'packaging' - #3643
Merged
benoitc merged 2 commits intoAug 17, 2026
Merged
Conversation
The Python package named `packaging` is only required as a runtime dependency by the `gevent` worker of `gunicorn`; in other words, we do not need to install it as a dependency for installations of other worker types. This changeset relocates the `packaging` requirement from the default dependencies for `gunicorn` to the `gevent` extras set (and also the `requirements_test.txt` requirements file, so that it is available when the unit tests run).
jayaddison
commented
Jun 5, 2026
| "gevent>=24.10.1", | ||
| "h2>=4.1.0", | ||
| "coverage", | ||
| "packaging", |
Contributor
Author
There was a problem hiding this comment.
NB: I didn't mention this additional line when I wrote the discussion thread topic; I noticed it today while scanning the pyproject.toml file again. It seems to more-or-less mirror the requirement list in requirements_test.txt, so I've added packaging here too, for consistency.
|
@jayaddison seems like it is failing a lint test. Looks simple enough to fix. |
This comment was marked as resolved.
This comment was marked as resolved.
Contributor
Author
That has now been resolved by (unrelated) pull request #3651. |
Contributor
Author
|
@benoitc ping? |
Contributor
Author
|
@tilgovi ping? |
Contributor
Author
|
Thanks @benoitc! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Python package named
packagingis only required as a runtime dependency by thegeventworker ofgunicorn; in other words, we do not need to install it as a dependency for installations of other worker types.This changeset relocates the
packagingrequirement from the default dependencies forgunicornto thegeventextras set (and also therequirements_test.txtrequirements file, so that it is available when the unit tests run).Resolves #3608 (discussion thread).