]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Drop Python 3.8 support (#3592)
authorAlex Grönholm <alex.gronholm@nextday.fi>
Fri, 27 Jun 2025 10:45:12 +0000 (13:45 +0300)
committerGitHub <noreply@github.com>
Fri, 27 Jun 2025 10:45:12 +0000 (12:45 +0200)
.github/workflows/publish.yml
.github/workflows/test-suite.yml
CHANGELOG.md
README.md
docs/async.md
docs/index.md
pyproject.toml
requirements.txt

index 2c7cfb9f9b7aa2187eaf4830b401b7248d140ea4..fb2304a81a28c035aa401cff2f9168926f553481 100644 (file)
@@ -17,7 +17,7 @@ jobs:
       - uses: "actions/checkout@v4"
       - uses: "actions/setup-python@v5"
         with:
-          python-version: 3.8
+          python-version: 3.9
       - name: "Install dependencies"
         run: "scripts/install"
       - name: "Build package & docs"
index ae70a6b32b90183ffcb8fa1027733c9bf71ffcf7..9ea74686b81550a1c341ac7a396d7f8c6579f8b8 100644 (file)
@@ -14,7 +14,7 @@ jobs:
 
     strategy:
       matrix:
-        python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
+        python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
 
     steps:
       - uses: "actions/checkout@v4"
index ee0f81f9c3f7d2b641894474f9cb32824b5ab768..13bbfcdb799150aceefa6d91100b7c4ced715a17 100644 (file)
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
 
 The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
 
+## [UNRELEASED]
+
+### Removed
+
+* Drop support for Python 3.8
+
 ## 0.28.1 (6th December, 2024)
 
 * Fix SSL case where `verify=False` together with client side certificates.
index 23992d9c24c07f7e835d39f65e28f9055aa0926c..2ccecd578c3dfdd4fa1f7fc493309cfc944f7cb3 100644 (file)
--- a/README.md
+++ b/README.md
@@ -101,7 +101,7 @@ Or, to include the optional HTTP/2 support, use:
 $ pip install httpx[http2]
 ```
 
-HTTPX requires Python 3.8+.
+HTTPX requires Python 3.9+.
 
 ## Documentation
 
index 089d7831915c0b465d0da7de21523e1723cacfa3..f01715d84f6a0c4b8d74bde21b07001cf90d674c 100644 (file)
@@ -23,7 +23,7 @@ To make asynchronous requests, you'll need an `AsyncClient`.
 ```
 
 !!! tip
-    Use [IPython](https://ipython.readthedocs.io/en/stable/) or Python 3.8+ with `python -m asyncio` to try this code interactively, as they support executing `async`/`await` expressions in the console.
+    Use [IPython](https://ipython.readthedocs.io/en/stable/) or Python 3.9+ with `python -m asyncio` to try this code interactively, as they support executing `async`/`await` expressions in the console.
 
 ## API Differences
 
index c2210bc74f6ab13509fa3ab555dc4549a82bbb93..90a4f6b6f76ac4756da1676e9208ecdeed73a2be 100644 (file)
@@ -145,6 +145,6 @@ To include the optional brotli and zstandard decoders support, use:
 $ pip install httpx[brotli,zstd]
 ```
 
-HTTPX requires Python 3.8+
+HTTPX requires Python 3.9+
 
 [sync-support]: https://github.com/encode/httpx/issues/572
index 675d2ad4c675cd6cc1669d66ce71f8af514a75b0..eb9e5c9a3d0745c1f590708c08f2d2bd149d44ac 100644 (file)
@@ -6,7 +6,7 @@ build-backend = "hatchling.build"
 name = "httpx"
 description = "The next generation HTTP client."
 license = "BSD-3-Clause"
-requires-python = ">=3.8"
+requires-python = ">=3.9"
 authors = [
     { name = "Tom Christie", email = "tom@tomchristie.com" },
 ]
@@ -20,7 +20,6 @@ classifiers = [
     "Operating System :: OS Independent",
     "Programming Language :: Python :: 3",
     "Programming Language :: Python :: 3 :: Only",
-    "Programming Language :: Python :: 3.8",
     "Programming Language :: Python :: 3.9",
     "Programming Language :: Python :: 3.10",
     "Programming Language :: Python :: 3.11",
index caa094f33ab69aa8fc281685945baf5a9214c1f4..646cb813d7eec2be6ad07807e09c11e2bac2a0ec 100644 (file)
@@ -25,6 +25,5 @@ pytest==8.3.4
 ruff==0.8.1
 trio==0.27.0
 trio-typing==0.10.0
-trustme==1.1.0; python_version < '3.9'
-trustme==1.2.0; python_version >= '3.9'
+trustme==1.2.0
 uvicorn==0.32.1