From 423797173f9445a9e0df904f2ea951e941681bf2 Mon Sep 17 00:00:00 2001 From: "Kenneth J. Pronovici" Date: Wed, 17 Jan 2024 21:41:37 +0000 Subject: [PATCH] Require minimum Python version v3.10 --- .github/workflows/test-suite.yml | 4 ++-- Changelog | 1 + poetry.lock | 6 ++---- pyproject.toml | 4 ++-- 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test-suite.yml b/.github/workflows/test-suite.yml index 23a52e2..73497b5 100644 --- a/.github/workflows/test-suite.yml +++ b/.github/workflows/test-suite.yml @@ -19,7 +19,7 @@ jobs: secrets: inherit with: matrix-os-version: "[ 'ubuntu-latest' ]" - matrix-python-version: "[ '3.9', '3.10', '3.11', '3.12' ]" + matrix-python-version: "[ '3.10', '3.11', '3.12' ]" poetry-version: "1.7.0" release: name: "Release" @@ -28,6 +28,6 @@ jobs: needs: [ linux-build-and-test ] secrets: inherit with: - python-version: "3.9" + python-version: "3.10" poetry-version: "1.7.0" publish-pypi: false diff --git a/Changelog b/Changelog index 14cb1a1..482937e 100644 --- a/Changelog +++ b/Changelog @@ -1,5 +1,6 @@ Version 0.7.4 unreleased + * Require minimum Python version v3.10. * Update jinja2 to address CVE-2024-22195 from Dependabot. * Update dependencies and fix new MyPy warning about covariance. diff --git a/poetry.lock b/poetry.lock index ac64dcc..5eee989 100644 --- a/poetry.lock +++ b/poetry.lock @@ -898,7 +898,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)"] @@ -1237,7 +1236,6 @@ files = [ [package.dependencies] anyio = ">=3.4.0,<5" -typing-extensions = {version = ">=3.10.0", markers = "python_version < \"3.10\""} [package.extras] full = ["httpx (>=0.22.0)", "itsdangerous", "jinja2", "python-multipart", "pyyaml"] @@ -1552,5 +1550,5 @@ testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "p [metadata] lock-version = "2.0" -python-versions = ">=3.9,<4" -content-hash = "269d9f8cef6fb2bdca006732970ad97df08b1a1140f6eb54e03d4639ff4d1762" +python-versions = ">=3.10,<4" +content-hash = "36b558ae6a72292e86d91e1e77a4c90435277cd4985635898ba8e4787e0c8204" diff --git a/pyproject.toml b/pyproject.toml index c20a26f..b688577 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,7 +38,7 @@ format-jinja = "{% if distance == 0 and not dirty %}{{ base }}{% else %}{{ base vplan = "vplan.client.cli:vplan" [tool.poetry.dependencies] -python = ">=3.9,<4" +python = ">=3.10,<4" fastapi = "~0, >=0.103.2" uvicorn = "~0, >=0.23.2" pydantic-yaml = "~0, >=0.11.2" @@ -77,7 +77,7 @@ types-waitress = "^2.1.4.9" [tool.black] line-length = 132 -target-version = ['py39', 'py310', 'py311', 'py312' ] +target-version = ['py310', 'py311', 'py312' ] include = '(src\/scripts\/.*$|\.pyi?$)' exclude = ''' /(