Skip to content

Commit ad1010d

Browse files
authored
Merge pull request #695 from kevin1024/drop37
Drop support for Python 3.7 (after 2023-06-27)
2 parents d99593b + b827cbe commit ad1010d

30 files changed

+68
-103
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "pypy-3.8"]
16+
python-version: ["3.8", "3.9", "3.10", "3.11", "pypy-3.8"]
1717

1818
steps:
1919
- uses: actions/[email protected]

docs/conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
#
32
# vcrpy documentation build configuration file, created by
43
# sphinx-quickstart on Sun Sep 13 11:18:00 2015.

docs/contributing.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@ The test suite is pretty big and slow, but you can tell tox to only run specific
9696

9797
tox -e {pyNN}-{HTTP_LIBRARY} -- <pytest flags passed through>
9898

99-
tox -e py37-requests -- -v -k "'test_status_code or test_gzip'"
100-
tox -e py37-requests -- -v --last-failed
99+
tox -e py38-requests -- -v -k "'test_status_code or test_gzip'"
100+
tox -e py38-requests -- -v --last-failed
101101

102102
This will run only tests that look like ``test_status_code`` or
103-
``test_gzip`` in the test suite, and only in the python 3.7 environment
103+
``test_gzip`` in the test suite, and only in the python 3.8 environment
104104
that has ``requests`` installed.
105105

106106
Also, in order for the boto tests to run, you will need an AWS key.
@@ -130,17 +130,17 @@ in this example::
130130
pip3 install tox tox-pyenv
131131

132132
# Install supported versions (at time of writing), this does not activate them
133-
pyenv install 3.7.5 3.8.0 pypy3.8
133+
pyenv install 3.8.0 pypy3.8
134134

135135
# This activates them
136-
pyenv local 3.7.5 3.8.0 pypy3.8
136+
pyenv local 3.8.0 pypy3.8
137137

138138
# Run the whole test suite
139139
tox
140140

141141
# Run the whole test suite or just part of it
142142
tox -e lint
143-
tox -e py37-requests
143+
tox -e py38-requests
144144

145145

146146
Troubleshooting on MacOSX

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.7+, and `pypy <http://pypy.org>`__.
12+
VCR.py supports Python 3.8+, and `pypy <http://pypy.org>`__.
1313

1414
The following HTTP libraries are supported:
1515

setup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from setuptools import find_packages, setup
99
from setuptools.command.test import test as TestCommand
1010

11-
long_description = open("README.rst", "r").read()
11+
long_description = open("README.rst").read()
1212
here = os.path.abspath(os.path.dirname(__file__))
1313

1414

@@ -85,7 +85,7 @@ def run_tests(self):
8585
author_email="[email protected]",
8686
url="https://github.com/kevin1024/vcrpy",
8787
packages=find_packages(exclude=["tests*"]),
88-
python_requires=">=3.7",
88+
python_requires=">=3.8",
8989
install_requires=install_requires,
9090
license="MIT",
9191
tests_require=tests_require,
@@ -95,7 +95,6 @@ def run_tests(self):
9595
"Intended Audience :: Developers",
9696
"Programming Language :: Python",
9797
"Programming Language :: Python :: 3",
98-
"Programming Language :: Python :: 3.7",
9998
"Programming Language :: Python :: 3.8",
10099
"Programming Language :: Python :: 3.9",
101100
"Programming Language :: Python :: 3.10",

tests/integration/test_aiohttp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def test_post(tmpdir, body, caplog, mockbin_request_url):
151151
(
152152
log
153153
for log in caplog.records
154-
if log.getMessage() == "<Request (POST) {}> not in cassette, sending to real server".format(url)
154+
if log.getMessage() == f"<Request (POST) {url}> not in cassette, sending to real server"
155155
),
156156
None,
157157
), "Log message not found."

tests/integration/test_basic.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""Basic tests for cassettes"""
32

43
# External imports

tests/integration/test_boto3.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020
# https://github.com/boto/botocore/pull/1495
2121
boto3_skip_vendored_requests = pytest.mark.skipif(
2222
botocore_awsrequest,
23-
reason="botocore version {ver} does not use vendored requests anymore.".format(ver=botocore.__version__),
23+
reason=f"botocore version {botocore.__version__} does not use vendored requests anymore.",
2424
)
2525

2626
boto3_skip_awsrequest = pytest.mark.skipif(
2727
not botocore_awsrequest,
28-
reason="botocore version {ver} still uses vendored requests.".format(ver=botocore.__version__),
28+
reason=f"botocore version {botocore.__version__} still uses vendored requests.",
2929
)
3030

3131
IAM_USER_NAME = "vcrpy"

tests/integration/test_disksaver.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""Basic tests about save behavior"""
32

43
# External imports

tests/integration/test_httplib2.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""Integration tests with httplib2"""
32
from urllib.parse import urlencode
43

0 commit comments

Comments
 (0)