From fc76801dc1c2aa87c072c9fcd84861cc004b9b07 Mon Sep 17 00:00:00 2001 From: Artem Rys Date: Wed, 13 Nov 2024 10:15:57 +0100 Subject: [PATCH] chore(pyproject): explicitly specify supported Python versions (#1452) **Issue number:** N/A ## Summary ### Changes Adding an explicit support for Python 3.12. (I tested Python 3.13 but it does not work yet because of `lxml` does not support 3.13 yet). ### User experience N/A ## Checklist If your change doesn't seem to apply, please leave them unchecked. * [x] I have performed a self-review of this change * [x] Changes have been tested * [ ] Changes are documented * [x] PR title follows [conventional commit semantics](https://www.conventionalcommits.org/en/v1.0.0/) --- .github/workflows/build-test-release.yml | 2 ++ poetry.lock | 4 ++-- pyproject.toml | 10 ++++++++-- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-test-release.yml b/.github/workflows/build-test-release.yml index b0580c2c9..98f67b57e 100644 --- a/.github/workflows/build-test-release.yml +++ b/.github/workflows/build-test-release.yml @@ -135,6 +135,7 @@ jobs: - "3.9" - "3.10" - "3.11" + - "3.12" steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 @@ -168,6 +169,7 @@ jobs: - "3.9" - "3.10" - "3.11" + - "3.12" steps: - uses: actions/checkout@v4 - uses: actions/download-artifact@v4 diff --git a/poetry.lock b/poetry.lock index 933eeb515..0aade8ad5 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1767,5 +1767,5 @@ testing = ["big-O", "flake8 (<5)", "jaraco.functools", "jaraco.itertools", "more [metadata] lock-version = "2.0" -python-versions = "^3.7" -content-hash = "8a01c2a730b73b14bfd3a826d7a5926a82e36d28675e7d74494bb65d25ad73c2" +python-versions = ">=3.7,<3.13" +content-hash = "f0072f7b472f7556af341f351358bed09701afd1b0b014e296a4c5fec118c4c6" diff --git a/pyproject.toml b/pyproject.toml index 7dea04deb..f5ac09dc7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,14 +32,20 @@ classifiers = [ "Intended Audience :: Developers", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Software Development :: Code Generators", - "License :: OSI Approved :: Apache Software License" + "License :: OSI Approved :: Apache Software License", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", ] [tool.poetry.urls] "Bug Tracker" = "https://github.com/splunk/addonfactory-ucc-generator/issues" [tool.poetry.dependencies] -python = "^3.7" +python = ">=3.7,<3.13" jinja2 = ">=2,<4" addonfactory-splunk-conf-parser-lib = "^0.4.3" dunamai = "^1.22.0"