Skip to content

Commit ce27c63

Browse files
authored
Merge pull request #736 from kevin1024/drop-python38
[14 Oct 2024] Drop python 3.8 support
2 parents c6a7f4a + ab8944d commit ce27c63

File tree

6 files changed

+8
-14
lines changed

6 files changed

+8
-14
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,18 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
python-version:
19-
- "3.8"
2019
- "3.9"
2120
- "3.10"
2221
- "3.11"
2322
- "3.12"
2423
- "3.13"
25-
- "pypy-3.8"
2624
- "pypy-3.9"
2725
- "pypy-3.10"
2826
urllib3-requirement:
2927
- "urllib3>=2"
3028
- "urllib3<2"
3129

3230
exclude:
33-
- python-version: "3.8"
34-
urllib3-requirement: "urllib3>=2"
35-
- python-version: "pypy-3.8"
36-
urllib3-requirement: "urllib3>=2"
3731
- python-version: "3.9"
3832
urllib3-requirement: "urllib3>=2"
3933
- python-version: "pypy-3.9"

docs/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ with pip::
99
Compatibility
1010
-------------
1111

12-
VCR.py supports Python 3.8+, and `pypy <http://pypy.org>`__.
12+
VCR.py supports Python 3.9+, and `pypy <http://pypy.org>`__.
1313

1414
The following HTTP libraries are supported:
1515

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ select = [
3030
"W", # pycodestyle warning
3131
]
3232
line-length = 110
33-
target-version = "py38"
33+
target-version = "py39"
3434

3535
[tool.ruff.isort]
3636
known-first-party = ["vcr"]

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def find_version(*file_paths):
7878
author_email="[email protected]",
7979
url="https://github.com/kevin1024/vcrpy",
8080
packages=find_packages(exclude=["tests*"]),
81-
python_requires=">=3.8",
81+
python_requires=">=3.9",
8282
install_requires=install_requires,
8383
license="MIT",
8484
extras_require=extras_require,
@@ -89,11 +89,11 @@ def find_version(*file_paths):
8989
"Intended Audience :: Developers",
9090
"Programming Language :: Python",
9191
"Programming Language :: Python :: 3",
92-
"Programming Language :: Python :: 3.8",
9392
"Programming Language :: Python :: 3.9",
9493
"Programming Language :: Python :: 3.10",
9594
"Programming Language :: Python :: 3.11",
9695
"Programming Language :: Python :: 3.12",
96+
"Programming Language :: Python :: 3.13",
9797
"Programming Language :: Python :: 3 :: Only",
9898
"Programming Language :: Python :: Implementation :: CPython",
9999
"Programming Language :: Python :: Implementation :: PyPy",

vcr/matchers.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33
import urllib
44
import xmlrpc.client
55
from string import hexdigits
6-
from typing import List, Set
76

87
from .util import read_body
98

10-
_HEXDIG_CODE_POINTS: Set[int] = {ord(s.encode("ascii")) for s in hexdigits}
9+
_HEXDIG_CODE_POINTS: set[int] = {ord(s.encode("ascii")) for s in hexdigits}
1110

1211
log = logging.getLogger(__name__)
1312

@@ -109,7 +108,7 @@ def _dechunk(body):
109108
CHUNK_GAP = b"\r\n"
110109
BODY_LEN: int = len(body)
111110

112-
chunks: List[bytes] = []
111+
chunks: list[bytes] = []
113112
pos: int = 0
114113

115114
while True:

vcr/stubs/aiohttp_stubs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
import functools
55
import json
66
import logging
7+
from collections.abc import Mapping
78
from http.cookies import CookieError, Morsel, SimpleCookie
8-
from typing import Mapping, Union
9+
from typing import Union
910

1011
from aiohttp import ClientConnectionError, ClientResponse, CookieJar, RequestInfo, hdrs, streams
1112
from aiohttp.helpers import strip_auth_from_url

0 commit comments

Comments
 (0)