Skip to content

Commit 7e63038

Browse files
committed
Drop support to python 3.7
1 parent 77da67e commit 7e63038

File tree

6 files changed

+14
-21
lines changed

6 files changed

+14
-21
lines changed

.github/workflows/main.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "pypy-3.8"]
17+
python-version: ["3.8", "3.9", "3.10", "3.11", "pypy-3.8"]
1818

1919
steps:
2020
- name: Install libgnutls28-dev
2121
run: |
2222
sudo apt update -q
2323
sudo apt install -q -y libgnutls28-dev libcurl4-gnutls-dev
2424
25-
- uses: actions/checkout@v3.5.2
25+
- uses: actions/checkout@v3
2626

2727
- name: Set up Python ${{ matrix.python-version }}
2828
uses: actions/setup-python@v4

docs/installation.rst

+1-1
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

+1-3
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ def run_tests(self):
4545
install_requires = [
4646
"PyYAML",
4747
"wrapt",
48-
"six>=1.5",
4948
"yarl",
5049
]
5150

@@ -59,7 +58,7 @@ def run_tests(self):
5958
author_email="me@kevinmccarthy.org",
6059
url="https://github.com/kevin1024/vcrpy",
6160
packages=find_packages(exclude=["tests*"]),
62-
python_requires=">=3.7",
61+
python_requires=">=3.8",
6362
install_requires=install_requires,
6463
license="MIT",
6564
tests_require=["pytest", "mock", "pytest-httpbin"],
@@ -69,7 +68,6 @@ def run_tests(self):
6968
"Intended Audience :: Developers",
7069
"Programming Language :: Python",
7170
"Programming Language :: Python :: 3",
72-
"Programming Language :: Python :: 3.7",
7371
"Programming Language :: Python :: 3.8",
7472
"Programming Language :: Python :: 3.9",
7573
"Programming Language :: Python :: 3.10",

tests/unit/test_vcr.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ def function_with_return():
335335
assert ret == function_with_return()
336336

337337

338-
class TestVCRClass(VCR().test_case()):
338+
class TestVCRClass(VCR()):
339339
def no_decoration(self):
340340
assert httplib.HTTPConnection == _HTTPConnection
341341
self.test_dynamically_added()

tox.ini

+8-10
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@ skip_missing_interpreters=true
33
envlist =
44
cov-clean,
55
lint,
6-
{py37,py38,py39,py310,py311}-{requests,httplib2,urllib3,tornado4,boto3,aiohttp,httpx},
6+
{py38,py39,py310,py311}-{requests,httplib2,urllib3,tornado4,boto3,aiohttp,httpx},
77
{pypy3}-{requests,httplib2,urllib3,tornado4,boto3},
88
{py310}-httpx019,
99
cov-report
1010

1111

1212
[gh-actions]
1313
python =
14-
3.7: py37
1514
3.8: py38
1615
3.9: py39
1716
3.10: py310, lint
@@ -67,7 +66,7 @@ commands =
6766
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
6867
# We use Python 3.7. Tox sometimes tries to autodetect it based on the name of
6968
# the testenv, but "docs" does not give useful clues so we have to be explicit.
70-
basepython = python3.7
69+
basepython = python3.8
7170

7271
[testenv]
7372
# Need to use develop install so that paths
@@ -89,20 +88,19 @@ deps =
8988
httplib2: httplib2
9089
urllib3: urllib3<2
9190
boto3: boto3
92-
boto3: urllib3
91+
boto3: urllib3<2
9392
aiohttp: aiohttp
9493
aiohttp: pytest-asyncio
9594
aiohttp: pytest-aiohttp
9695
httpx: httpx
97-
{py37,py38,py39,py310}-{httpx}: httpx
98-
{py37,py38,py39,py310}-{httpx}: pytest-asyncio
96+
{py38,py39,py310}-{httpx}: httpx
97+
{py38,py39,py310}-{httpx}: pytest-asyncio
9998
httpx: httpx>0.19
100-
# httpx==0.19 is the latest version that supports allow_redirects, newer versions use follow_redirects
10199
httpx019: httpx==0.19
102-
{py37,py38,py39,py310}-{httpx}: pytest-asyncio
100+
{py38,py39,py310}-{httpx}: pytest-asyncio
103101
depends =
104-
lint,{py37,py38,py39,py310,py311,pypy3}-{requests,httplib2,urllib3,tornado4,boto3},{py37,py38,py39,py310,py311}-{aiohttp},{py37,py38,py39,py310,py311}-{httpx}: cov-clean
105-
cov-report: lint,{py37,py38,py39,py310,py311,pypy3}-{requests,httplib2,urllib3,tornado4,boto3},{py37,py38,py39,py310,py311}-{aiohttp}
102+
lint,{py38,py39,py310,py311,pypy3}-{requests,httplib2,urllib3,tornado4,boto3},{py38,py39,py310,py311}-{aiohttp},{py38,py39,py310,py311}-{httpx}: cov-clean
103+
cov-report: lint,{py38,py39,py310,py311,pypy3}-{requests,httplib2,urllib3,tornado4,boto3},{py38,py39,py310,py311}-{aiohttp}
106104
passenv =
107105
AWS_ACCESS_KEY_ID
108106
AWS_DEFAULT_REGION

vcr/config.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
from collections import abc as collections_abc
77
from pathlib import Path
88

9-
import six
10-
119
from . import filters, matchers
1210
from .cassette import Cassette
1311
from .persisters.filesystem import FilesystemPersister
@@ -253,5 +251,4 @@ def register_persister(self, persister):
253251

254252
def test_case(self, predicate=None):
255253
predicate = predicate or self.is_test_method
256-
# TODO: Remove this reference to `six` in favor of the Python3 equivalent
257-
return six.with_metaclass(auto_decorate(self.use_cassette, predicate))
254+
return auto_decorate(self.use_cassette, predicate)

0 commit comments

Comments
 (0)