Skip to content

Commit a867b34

Browse files
authored
feat: add support for Python 3.14 new modules (#411)
* fix(libs): add Python 3.14 new modules to stdlib * test(libs): add unit test for Python 3.14 stdlibs * bump Poetry plugin to 1.47.0 * bump CLI to 1.41.0
1 parent 9b69175 commit a867b34

File tree

4 files changed

+19
-3
lines changed

4 files changed

+19
-3
lines changed

components/polylith/libs/stdlib.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,13 +289,20 @@ def to_py313(stdlib: set) -> set:
289289
return union(stdlib, news, removed)
290290

291291

292+
def to_py314(stdlib: set) -> set:
293+
news = {"annotationlib", "compression"}
294+
removed: set = set()
295+
296+
return union(stdlib, news, removed)
297+
298+
292299
py38 = with_extras(stdlib_python_3_8)
293300
py39 = to_py39(py38)
294301
py310 = to_py310(py39)
295302
py311 = to_py311(py310)
296303
py312 = to_py312(py311)
297304
py313 = to_py313(py312)
298-
305+
py314 = to_py314(py313)
299306

300307
standard_libs = {
301308
"3.8": py38,
@@ -304,4 +311,5 @@ def to_py313(stdlib: set) -> set:
304311
"3.11": py311,
305312
"3.12": py312,
306313
"3.13": py313,
314+
"3.14": py314,
307315
}

projects/poetry_polylith_plugin/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "poetry-polylith-plugin"
3-
version = "1.46.0"
3+
version = "1.47.0"
44
description = "A Poetry plugin that adds tooling support for the Polylith Architecture"
55
authors = ["David Vujic"]
66
homepage = "https://davidvujic.github.io/python-polylith-docs/"

projects/polylith_cli/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "polylith-cli"
3-
version = "1.40.0"
3+
version = "1.41.0"
44
description = "Python tooling support for the Polylith Architecture"
55
authors = ['David Vujic']
66
homepage = "https://davidvujic.github.io/python-polylith-docs/"

test/components/polylith/libs/test_stdlib.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,11 @@ def test_stdlib_3_13():
7979
}
8080

8181
assert py313.difference(py312) == set()
82+
83+
84+
def test_stdlib_3_14():
85+
py313 = stdlib.standard_libs["3.13"]
86+
py314 = stdlib.standard_libs["3.14"]
87+
88+
assert py313.difference(py314) == set()
89+
assert py314.difference(py313) == {"annotationlib", "compression"}

0 commit comments

Comments
 (0)