Skip to content

Require urllib3<2, to reduce installation issues (cherry-pick of #18959)#18973

Merged
huonw merged 1 commit intopantsbuild:2.15.xfrom
huonw:bugfix/urllib3-1-2.15.x
May 11, 2023
Merged

Require urllib3<2, to reduce installation issues (cherry-pick of #18959)#18973
huonw merged 1 commit intopantsbuild:2.15.xfrom
huonw:bugfix/urllib3-1-2.15.x

Conversation

@huonw
Copy link
Contributor

@huonw huonw commented May 11, 2023

The release of urllib3 2 has caused issues with installing pants (e.g. it requires OpenSSL 1.1.1), so, for now, we can restrict to only working with urllib3 1.x.y and thus reduce how often people have to apply workarounds like PIP_CONSTRAINTS=....

I've verified that the wheel METADATA has Requires-Dist: urllib3 (<2), and installing the wheel into a fresh venv before uses urllib3==2.0.2, while installing the wheel after uses urllib3==1.26.15.

This patch is intended to be an option for a short term/focused work-around that is safe to cherry-pick back to older branches, while #18952 is the better fix (removes the use of urllib3 from the main wheel) but riskier, and thus might not be cherry-picked.

Background: https://pantsbuild.slack.com/archives/C0D7TNJHL/p1683644499629429

@huonw huonw merged commit 5df165c into pantsbuild:2.15.x May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category:bugfix Bug fixes for released features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants