-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Remove six dependency #2083
Remove six dependency #2083
Conversation
Change all imports accordingly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is the correct solution. We should fix our vendored six if it's broken. It's too late to remove it from 19.x.
Also, your report doesn't give us any information about what exactly is broken in gunicorn/six.py
. Is it the _winreg import issue or is it something else?
Yes, the problem is _winreg. Why is it too late? |
We would like to consider 19 in maintenance mode now, with a focus on releasing 20. Changes should be kept to a minimum to fix bugs. Updating our vendor copy of Gunicorn has I think we could accept a PR to update the vendored version of |
What @tilgovi has said. I'd be happy to review and merge a PR that moves the _winreg import to the correct place. |
gunicorn.six was removed with gunicorn v20 in benoitc/gunicorn#2083. Config files are small enough that copying the values in Py2 won't significantly impact performance.
I removed the file
gunicorn/six.py
and addedsix
as a requirement for the project.The motivation for this was this issue.
I ran the tests locally and that ones that pass before change pass after it and vice versa, so I am sure the ones that are failing are due to a problematic test configuration (Or you have failing tests merged) - I tested this on our environment and it seems to work.