From 5a6972e233288e9b2cda39bbdd43f108a2b81e9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Pokorn=C3=BD?= Date: Wed, 22 Jan 2025 08:42:02 +0100 Subject: [PATCH] =?UTF-8?q?build:=20=E2=9E=96=20Do=20not=20officially=20su?= =?UTF-8?q?pport=20Python=203.8=20anymore=20(#114)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [Python 3.8 is EOL since October 2024](https://peps.python.org/pep-0569/) and some depdendencies have already dropped support for it. BREAKING_CHANGE: Now requires requires `httpx >= 0.23.0` Lower versions of `httpx` do not work with Python 3.13+ helps to keep project file simpler. Dropping support for Python 3.8 leads to a breaking change anyway, so it is a good time to make this change. --- .github/workflows/pypi-release.yml | 4 ++-- .github/workflows/python-build.yml | 2 +- .github/workflows/python-test.yml | 2 +- pyproject.toml | 17 ++++------------- 4 files changed, 8 insertions(+), 17 deletions(-) diff --git a/.github/workflows/pypi-release.yml b/.github/workflows/pypi-release.yml index d795658..74433de 100644 --- a/.github/workflows/pypi-release.yml +++ b/.github/workflows/pypi-release.yml @@ -16,10 +16,10 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Set up Python 3.8 + - name: Set up Python 3.9 uses: actions/setup-python@v5 with: - python-version: "3.8" + python-version: "3.9" - name: Install pypa/build run: | diff --git a/.github/workflows/python-build.yml b/.github/workflows/python-build.yml index c3ee493..27a81ae 100644 --- a/.github/workflows/python-build.yml +++ b/.github/workflows/python-build.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 92384e8..9022dfb 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] steps: - uses: actions/checkout@v4 diff --git a/pyproject.toml b/pyproject.toml index a7f0b22..52f72f9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,8 +15,7 @@ classifiers = [ "Topic :: Utilities", ] dependencies = [ - "httpx>=0.16 ; python_version < '3.13'" , - "httpx>=0.23 ; python_version >= '3.13'" , + "httpx>=0.23", "tomli >= 1.1.0 ; python_version < '3.11'", ] description = 'H2O Cloud Discovery Python CLient' @@ -24,7 +23,7 @@ keywords = [] license = "Apache-2.0" name = "h2o-cloud-discovery" readme = "README.md" -requires-python = ">=3.8" +requires-python = ">=3.9" version = "2.2.1" [project.urls] @@ -40,17 +39,10 @@ packages = ["src/h2o_discovery"] [[tool.hatch.envs.test.matrix]] httpx = ["httpx0.23", "httpx0.24", "httpx0.25", "httpx0.26", "httpx0.27", "httpx0.28"] -python = ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] - -[[tool.hatch.envs.test.matrix]] -httpx = ["httpx0.16", "httpx0.21", "httpx0.22"] -python = ["3.8", "3.9", "3.10", "3.11", "3.12"] +python = ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] [tool.hatch.envs.test.overrides] matrix.httpx.dependencies = [ - {value = "httpx==0.16.*", if = ["httpx0.16"]}, - {value = "httpx==0.21.*", if = ["httpx0.21"]}, - {value = "httpx==0.22.*", if = ["httpx0.22"]}, {value = "httpx==0.23.*", if = ["httpx0.23"]}, {value = "httpx==0.24.*", if = ["httpx0.24"]}, {value = "httpx==0.25.*", if = ["httpx0.25"]}, @@ -61,8 +53,7 @@ matrix.httpx.dependencies = [ [tool.hatch.envs.test] dependencies = [ - "pytest-asyncio==0.24.0 ; python_version < '3.9'", - "pytest-asyncio==0.25.1 ;python_version >= '3.9'", + "pytest-asyncio==0.25.1", "pytest==8.3", "respx>=0.16", ]