mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-09 01:03:24 +00:00
Drop support to python 3.6
This commit is contained in:
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
@@ -13,14 +13,14 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "pypy3"]
|
python-version: ["3.7", "3.8", "3.9", "3.10", "pypy-3.8"]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install libgnutls28-dev
|
- name: Install libgnutls28-dev
|
||||||
run: |
|
run: |
|
||||||
sudo apt update -q
|
sudo apt update -q
|
||||||
sudo apt install -q -y libgnutls28-dev libcurl4-gnutls-dev
|
sudo apt install -q -y libgnutls28-dev libcurl4-gnutls-dev
|
||||||
|
|
||||||
- uses: actions/checkout@v3.0.0
|
- uses: actions/checkout@v3.0.0
|
||||||
|
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
|
|||||||
@@ -96,11 +96,11 @@ The test suite is pretty big and slow, but you can tell tox to only run specific
|
|||||||
|
|
||||||
tox -e {pyNN}-{HTTP_LIBRARY} -- <pytest flags passed through>
|
tox -e {pyNN}-{HTTP_LIBRARY} -- <pytest flags passed through>
|
||||||
|
|
||||||
tox -e py36-requests -- -v -k "'test_status_code or test_gzip'"
|
tox -e py37-requests -- -v -k "'test_status_code or test_gzip'"
|
||||||
tox -e py37-requests -- -v --last-failed
|
tox -e py37-requests -- -v --last-failed
|
||||||
|
|
||||||
This will run only tests that look like ``test_status_code`` or
|
This will run only tests that look like ``test_status_code`` or
|
||||||
``test_gzip`` in the test suite, and only in the python 3.6 environment
|
``test_gzip`` in the test suite, and only in the python 3.7 environment
|
||||||
that has ``requests`` installed.
|
that has ``requests`` installed.
|
||||||
|
|
||||||
Also, in order for the boto tests to run, you will need an AWS key.
|
Also, in order for the boto tests to run, you will need an AWS key.
|
||||||
@@ -130,10 +130,10 @@ in this example::
|
|||||||
pip install tox tox-pyenv
|
pip install tox tox-pyenv
|
||||||
|
|
||||||
# Install supported versions (at time of writing), this does not activate them
|
# Install supported versions (at time of writing), this does not activate them
|
||||||
pyenv install 3.6.9 3.7.5 3.8.0 pypy3.6-7.2.0
|
pyenv install 3.7.5 3.8.0 pypy3.8
|
||||||
|
|
||||||
# This activates them
|
# This activates them
|
||||||
pyenv local 3.6.9 3.7.5 3.8.0 pypy3.6-7.2.0
|
pyenv local 3.7.5 3.8.0 pypy3.8
|
||||||
|
|
||||||
# Run the whole test suite
|
# Run the whole test suite
|
||||||
tox
|
tox
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ with pip::
|
|||||||
Compatibility
|
Compatibility
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
VCR.py supports Python 3.6+, and `pypy <http://pypy.org>`__.
|
VCR.py supports Python 3.7+, and `pypy <http://pypy.org>`__.
|
||||||
|
|
||||||
The following HTTP libraries are supported:
|
The following HTTP libraries are supported:
|
||||||
|
|
||||||
|
|||||||
3
setup.py
3
setup.py
@@ -59,7 +59,7 @@ setup(
|
|||||||
author_email="me@kevinmccarthy.org",
|
author_email="me@kevinmccarthy.org",
|
||||||
url="https://github.com/kevin1024/vcrpy",
|
url="https://github.com/kevin1024/vcrpy",
|
||||||
packages=find_packages(exclude=["tests*"]),
|
packages=find_packages(exclude=["tests*"]),
|
||||||
python_requires=">=3.6",
|
python_requires=">=3.7",
|
||||||
install_requires=install_requires,
|
install_requires=install_requires,
|
||||||
license="MIT",
|
license="MIT",
|
||||||
tests_require=["pytest", "mock", "pytest-httpbin"],
|
tests_require=["pytest", "mock", "pytest-httpbin"],
|
||||||
@@ -69,7 +69,6 @@ setup(
|
|||||||
"Intended Audience :: Developers",
|
"Intended Audience :: Developers",
|
||||||
"Programming Language :: Python",
|
"Programming Language :: Python",
|
||||||
"Programming Language :: Python :: 3",
|
"Programming Language :: Python :: 3",
|
||||||
"Programming Language :: Python :: 3.6",
|
|
||||||
"Programming Language :: Python :: 3.7",
|
"Programming Language :: Python :: 3.7",
|
||||||
"Programming Language :: Python :: 3.8",
|
"Programming Language :: Python :: 3.8",
|
||||||
"Programming Language :: Python :: 3.9",
|
"Programming Language :: Python :: 3.9",
|
||||||
|
|||||||
15
tox.ini
15
tox.ini
@@ -3,14 +3,13 @@ skip_missing_interpreters=true
|
|||||||
envlist =
|
envlist =
|
||||||
cov-clean,
|
cov-clean,
|
||||||
lint,
|
lint,
|
||||||
{py36,py37,py38,py39,py310}-{requests,httplib2,urllib3,tornado4,boto3,aiohttp,httpx},
|
{py37,py38,py39,py310}-{requests,httplib2,urllib3,tornado4,boto3,aiohttp,httpx},
|
||||||
{pypy3}-{requests,httplib2,urllib3,tornado4,boto3},
|
{pypy3}-{requests,httplib2,urllib3,tornado4,boto3},
|
||||||
cov-report
|
cov-report
|
||||||
|
|
||||||
|
|
||||||
[gh-actions]
|
[gh-actions]
|
||||||
python =
|
python =
|
||||||
3.6: py36
|
|
||||||
3.7: py37, lint
|
3.7: py37, lint
|
||||||
3.8: py38
|
3.8: py38
|
||||||
3.9: py39
|
3.9: py39
|
||||||
@@ -72,6 +71,7 @@ usedevelop=true
|
|||||||
commands =
|
commands =
|
||||||
./runtests.sh --cov=./vcr --cov-branch --cov-report=xml --cov-append {posargs}
|
./runtests.sh --cov=./vcr --cov-branch --cov-report=xml --cov-append {posargs}
|
||||||
deps =
|
deps =
|
||||||
|
Werkzeug==2.0.3
|
||||||
pytest
|
pytest
|
||||||
pytest-httpbin
|
pytest-httpbin
|
||||||
pytest-cov
|
pytest-cov
|
||||||
@@ -80,20 +80,17 @@ deps =
|
|||||||
requests: requests>=2.22.0
|
requests: requests>=2.22.0
|
||||||
httplib2: httplib2
|
httplib2: httplib2
|
||||||
urllib3: urllib3
|
urllib3: urllib3
|
||||||
{py36}-tornado4: tornado>=4,<5
|
|
||||||
{py36}-tornado4: pytest-tornado
|
|
||||||
{py36}-tornado4: pycurl
|
|
||||||
boto3: boto3
|
boto3: boto3
|
||||||
boto3: urllib3
|
boto3: urllib3
|
||||||
aiohttp: aiohttp
|
aiohttp: aiohttp
|
||||||
aiohttp: pytest-asyncio
|
aiohttp: pytest-asyncio
|
||||||
aiohttp: pytest-aiohttp
|
aiohttp: pytest-aiohttp
|
||||||
httpx: httpx
|
httpx: httpx
|
||||||
{py36,py37,py38,py39,py310}-{httpx}: httpx
|
{py37,py38,py39,py310}-{httpx}: httpx
|
||||||
{py36,py37,py38,py39,py310}-{httpx}: pytest-asyncio
|
{py37,py38,py39,py310}-{httpx}: pytest-asyncio
|
||||||
depends =
|
depends =
|
||||||
lint,{py36,py37,py38,py39,py310,pypy3}-{requests,httplib2,urllib3,tornado4,boto3},{py36,py37,py38,py39,py310}-{aiohttp},{py36,py37,py38,py39,py310}-{httpx}: cov-clean
|
lint,{py37,py38,py39,py310,pypy3}-{requests,httplib2,urllib3,tornado4,boto3},{py37,py38,py39,py310}-{aiohttp},{py37,py38,py39,py310}-{httpx}: cov-clean
|
||||||
cov-report: lint,{py36,py37,py38,py39,py310,pypy3}-{requests,httplib2,urllib3,tornado4,boto3},{py36,py37,py38,py39,py310}-{aiohttp}
|
cov-report: lint,{py37,py38,py39,py310,pypy3}-{requests,httplib2,urllib3,tornado4,boto3},{py37,py38,py39,py310}-{aiohttp}
|
||||||
passenv =
|
passenv =
|
||||||
AWS_ACCESS_KEY_ID
|
AWS_ACCESS_KEY_ID
|
||||||
AWS_DEFAULT_REGION
|
AWS_DEFAULT_REGION
|
||||||
|
|||||||
Reference in New Issue
Block a user