From 89a47f9bdfb6f5a24c0369f0b41f357602ba28ae Mon Sep 17 00:00:00 2001 From: Jakob Keller <57402305+jakob-keller@users.noreply.github.com> Date: Mon, 28 Aug 2023 23:05:49 +0200 Subject: [PATCH] feat: make Python 3.12 available add "3.12" to set of `AVAILABLE_PYTHONS` add "3.12.*" to `PYTHON_VERSION` list (python-poetry/poetry#8375) --- src/poetry/core/packages/package.py | 1 + src/poetry/core/version/helpers.py | 1 + tests/masonry/builders/test_builder.py | 1 + tests/masonry/builders/test_complete.py | 1 + tests/masonry/test_api.py | 1 + tests/test_factory.py | 2 ++ 6 files changed, 7 insertions(+) diff --git a/src/poetry/core/packages/package.py b/src/poetry/core/packages/package.py index 3a76fdf59..ddd63564a 100644 --- a/src/poetry/core/packages/package.py +++ b/src/poetry/core/packages/package.py @@ -53,6 +53,7 @@ class Package(PackageSpecification): "3.9", "3.10", "3.11", + "3.12", } def __init__( diff --git a/src/poetry/core/version/helpers.py b/src/poetry/core/version/helpers.py index f7f5bddba..4f6780f85 100644 --- a/src/poetry/core/version/helpers.py +++ b/src/poetry/core/version/helpers.py @@ -24,6 +24,7 @@ "3.9.*", "3.10.*", "3.11.*", + "3.12.*", ] diff --git a/tests/masonry/builders/test_builder.py b/tests/masonry/builders/test_builder.py index f74b9d4e6..80e68ed3f 100644 --- a/tests/masonry/builders/test_builder.py +++ b/tests/masonry/builders/test_builder.py @@ -102,6 +102,7 @@ def test_get_metadata_content() -> None: "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Topic :: Software Development :: Build Tools", "Topic :: Software Development :: Libraries :: Python Modules", ] diff --git a/tests/masonry/builders/test_complete.py b/tests/masonry/builders/test_complete.py index 940ac7d4b..44cbfbd72 100644 --- a/tests/masonry/builders/test_complete.py +++ b/tests/masonry/builders/test_complete.py @@ -186,6 +186,7 @@ def test_complete(no_vcs: bool) -> None: Classifier: Programming Language :: Python :: 3.9 Classifier: Programming Language :: Python :: 3.10 Classifier: Programming Language :: Python :: 3.11 +Classifier: Programming Language :: Python :: 3.12 Classifier: Topic :: Software Development :: Build Tools Classifier: Topic :: Software Development :: Libraries :: Python Modules Provides-Extra: time diff --git a/tests/masonry/test_api.py b/tests/masonry/test_api.py index 340e41444..8c0c00954 100644 --- a/tests/masonry/test_api.py +++ b/tests/masonry/test_api.py @@ -167,6 +167,7 @@ def test_prepare_metadata_for_build_wheel() -> None: Classifier: Programming Language :: Python :: 3.9 Classifier: Programming Language :: Python :: 3.10 Classifier: Programming Language :: Python :: 3.11 +Classifier: Programming Language :: Python :: 3.12 Classifier: Topic :: Software Development :: Build Tools Classifier: Topic :: Software Development :: Libraries :: Python Modules Provides-Extra: time diff --git a/tests/test_factory.py b/tests/test_factory.py index 43f3c86aa..7f2862006 100644 --- a/tests/test_factory.py +++ b/tests/test_factory.py @@ -148,6 +148,7 @@ def test_create_poetry() -> None: "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Topic :: Software Development :: Build Tools", "Topic :: Software Development :: Libraries :: Python Modules", ] @@ -492,5 +493,6 @@ def test_all_classifiers_unique_even_if_classifiers_is_duplicated() -> None: "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Topic :: Software Development :: Build Tools", ]