From 36f6ebc2937884a8f73dbf7fbce9d940f8c46f9f Mon Sep 17 00:00:00 2001 From: Jakob Keller <57402305+jakob-keller@users.noreply.github.com> Date: Fri, 16 Aug 2024 13:56:04 +0200 Subject: [PATCH] Add Python 3.13 to `PYTHON_VERSION` and `AVAILABLE_PYTHONS` (#747) (cherry picked from commit efa0a5a061ce1b99ff6157c0ff373e289b5437a5) --- 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 a841c7d45..bb5ad7f30 100644 --- a/src/poetry/core/packages/package.py +++ b/src/poetry/core/packages/package.py @@ -55,6 +55,7 @@ class Package(PackageSpecification): "3.10", "3.11", "3.12", + "3.13", } def __init__( diff --git a/src/poetry/core/version/helpers.py b/src/poetry/core/version/helpers.py index 4f6780f85..09b3ccefb 100644 --- a/src/poetry/core/version/helpers.py +++ b/src/poetry/core/version/helpers.py @@ -25,6 +25,7 @@ "3.10.*", "3.11.*", "3.12.*", + "3.13.*", ] diff --git a/tests/masonry/builders/test_builder.py b/tests/masonry/builders/test_builder.py index 1c2922c00..3ffe0388c 100644 --- a/tests/masonry/builders/test_builder.py +++ b/tests/masonry/builders/test_builder.py @@ -114,6 +114,7 @@ def test_get_metadata_content() -> None: "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "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 649e196a5..45367757a 100644 --- a/tests/masonry/builders/test_complete.py +++ b/tests/masonry/builders/test_complete.py @@ -202,6 +202,7 @@ def test_complete(no_vcs: bool) -> None: Classifier: Programming Language :: Python :: 3.10 Classifier: Programming Language :: Python :: 3.11 Classifier: Programming Language :: Python :: 3.12 +Classifier: Programming Language :: Python :: 3.13 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 04024ba69..746588966 100644 --- a/tests/masonry/test_api.py +++ b/tests/masonry/test_api.py @@ -172,6 +172,7 @@ def test_prepare_metadata_for_build_wheel() -> None: Classifier: Programming Language :: Python :: 3.10 Classifier: Programming Language :: Python :: 3.11 Classifier: Programming Language :: Python :: 3.12 +Classifier: Programming Language :: Python :: 3.13 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 193f8a72c..3d34787e2 100644 --- a/tests/test_factory.py +++ b/tests/test_factory.py @@ -151,6 +151,7 @@ def test_create_poetry() -> None: "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Topic :: Software Development :: Build Tools", "Topic :: Software Development :: Libraries :: Python Modules", ] @@ -524,5 +525,6 @@ def test_all_classifiers_unique_even_if_classifiers_is_duplicated() -> None: "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Topic :: Software Development :: Build Tools", ]