Skip to content
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

Closed
wants to merge 2 commits into from
Closed

Remove six dependency #2083

wants to merge 2 commits into from

Conversation

urishalit
Copy link

I removed the file gunicorn/six.py and added six 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.

@urishalit urishalit mentioned this pull request Aug 1, 2019
Copy link
Collaborator

@berkerpeksag berkerpeksag left a 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?

@urishalit
Copy link
Author

Yes, the problem is _winreg.
Why isn't this the correct solution?

Why is it too late?

@tilgovi
Copy link
Collaborator

tilgovi commented Aug 18, 2019

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 six is fine, but adding a dependency is more risky.

Gunicorn has six as a vendored dependency so that Gunicorn does not restrict what version of six applications can use and is not affected by any version of six used by an application running under Gunicorn. I believe we should keep it that way.

I think we could accept a PR to update the vendored version of six, assuming there are no changes that would case any fear of breaking something in Gunicorn.

@berkerpeksag
Copy link
Collaborator

What @tilgovi has said. I'd be happy to review and merge a PR that moves the _winreg import to the correct place.

@urishalit urishalit closed this Aug 26, 2019
moshekaplan added a commit to moshekaplan/HXTool that referenced this pull request Sep 23, 2020
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.
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.

3 participants