Skip to content

Commit ec7b826

Browse files
authored
Add Python 3.12 and 3.12, drop Python 3.7 and 3.8 (#75)
1 parent bf589bc commit ec7b826

File tree

5 files changed

+13
-26
lines changed

5 files changed

+13
-26
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,8 @@ jobs:
3131
strategy:
3232
fail-fast: false
3333
matrix:
34-
python: ["3.7", "3.8", "3.9", "3.10", "3.11"]
34+
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]
3535
os: [ubuntu-latest, windows-latest]
36-
include:
37-
- python: "3.7"
38-
tox_env: "py37"
39-
- python: "3.8"
40-
tox_env: "py38"
41-
- python: "3.9"
42-
tox_env: "py39"
43-
- python: "3.10"
44-
tox_env: "py310"
45-
- python: "3.11"
46-
tox_env: "py311"
4736

4837
steps:
4938
- uses: actions/checkout@v3
@@ -67,4 +56,4 @@ jobs:
6756
- name: Test
6857
shell: bash
6958
run: |
70-
tox run -e ${{ matrix.tox_env }} --installpkg `find dist/*.tar.gz`
59+
tox run -e py --installpkg `find dist/*.tar.gz`

CHANGELOG.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
UNRELEASED
2+
----------
3+
4+
* Added official support for Python 3.12 and 3.13.
5+
* Dropped support for EOL Python 3.7 and Python 3.8.
6+
17
0.4.0 (2023-05-22)
28
------------------
39

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
packages=find_packages(where="src"),
1212
package_dir={"": "src"},
1313
platforms="any",
14-
python_requires=">=3.7",
14+
python_requires=">=3.9",
1515
install_requires=["pytest"],
1616
use_scm_version={"write_to": "src/pytest_reportlog/_version.py"},
1717
setup_requires=["setuptools_scm"],
@@ -31,11 +31,11 @@
3131
"License :: OSI Approved :: MIT License",
3232
"Operating System :: OS Independent",
3333
"Programming Language :: Python :: 3",
34-
"Programming Language :: Python :: 3.7",
35-
"Programming Language :: Python :: 3.8",
3634
"Programming Language :: Python :: 3.9",
3735
"Programming Language :: Python :: 3.10",
3836
"Programming Language :: Python :: 3.11",
37+
"Programming Language :: Python :: 3.12",
38+
"Programming Language :: Python :: 3.13",
3939
"Topic :: Software Development :: Testing",
4040
],
4141
)

tests/test_reportlog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
from pytest_reportlog.plugin import cleanup_unserializable, _open_filtered_writer
1010

11-
from typing_extensions import Protocol, Literal
11+
from typing import Protocol, Literal
1212

1313

1414
class OpenerModule(Protocol):

tox.ini

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,12 @@
11
[tox]
2-
envlist = py{37,38,39,310,311},linting
2+
envlist = py{39,310,311,312,313}
33

44
[testenv]
55
deps =
66
pytest-xdist
7-
typing-extensions # for the python3.7 compat imports in the tests
87
commands =
98
pytest -n1 tests
109

11-
[testenv:linting]
12-
skipsdist = True
13-
usedevelop = True
14-
basepython = python3.7
15-
deps = pre-commit
16-
commands = pre-commit run --all-files --show-diff-on-failure
17-
1810
[pytest]
1911
addopts = -ra -p pytester
2012

0 commit comments

Comments
 (0)