Skip to content

Commit 165fbbd

Browse files
committed
Drop py37 from CI
1 parent f617bab commit 165fbbd

File tree

8 files changed

+39
-50
lines changed

8 files changed

+39
-50
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
- name: Set up Python
4646
uses: actions/setup-python@v4
4747
with:
48-
python-version: "3.7"
48+
python-version: "3.11"
4949

5050
- name: Install tox
5151
run: |

.github/workflows/test.yml

Lines changed: 22 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -37,25 +37,23 @@ jobs:
3737
fail-fast: false
3838
matrix:
3939
name: [
40-
"windows-py37",
41-
"windows-py37-pluggy",
4240
"windows-py38",
41+
"windows-py38-pluggy",
4342
"windows-py39",
4443
"windows-py310",
4544
"windows-py311",
4645
"windows-py312",
4746

48-
"ubuntu-py37",
49-
"ubuntu-py37-pluggy",
50-
"ubuntu-py37-freeze",
5147
"ubuntu-py38",
48+
"ubuntu-py38-pluggy",
49+
"ubuntu-py38-freeze",
5250
"ubuntu-py39",
5351
"ubuntu-py310",
5452
"ubuntu-py311",
5553
"ubuntu-py312",
5654
"ubuntu-pypy3",
5755

58-
"macos-py37",
56+
"macos-py38",
5957
"macos-py39",
6058
"macos-py310",
6159
"macos-py312",
@@ -66,19 +64,15 @@ jobs:
6664
]
6765

6866
include:
69-
- name: "windows-py37"
70-
python: "3.7"
71-
os: windows-latest
72-
tox_env: "py37-numpy"
73-
- name: "windows-py37-pluggy"
74-
python: "3.7"
75-
os: windows-latest
76-
tox_env: "py37-pluggymain-pylib-xdist"
7767
- name: "windows-py38"
7868
python: "3.8"
7969
os: windows-latest
8070
tox_env: "py38-unittestextras"
8171
use_coverage: true
72+
- name: "windows-py38-pluggy"
73+
python: "3.8"
74+
os: windows-latest
75+
tox_env: "py38-pluggymain-pylib-xdist"
8276
- name: "windows-py39"
8377
python: "3.9"
8478
os: windows-latest
@@ -96,23 +90,18 @@ jobs:
9690
os: windows-latest
9791
tox_env: "py312"
9892

99-
- name: "ubuntu-py37"
100-
python: "3.7"
101-
os: ubuntu-latest
102-
tox_env: "py37-lsof-numpy-pexpect"
103-
use_coverage: true
104-
- name: "ubuntu-py37-pluggy"
105-
python: "3.7"
106-
os: ubuntu-latest
107-
tox_env: "py37-pluggymain-pylib-xdist"
108-
- name: "ubuntu-py37-freeze"
109-
python: "3.7"
110-
os: ubuntu-latest
111-
tox_env: "py37-freeze"
11293
- name: "ubuntu-py38"
11394
python: "3.8"
11495
os: ubuntu-latest
11596
tox_env: "py38-xdist"
97+
- name: "ubuntu-py38-pluggy"
98+
python: "3.8"
99+
os: ubuntu-latest
100+
tox_env: "py38-pluggymain-pylib-xdist"
101+
- name: "ubuntu-py38-freeze"
102+
python: "3.8"
103+
os: ubuntu-latest
104+
tox_env: "py38-freeze"
116105
- name: "ubuntu-py39"
117106
python: "3.9"
118107
os: ubuntu-latest
@@ -132,14 +121,14 @@ jobs:
132121
tox_env: "py312"
133122
use_coverage: true
134123
- name: "ubuntu-pypy3"
135-
python: "pypy-3.7"
124+
python: "pypy-3.8"
136125
os: ubuntu-latest
137126
tox_env: "pypy3-xdist"
138127

139-
- name: "macos-py37"
140-
python: "3.7"
128+
- name: "macos-py38"
129+
python: "3.8"
141130
os: macos-latest
142-
tox_env: "py37-xdist"
131+
tox_env: "py38-xdist"
143132
- name: "macos-py39"
144133
python: "3.9"
145134
os: macos-latest
@@ -160,11 +149,11 @@ jobs:
160149
tox_env: "plugins"
161150

162151
- name: "docs"
163-
python: "3.7"
152+
python: "3.8"
164153
os: ubuntu-latest
165154
tox_env: "docs"
166155
- name: "doctesting"
167-
python: "3.7"
156+
python: "3.8"
168157
os: ubuntu-latest
169158
tox_env: "doctesting"
170159
use_coverage: true

CONTRIBUTING.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ Short version
201201
#. Follow **PEP-8** for naming and `black <https://github.com/psf/black>`_ for formatting.
202202
#. Tests are run using ``tox``::
203203

204-
tox -e linting,py37
204+
tox -e linting,py39
205205

206206
The test environments above are usually enough to cover most cases locally.
207207

@@ -272,24 +272,24 @@ Here is a simple overview, with pytest-specific bits:
272272

273273
#. Run all the tests
274274

275-
You need to have Python 3.7 available in your system. Now
275+
You need to have Python 3.8 or later available in your system. Now
276276
running tests is as simple as issuing this command::
277277

278-
$ tox -e linting,py37
278+
$ tox -e linting,py39
279279

280-
This command will run tests via the "tox" tool against Python 3.7
280+
This command will run tests via the "tox" tool against Python 3.9
281281
and also perform "lint" coding-style checks.
282282

283283
#. You can now edit your local working copy and run the tests again as necessary. Please follow PEP-8 for naming.
284284

285-
You can pass different options to ``tox``. For example, to run tests on Python 3.7 and pass options to pytest
285+
You can pass different options to ``tox``. For example, to run tests on Python 3.9 and pass options to pytest
286286
(e.g. enter pdb on failure) to pytest you can do::
287287

288-
$ tox -e py37 -- --pdb
288+
$ tox -e py39 -- --pdb
289289

290-
Or to only run tests in a particular test module on Python 3.7::
290+
Or to only run tests in a particular test module on Python 3.9::
291291

292-
$ tox -e py37 -- testing/test_config.py
292+
$ tox -e py39 -- testing/test_config.py
293293

294294

295295
When committing, ``pre-commit`` will re-format the files if necessary.

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Features
100100
- Can run `unittest <https://docs.pytest.org/en/stable/how-to/unittest.html>`_ (or trial),
101101
`nose <https://docs.pytest.org/en/stable/how-to/nose.html>`_ test suites out of the box
102102

103-
- Python 3.7+ or PyPy3
103+
- Python 3.8+ or PyPy3
104104

105105
- Rich plugin architecture, with over 850+ `external plugins <https://docs.pytest.org/en/latest/reference/plugin_list.html>`_ and thriving community
106106

doc/en/backwards-compatibility.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ Released pytest versions support all Python versions that are actively maintaine
8787
============== ===================
8888
pytest version min. Python version
8989
============== ===================
90+
8.0+ 3.8+
9091
7.1+ 3.7+
9192
6.2 - 7.0 3.6+
9293
5.0 - 6.1 3.5+

doc/en/getting-started.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Get Started
99
Install ``pytest``
1010
----------------------------------------
1111

12-
``pytest`` requires: Python 3.7+ or PyPy3.
12+
``pytest`` requires: Python 3.8+ or PyPy3.
1313

1414
1. Run the following command in your command line:
1515

doc/en/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Features
7777

7878
- Can run :ref:`unittest <unittest>` (including trial) and :ref:`nose <noseintegration>` test suites out of the box
7979

80-
- Python 3.7+ or PyPy 3
80+
- Python 3.8+ or PyPy 3
8181

8282
- Rich plugin architecture, with over 800+ :ref:`external plugins <plugin-list>` and thriving community
8383

tox.ini

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,16 @@ minversion = 3.20.0
44
distshare = {homedir}/.tox/distshare
55
envlist =
66
linting
7-
py37
87
py38
98
py39
109
py310
1110
py311
1211
py312
1312
pypy3
14-
py37-{pexpect,xdist,unittestextras,numpy,pluggymain,pylib}
13+
py38-{pexpect,xdist,unittestextras,numpy,pluggymain,pylib}
1514
doctesting
1615
plugins
17-
py37-freeze
16+
py38-freeze
1817
docs
1918
docs-checklinks
2019

@@ -43,7 +42,7 @@ setenv =
4342
PYTHONWARNDEFAULTENCODING=1
4443

4544
# Configuration to run with coverage similar to CI, e.g.
46-
# "tox -e py37-coverage".
45+
# "tox -e py38-coverage".
4746
coverage: _PYTEST_TOX_COVERAGE_RUN=coverage run -m
4847
coverage: _PYTEST_TOX_EXTRA_DEP=coverage-enable-subprocess
4948
coverage: COVERAGE_FILE={toxinidir}/.coverage
@@ -136,7 +135,7 @@ commands =
136135
pytest pytest_twisted_integration.py
137136
pytest simple_integration.py --force-sugar --flakes
138137

139-
[testenv:py37-freeze]
138+
[testenv:py38-freeze]
140139
changedir = testing/freeze
141140
deps =
142141
pyinstaller

0 commit comments

Comments
 (0)