Skip to content

Commit 0ae56f3

Browse files
Work in progress drop python 3.8
Refs #12874
1 parent f373974 commit 0ae56f3

File tree

8 files changed

+13
-47
lines changed

8 files changed

+13
-47
lines changed

.github/workflows/prepare-release-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Set up Python
3535
uses: actions/setup-python@v5
3636
with:
37-
python-version: "3.8"
37+
python-version: "3.13"
3838

3939
- name: Install dependencies
4040
run: |

.github/workflows/test.yml

Lines changed: 3 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -54,25 +54,19 @@ jobs:
5454
fail-fast: false
5555
matrix:
5656
name: [
57-
"windows-py38",
58-
"windows-py38-pluggy",
5957
"windows-py39",
6058
"windows-py310",
6159
"windows-py311",
6260
"windows-py312",
6361
"windows-py313",
6462

65-
"ubuntu-py38",
66-
"ubuntu-py38-pluggy",
67-
"ubuntu-py38-freeze",
6863
"ubuntu-py39",
6964
"ubuntu-py310",
7065
"ubuntu-py311",
7166
"ubuntu-py312",
7267
"ubuntu-py313",
7368
"ubuntu-pypy3",
7469

75-
"macos-py38",
7670
"macos-py39",
7771
"macos-py310",
7872
"macos-py312",
@@ -83,15 +77,6 @@ jobs:
8377
]
8478

8579
include:
86-
- name: "windows-py38"
87-
python: "3.8"
88-
os: windows-latest
89-
tox_env: "py38-unittestextras"
90-
use_coverage: true
91-
- name: "windows-py38-pluggy"
92-
python: "3.8"
93-
os: windows-latest
94-
tox_env: "py38-pluggymain-pylib-xdist"
9580
- name: "windows-py39"
9681
python: "3.9"
9782
os: windows-latest
@@ -109,23 +94,10 @@ jobs:
10994
os: windows-latest
11095
tox_env: "py312"
11196
- name: "windows-py313"
112-
python: "3.13-dev"
97+
python: "3.13"
11398
os: windows-latest
11499
tox_env: "py313"
115100

116-
- name: "ubuntu-py38"
117-
python: "3.8"
118-
os: ubuntu-latest
119-
tox_env: "py38-lsof-numpy-pexpect"
120-
use_coverage: true
121-
- name: "ubuntu-py38-pluggy"
122-
python: "3.8"
123-
os: ubuntu-latest
124-
tox_env: "py38-pluggymain-pylib-xdist"
125-
- name: "ubuntu-py38-freeze"
126-
python: "3.8"
127-
os: ubuntu-latest
128-
tox_env: "py38-freeze"
129101
- name: "ubuntu-py39"
130102
python: "3.9"
131103
os: ubuntu-latest
@@ -154,10 +126,6 @@ jobs:
154126
os: ubuntu-latest
155127
tox_env: "pypy3-xdist"
156128

157-
- name: "macos-py38"
158-
python: "3.8"
159-
os: macos-latest
160-
tox_env: "py38-xdist"
161129
- name: "macos-py39"
162130
python: "3.9"
163131
os: macos-latest
@@ -172,7 +140,7 @@ jobs:
172140
os: macos-latest
173141
tox_env: "py312-xdist"
174142
- name: "macos-py313"
175-
python: "3.13-dev"
143+
python: "3.13"
176144
os: macos-latest
177145
tox_env: "py313-xdist"
178146

@@ -182,7 +150,7 @@ jobs:
182150
tox_env: "plugins"
183151

184152
- name: "doctesting"
185-
python: "3.8"
153+
python: "3.9"
186154
os: ubuntu-latest
187155
tox_env: "doctesting"
188156
use_coverage: true

CONTRIBUTING.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ Here is a simple overview, with pytest-specific bits:
270270

271271
#. Run all the tests
272272

273-
You need to have Python 3.8 or later available in your system. Now
273+
You need to have Python 3.9 or later available in your system. Now
274274
running tests is as simple as issuing this command::
275275

276276
$ tox -e linting,py39

README.rst

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

100-
- Python 3.8+ or PyPy3
100+
- Python 3.9+ or PyPy3
101101

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

doc/en/backwards-compatibility.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ Released pytest versions support all Python versions that are actively maintaine
8383
============== ===================
8484
pytest version min. Python version
8585
============== ===================
86+
9.0+ 3.9+
8687
8.0+ 3.8+
8788
7.1+ 3.7+
8889
6.2 - 7.0 3.6+

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ authors = [
2323
{ name = "Florian Bruhin" },
2424
{ name = "Others (See AUTHORS)" },
2525
]
26-
requires-python = ">=3.8"
26+
requires-python = ">=3.9"
2727
classifiers = [
2828
"Development Status :: 6 - Mature",
2929
"Intended Audience :: Developers",
@@ -33,7 +33,6 @@ classifiers = [
3333
"Operating System :: POSIX",
3434
"Operating System :: Unix",
3535
"Programming Language :: Python :: 3 :: Only",
36-
"Programming Language :: Python :: 3.8",
3736
"Programming Language :: Python :: 3.9",
3837
"Programming Language :: Python :: 3.10",
3938
"Programming Language :: Python :: 3.11",
@@ -481,7 +480,7 @@ files = [
481480
mypy_path = [
482481
"src",
483482
]
484-
python_version = "3.8"
483+
python_version = "3.9"
485484
check_untyped_defs = true
486485
disallow_any_generics = true
487486
disallow_untyped_defs = true

testing/code/test_excinfo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@ def raiseos():
965965
assert upframe is not None
966966
if upframe.f_code.co_name == "_makepath":
967967
# Only raise with expected calls, but not via e.g. inspect for
968-
# py38-windows.
968+
# py38-windows. (?)
969969
raised += 1
970970
raise OSError(2, "custom_oserror")
971971
return orig_path_cwd()

tox.ini

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

@@ -58,7 +56,7 @@ setenv =
5856
PYTHONWARNDEFAULTENCODING=1
5957

6058
# Configuration to run with coverage similar to CI, e.g.
61-
# "tox -e py38-coverage".
59+
# "tox -e py39-coverage".
6260
coverage: _PYTEST_TOX_COVERAGE_RUN=coverage run -m
6361
coverage: _PYTEST_TOX_EXTRA_DEP=coverage-enable-subprocess
6462
coverage: COVERAGE_FILE={toxinidir}/.coverage
@@ -178,7 +176,7 @@ commands =
178176
pytest pytest_twisted_integration.py
179177
pytest simple_integration.py --force-sugar --flakes
180178

181-
[testenv:py38-freeze]
179+
[testenv:py39]
182180
description =
183181
test pytest frozen with `pyinstaller` under `{basepython}`
184182
changedir = testing/freeze

0 commit comments

Comments
 (0)