Thanks to visit codestin.com
Credit goes to github.com

Skip to content

build: update version range of urllib3#5325

Merged
bastimeyer merged 1 commit into
streamlink:masterfrom
bastimeyer:build/urllib3-version
May 4, 2023
Merged

build: update version range of urllib3#5325
bastimeyer merged 1 commit into
streamlink:masterfrom
bastimeyer:build/urllib3-version

Conversation

@bastimeyer

@bastimeyer bastimeyer commented May 4, 2023

Copy link
Copy Markdown
Member

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
Copy Markdown
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