Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .chronus/changes/update-python-setuptools-2026-8-5.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
changeKind: dependencies
packages:
- "@typespec/http-client-python"
---

Update setuptools to 83.0.0 to address CVE-2026-59890.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{% endif %}

[build-system]
requires = ["setuptools>=77.0.3", "wheel"]
requires = ["setuptools>=83.0.0", "wheel"]
build-backend = "setuptools.build_meta"

[project]
Expand Down
2 changes: 1 addition & 1 deletion packages/http-client-python/generator/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@
"Jinja2==3.1.6",
"PyYAML==6.0.1",
"tomli==2.0.1",
"setuptools==75.3.2",
"setuptools==83.0.0",
],
)
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# --------------------------------------------------------------------------

[build-system]
requires = ["setuptools>=77.0.3", "wheel"]
requires = ["setuptools>=83.0.0", "wheel"]
build-backend = "setuptools.build_meta"

[project]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,11 @@ def _render_pyproject(option_value, existing_content):
"""


def test_render_requires_patched_setuptools():
parsed = _render_pyproject("", _EXISTING)
assert parsed["build-system"]["requires"] == ["setuptools>=83.0.0", "wheel"]


def test_render_keeps_selected_fields():
parsed = _render_pyproject("authors,description", _EXISTING)["project"]
# Selected fields are preserved from the existing file.
Expand Down
Loading