[Triage] Cleanup: reduce runtime dependency on 'packaging' to {gevent, eventlet, tests} contexts #3608
jayaddison
started this conversation in
Issue Triage
Replies: 2 comments
|
NB: with the |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Type
Feature Request
Description
Reviewing some dependencies, I found
packagingas a transitive dependency ofgunicorn; this is configured in thepyproject.tomlfile:gunicorn/pyproject.toml
Lines 37 to 39 in 4bcda32
Unless the
eventletorgeventextras are specified when installinggunicorn(e.g.pip install gunicorn[eventlet]), thepackagingpackage does not appear to be a required runtime dependency.It is used by each of the two worker types mentioned:
eventlet:gunicorn/gunicorn/workers/geventlet.py
Lines 20 to 29 in 4bcda32
gevent:gunicorn/gunicorn/workers/ggevent.py
Lines 11 to 18 in 4bcda32
...and it is required by the
gunicorntest suite:test_gevent:gunicorn/tests/workers/test_ggevent.py
Lines 22 to 26 in 4bcda32
Steps to Reproduce (for bugs)
Either:
Inspect the
METADATAfile of a recent installed copy ofgunicorn(e.g. v25.3.0):Or:
Locate imports of the
packagingpackage in a checkout of thegunicorngit repository:Configuration
Logs / Error Output
Gunicorn Version
gunicorn 25.3.0
Python Version
N/A
Worker Class
N/A (feature request)
Operating System
N/A
Additional Context
Proposed solution:
packagingto therequirements_test.txtfile to ensure that the dependency is installed for testing.packagingto the relevant workerextrasinpyproject.toml.packagingfrom the base runtime requirements forgunicorn(also inpyproject.toml).For example:
Checklist
All reactions