-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Not compatible with urllib3 2.0 #116
Comments
Ah, yeah, at the very least, this fix for gzip encoding problems in Wayback will need to be removed or done in a different way for v2: Lines 260 to 289 in 6d360e9
I had thought we set constraints for urllib3 v1.x, but it looks like we didn’t, which is causing your test failures on #117. Thanks for calling this out. I think the first thing that needs doing here is constraining the dependency to |
Right now, this package is not compatible with urllib3 v2, so we need to set version constraints so package managers don’t try to install an incompatible version. Partially covers #116.
Right now, this package is not compatible with urllib3 v2, so we need to set version constraints so package managers don’t try to install an incompatible version. Partially covers #116.
Released v0.4.2 with correct dependency constraints. |
This should fail for urllib3 v2 and pass for v1, since no changes have been made to the actual source code yet, and v2 should be incompatible. First stop on the way to fully fixing #116.
This should fail for urllib3 v2 and pass for v1, since no changes have been made to the actual source code yet, and v2 should be incompatible. First stop on the way to fully fixing #116.
Back in #118 we “fixed” things for urllib3 v2 by marking this package as only compatible with v1, so users wouldn't wind up with bad dependency combinations. This adds real, proper support for urllib3 v2. Fixes #116. For the most part, urllib3 v2 just works, but there were two significant changes I had to make here: 1. We had a funky hack to deal with Wayback’s broken gzip handling that used the `from_httplib()` static method. That method no longer exists, and the new equivalent combines a bunch of other behavior that isn't really reasonable to override. Instead, we patch the `HTTPHeadersDict` class in v2. 2. VCR.py writes different, incompatible cassette files for v1 and v2 of urllib3 (see kevin1024/vcrpy#719). To address this in a way that doesn't make future contributions too hard, I added a custom serializer to make VCR behave compatibly between the two versions of urllib3, so you can record or read the same cassette files regardless of which version you are working with. It is no longer perfectly accurate to the response you received if using urllib3 v2, but it's generally good enough for our needs.
No description provided.
The text was updated successfully, but these errors were encountered: