From 4a334bd143b468fd7bd2975b9fbdf2afe55dcc00 Mon Sep 17 00:00:00 2001 From: Yuriy Losev Date: Mon, 12 Oct 2026 15:34:59 +0400 Subject: [PATCH] [chore] Require Python 3.12, the version of Deckhouse The library runs in Deckhouse images on Python 3.12, and CI tested it on 3.8 only. CI and the publish workflow now use 3.12, and pyproject.toml requires it. Signed-off-by: Yuriy Losev --- .github/workflows/publish-to-pypi.yml | 2 +- .github/workflows/test-on-pr.yml | 2 +- README.md | 2 +- poetry.lock | 57 ++------------------------- pyproject.toml | 2 +- 5 files changed, 8 insertions(+), 57 deletions(-) diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 3d5aaa8..01674dc 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -12,7 +12,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.8" + python-version: "3.12" - name: Install poetry uses: abatilo/actions-poetry@v2 with: diff --git a/.github/workflows/test-on-pr.yml b/.github/workflows/test-on-pr.yml index 6893ec1..c058685 100644 --- a/.github/workflows/test-on-pr.yml +++ b/.github/workflows/test-on-pr.yml @@ -12,7 +12,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.8" + python-version: "3.12" - name: Install poetry uses: abatilo/actions-poetry@v2 with: diff --git a/README.md b/README.md index 489b059..b3d14a2 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ def test_hello(): ## Development -- Create virtual environment with python >= 3.8 +- Create virtual environment with python >= 3.12 - [Install poetry](https://python-poetry.org/docs/#installation) - `poetry install` - `make test` diff --git a/poetry.lock b/poetry.lock index eadc427..ef7fe59 100644 --- a/poetry.lock +++ b/poetry.lock @@ -13,11 +13,7 @@ files = [ [package.dependencies] lazy-object-proxy = ">=1.4.0" -typing-extensions = {version = ">=4.0.0", markers = "python_version < \"3.11\""} -wrapt = [ - {version = ">=1.11,<2", markers = "python_version < \"3.11\""}, - {version = ">=1.14,<2", markers = "python_version >= \"3.11\""}, -] +wrapt = {version = ">=1.14,<2", markers = "python_version >= \"3.11\""} [[package]] name = "black" @@ -45,8 +41,6 @@ click = ">=8.0.0" mypy-extensions = ">=0.4.3" pathspec = ">=0.9.0" platformdirs = ">=2" -tomli = {version = ">=1.1.0", markers = "python_full_version < \"3.11.0a7\""} -typing-extensions = {version = ">=3.10.0.0", markers = "python_version < \"3.10\""} [package.extras] colorama = ["colorama (>=0.4.3)"] @@ -121,20 +115,6 @@ files = [ {file = "dotmap-1.3.30.tar.gz", hash = "sha256:5821a7933f075fb47563417c0e92e0b7c031158b4c9a6a7e56163479b658b368"}, ] -[[package]] -name = "exceptiongroup" -version = "1.1.3" -description = "Backport of PEP 654 (exception groups)" -optional = false -python-versions = ">=3.7" -files = [ - {file = "exceptiongroup-1.1.3-py3-none-any.whl", hash = "sha256:343280667a4585d195ca1cf9cef84a4e178c4b6cf2274caef9859782b567d5e3"}, - {file = "exceptiongroup-1.1.3.tar.gz", hash = "sha256:097acd85d473d75af5bb98e41b61ff7fe35efe6675e4f9370ec6ec5126d160e9"}, -] - -[package.extras] -test = ["pytest (>=6)"] - [[package]] name = "iniconfig" version = "2.0.0" @@ -296,16 +276,11 @@ files = [ [package.dependencies] astroid = ">=2.15.6,<=2.17.0-dev0" colorama = {version = ">=0.4.5", markers = "sys_platform == \"win32\""} -dill = [ - {version = ">=0.2", markers = "python_version < \"3.11\""}, - {version = ">=0.3.6", markers = "python_version >= \"3.11\""}, -] +dill = {version = ">=0.3.6", markers = "python_version >= \"3.11\""} isort = ">=4.2.5,<6" mccabe = ">=0.6,<0.8" platformdirs = ">=2.2.0" -tomli = {version = ">=1.1.0", markers = "python_version < \"3.11\""} tomlkit = ">=0.10.1" -typing-extensions = {version = ">=3.10.0", markers = "python_version < \"3.10\""} [package.extras] spelling = ["pyenchant (>=3.2,<4.0)"] @@ -324,26 +299,13 @@ files = [ [package.dependencies] colorama = {version = "*", markers = "sys_platform == \"win32\""} -exceptiongroup = {version = ">=1.0.0rc8", markers = "python_version < \"3.11\""} iniconfig = "*" packaging = "*" pluggy = ">=0.12,<2.0" -tomli = {version = ">=1.0.0", markers = "python_version < \"3.11\""} [package.extras] testing = ["argcomplete", "attrs (>=19.2.0)", "hypothesis (>=3.56)", "mock", "nose", "pygments (>=2.7.2)", "requests", "setuptools", "xmlschema"] -[[package]] -name = "tomli" -version = "2.0.1" -description = "A lil' TOML parser" -optional = false -python-versions = ">=3.7" -files = [ - {file = "tomli-2.0.1-py3-none-any.whl", hash = "sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc"}, - {file = "tomli-2.0.1.tar.gz", hash = "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"}, -] - [[package]] name = "tomlkit" version = "0.12.1" @@ -355,17 +317,6 @@ files = [ {file = "tomlkit-0.12.1.tar.gz", hash = "sha256:38e1ff8edb991273ec9f6181244a6a391ac30e9f5098e7535640ea6be97a7c86"}, ] -[[package]] -name = "typing-extensions" -version = "4.7.1" -description = "Backported and Experimental Type Hints for Python 3.7+" -optional = false -python-versions = ">=3.7" -files = [ - {file = "typing_extensions-4.7.1-py3-none-any.whl", hash = "sha256:440d5dd3af93b060174bf433bccd69b0babc3b15b1a8dca43789fd7f61514b36"}, - {file = "typing_extensions-4.7.1.tar.gz", hash = "sha256:b75ddc264f0ba5615db7ba217daeb99701ad295353c45f9e95963337ceeeffb2"}, -] - [[package]] name = "wrapt" version = "1.15.0" @@ -452,5 +403,5 @@ files = [ [metadata] lock-version = "2.0" -python-versions = "^3.8" -content-hash = "832a49a3ee5d17e788e4ee2586617c0e4f675aa262696c139e036bfc17160e47" +python-versions = "^3.12" +content-hash = "396d4568942730757678aefe4d01db52a5a066cac7b8903e3eda5186b04c0490" diff --git a/pyproject.toml b/pyproject.toml index 6f0bc0e..2447a0d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,7 @@ packages = [{ include = "deckhouse" }] [tool.poetry.dependencies] -python = "^3.8" +python = "^3.12" dictdiffer = "^0.9.0" dotmap = "^1.3.30"