-
Notifications
You must be signed in to change notification settings - Fork 126
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
fix: compatibility with urllib3 2.0 #294
Conversation
Thanks @frostming for the change. I see that besides the Also for older urllib versions, this will just ignore the strict argument. I think that we should wait for @ionrock to review this. I was expecting to remove |
Signed-off-by: Frost Ming <[email protected]>
I agree with @adiroiban that we should avoid formatting changes. The caveat is unless black reformats something, in which case two commits might be helpful to communicate that is what is happening. I'd also skip the I also think it is worthwhile to handle the earlier urllib versions. When I started looking at it, I had considered a function in Thanks for diving into this! |
Why not just set the minimum version of urllib supported by the next version, so that earlier urllib versions will just use the older cachecontrol? Trying to be backwards compatible with an obsolete package version seems unnecessary when a working version of cachecontrol already exists for those older versions. Sort of what versioning and pinning is for imo. |
I agree with this strategy. Requesting a library to support all possible Python versions and urllib3 versions is a pain for maintainers. Also we seem to have to drop Python 3.6 in the CI matrix. And eventually support for Python <3.7 should be dropped and |
Good feedback. Only supporting the latest urllib3 is a valid point, but then, this PR should update
Thanks |
Hi, any status update on this one? |
Hi, I have to move on to create a fork at https://github.com/frostming/cacheyou, with this issue addressed. The long term plan is if this project can continue I will merge the changes back. |
Note that (when running under Python 3) Since [ETA: Also note that the [ETA: IOW, the |
Thanks for that, I was close to doing the same thing but I'm glad someone stepped up for it. Sickchill is using your fork for the foreseeable future since cachecontrol hasn't been updated in years. I hope you can keep it relevant and set up a nice GitHub actions workflow to keep it always maintained and supporting the latest versions of everything. Godspeed. |
Just supporting the latest on python 3.8+ is ideal, backwards compatibility was a huge importance a few years ago before most projects finally got out of the python 2.7 trap. With GitHub actions and all the great tools now almost everyone has been able to keep their dependency trees updated thanks to dependabot. Older versions will just get the older cachecontrol with the pip dependency resolver so nobody misses anything to drop backwards compatible. |
Signed-off-by: Frost Ming [email protected]
Fix #292
Fix #293