From ac7b4cbb2cbd6f572df3cd82b26fd77bf3081203 Mon Sep 17 00:00:00 2001 From: Maurits van Rees Date: Thu, 30 Apr 2026 22:30:26 +0200 Subject: [PATCH] Restore Python 3.9 as one of the default Pythons for Plone 6.0. See https://github.com/plone/plone.folder/pull/54#issuecomment-4352460937 and further comments. --- news/+d323c2b0.bugfix.md | 1 + src/plone/meta/config_package.py | 3 ++- tests/test_package_config_ci.py | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 news/+d323c2b0.bugfix.md diff --git a/news/+d323c2b0.bugfix.md b/news/+d323c2b0.bugfix.md new file mode 100644 index 00000000..ca9e024c --- /dev/null +++ b/news/+d323c2b0.bugfix.md @@ -0,0 +1 @@ +Restore Python 3.9 as one of the default Pythons for Plone 6.0. @mauritsvanrees diff --git a/src/plone/meta/config_package.py b/src/plone/meta/config_package.py index a8992b1b..ffffdfa7 100755 --- a/src/plone/meta/config_package.py +++ b/src/plone/meta/config_package.py @@ -36,7 +36,7 @@ TOX_TEST_MATRIX = { "6.2": ["3.14", "3.13", "3.12", "3.11", "3.10"], "6.1": ["3.13", "3.12", "3.11", "3.10"], - "6.0": ["3.13", "3.12", "3.11", "3.10"], + "6.0": ["3.13", "3.12", "3.11", "3.10", "3.9"], } MXDEV_CONSTRAINTS = "constraints-mxdev.txt" @@ -47,6 +47,7 @@ "3.12": "python:3.12-trixie", "3.11": "python:3.11-trixie", "3.10": "python:3.10-trixie", + "3.9": "python:3.9-trixie", } # Rather than pointing configured repositories to `plone.meta`'s `main` branch diff --git a/tests/test_package_config_ci.py b/tests/test_package_config_ci.py index 2b566b99..97238d33 100644 --- a/tests/test_package_config_ci.py +++ b/tests/test_package_config_ci.py @@ -129,7 +129,8 @@ class TestMinimalPythonVersion: @pytest.mark.parametrize( ["matrix", "output"], [ - [None, "3.10"], + [None, "3.9"], + [{"6.0": ["*"]}, "3.9"], [{"6.1": ["*"]}, "3.10"], [{"6.2": ["*"]}, "3.10"], [{"6.2": ["3.13"]}, "3.13"],