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", ]