Skip to content

Commit 417d7c4

Browse files
fix: add typing-extensions as build dependency for Python 3.10
Add typing-extensions to build-system.requires in both packages for Python < 3.11 to ensure build-time typing features are available.
1 parent ffefa45 commit 417d7c4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

nextgen/vcs-versioning/pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ build-backend = "hatchling.build"
33
requires = [
44
"hatchling",
55
"packaging>=20",
6+
'typing-extensions; python_version < "3.11"',
67
]
78

89
[project]
@@ -31,7 +32,7 @@ dynamic = [
3132
dependencies = [
3233
"packaging>=20",
3334
'tomli>=1; python_version < "3.11"',
34-
'typing-extensions; python_version < "3.10"',
35+
'typing-extensions; python_version < "3.11"',
3536
]
3637
[project.urls]
3738
Documentation = "https://github.com/unknown/vcs-versioning#readme"

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ requires = [
66
"setuptools>=77.0.3",
77
"vcs-versioning",
88
'tomli<=2.0.2; python_version < "3.11"',
9+
'typing-extensions; python_version < "3.11"',
910
]
1011
backend-path = [
1112
".",
@@ -45,7 +46,7 @@ dependencies = [
4546
# https://github.com/pypa/setuptools-scm/issues/1112 - re-pin in a breaking release
4647
"setuptools", # >= 61",
4748
'tomli>=1; python_version < "3.11"',
48-
'typing-extensions; python_version < "3.10"',
49+
'typing-extensions; python_version < "3.11"',
4950
]
5051

5152
[tool.uv.sources]

0 commit comments

Comments
 (0)