Skip to content

Commit

Permalink
Move urllib3 constraint to pyproject.toml (#106768)
Browse files Browse the repository at this point in the history
  • Loading branch information
autinerd authored and frenck committed Jan 2, 2024
1 parent 35fc264 commit 3419b8d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
6 changes: 1 addition & 5 deletions homeassistant/package_constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ scapy==2.5.0
SQLAlchemy==2.0.23
typing-extensions>=4.9.0,<5.0
ulid-transform==0.9.0
urllib3>=1.26.5,<2
voluptuous-serialize==2.6.0
voluptuous==0.13.1
webrtc-noise-gain==1.2.3
Expand All @@ -65,11 +66,6 @@ zeroconf==0.131.0
# see https://github.com/home-assistant/core/pull/16238
pycryptodome>=3.6.6

# Constrain urllib3 to ensure we deal with CVE-2020-26137 and CVE-2021-33503
# Temporary setting an upper bound, to prevent compat issues with urllib3>=2
# https://github.com/home-assistant/core/issues/97248
urllib3>=1.26.5,<2

# Constrain httplib2 to protect against GHSA-93xj-8mrv-444m
# https://github.com/advisories/GHSA-93xj-8mrv-444m
httplib2>=0.19.0
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ dependencies = [
"requests==2.31.0",
"typing-extensions>=4.9.0,<5.0",
"ulid-transform==0.9.0",
# Constrain urllib3 to ensure we deal with CVE-2020-26137 and CVE-2021-33503
# Temporary setting an upper bound, to prevent compat issues with urllib3>=2
# https://github.com/home-assistant/core/issues/97248
"urllib3>=1.26.5,<2",
"voluptuous==0.13.1",
"voluptuous-serialize==2.6.0",
"yarl==1.9.4",
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ PyYAML==6.0.1
requests==2.31.0
typing-extensions>=4.9.0,<5.0
ulid-transform==0.9.0
urllib3>=1.26.5,<2
voluptuous==0.13.1
voluptuous-serialize==2.6.0
yarl==1.9.4
5 changes: 0 additions & 5 deletions script/gen_requirements_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,6 @@
# see https://github.com/home-assistant/core/pull/16238
pycryptodome>=3.6.6
# Constrain urllib3 to ensure we deal with CVE-2020-26137 and CVE-2021-33503
# Temporary setting an upper bound, to prevent compat issues with urllib3>=2
# https://github.com/home-assistant/core/issues/97248
urllib3>=1.26.5,<2
# Constrain httplib2 to protect against GHSA-93xj-8mrv-444m
# https://github.com/advisories/GHSA-93xj-8mrv-444m
httplib2>=0.19.0
Expand Down

0 comments on commit 3419b8d

Please sign in to comment.