Skip to content

Commit df0ab16

Browse files
authored
fix: Drop generated requires-python upper bounds for uv and PDM (#1329)
`requires-python` has a long and sorted history in the Python community - https://docs.astral.sh/uv/concepts/resolution/#universal-resolution > When evaluating requires-python ranges for dependencies, uv only considers lower bounds and ignores upper bounds entirely. For example, >=3.8, <4 is treated as >=3.8 Remove the upper bound on generated clients to avoid pushing users into this without need.
1 parent f8cadc0 commit df0ab16

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

end_to_end_tests/metadata_snapshots/pdm.pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "0.1.0"
44
description = "A client library for accessing Test 3.1 Features"
55
authors = []
66
readme = "README.md"
7-
requires-python = ">=3.9,<4.0"
7+
requires-python = ">=3.9"
88
dependencies = [
99
"httpx>=0.23.0,<0.29.0",
1010
"attrs>=22.2.0",

end_to_end_tests/metadata_snapshots/uv.pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "test-3-1-features-client"
33
version = "0.1.0"
44
description = "A client library for accessing Test 3.1 Features"
55
authors = []
6-
requires-python = ">=3.9,<4.0"
6+
requires-python = ">=3.9"
77
readme = "README.md"
88
dependencies = [
99
"httpx>=0.23.0,<0.29.0",

openapi_python_client/templates/pyproject_pdm.toml.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "{{ package_version }}"
44
description = "{{ package_description }}"
55
authors = []
66
readme = "README.md"
7-
requires-python = ">=3.9,<4.0"
7+
requires-python = ">=3.9"
88
dependencies = [
99
"httpx>=0.23.0,<0.29.0",
1010
"attrs>=22.2.0",

openapi_python_client/templates/pyproject_uv.toml.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "{{ project_name }}"
33
version = "{{ package_version }}"
44
description = "{{ package_description }}"
55
authors = []
6-
requires-python = ">=3.9,<4.0"
6+
requires-python = ">=3.9"
77
readme = "README.md"
88
dependencies = [
99
"httpx>=0.23.0,<0.29.0",

0 commit comments

Comments
 (0)