Skip to content

build: update version range of urllib3 #5325

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

Merged
merged 1 commit into from
May 4, 2023

Conversation

bastimeyer
Copy link
Member

@bastimeyer bastimeyer commented May 4, 2023

urllib3 is a transitive dependency of streamlink, via requests.

We define it here too because of the main CLI module which lists all direct dependencies from the package's metadata (via importlib.metadata) when the log level is <= debug, and listing urllib3 is useful. Another reason is that we're applying a couple of urllib3 overrides.

We don't specify an upper version limit though. This is only done by requests, namely <1.27. Now that urllib3 has published its 2.0 release last week, there are some issues. For some reason, the version doesn't always get resolved correctly by pip. I just noticed that in the get-dependencies.sh script of the Windows builds which unnecessarily downloads and tries to build urllib3 2.x until it falls back to 1.x. And then there was #5324 yesterday.

So let's set the max version here too in order to avoid any confusion and to fix any dependency resolving issues. requests won't bump urllib3 without having a major version bump on its own.

@bastimeyer
Copy link
Member Author

Apparently they won't bump the major version:
https://github.com/psf/requests/releases/tag/v2.30.0

This change is required now, otherwise we're having the breaking change described in #5324.

@bastimeyer bastimeyer merged commit 0e762f8 into streamlink:master May 4, 2023
@bastimeyer bastimeyer deleted the build/urllib3-version branch May 4, 2023 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant