Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 1 addition & 27 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,39 +5,13 @@ name: Python package
on: [push]

jobs:
test-py37:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 4
matrix:
os: [ubuntu-22.04, macos-15-intel, windows-2022]

steps:
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: |
3.7
3.14
- name: Install dependencies
run: |
python -m pip install -c constraints.txt pip
python -m pip install -c constraints.txt invoke tox
- name: Run tox
env:
TOX_PARALLEL_NO_SPINNER: "1"
run: |
inv mkdir build/coverage-data
inv tox -e "py37-*"

test-py:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 8
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]

steps:
- uses: actions/checkout@v6
Expand Down
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,18 +131,23 @@ decorators are extracted from the ast.
-U -r requirements.txt`.
* Start developing.
* To run all tests with [tox](https://tox.readthedocs.io/en/latest/),
Python 3.7, 3.8, 3.9, 3.10, 3.11, 3.12, 3.13 and 3.14 must be
Python 3.10, 3.11, 3.12, 3.13 and 3.14 must be
available. You might want to look into using
[pyenv](https://github.com/pyenv/pyenv).


# Changelog

## upcoming

* Remove support for Python 3.7, 3.8 and 3.9.
Require at least Python 3.10 ([#63][p63])

## v0.1.4 (2026-01-26)

* Remove upper limit of supported pytest version ([#61][i61], [#62][p62]).
* Add support for Python 3.13 and Python 3.14 ([#60][p60]).
* Switch to original `flit` build backend ([#58][p58]).
* Remove upper limit of supported pytest version ([#61][i61], [#62][p62])
* Add support for Python 3.13 and Python 3.14 ([#60][p60])
* Switch to original `flit` build backend ([#58][p58])

## v0.1.3 (2024-03-05)

Expand Down Expand Up @@ -263,3 +268,4 @@ decorators are extracted from the ast.
[p58]: https://github.com/davidfritzsche/pytest-mypy-testing/pull/58
[p60]: https://github.com/davidfritzsche/pytest-mypy-testing/pull/60
[p62]: https://github.com/davidfritzsche/pytest-mypy-testing/pull/62
[p63]: https://github.com/davidfritzsche/pytest-mypy-testing/pull/63
6 changes: 0 additions & 6 deletions constraints.in
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# SPDX-FileCopyrightText: David Fritzsche
# SPDX-License-Identifier: CC0-1.0
atomicwrites==1.4.0
filelock <3.12.3; python_version < "3.8"
importlib-metadata <6.8; python_version < "3.8"
platformdirs <4.1; python_version < "3.8"
pluggy <1.3; python_version < "3.8"
typing-extensions <4.8; python_version < "3.8"
zipp <3.16; python_version < "3.8"
53 changes: 0 additions & 53 deletions mypy37.ini

This file was deleted.

53 changes: 0 additions & 53 deletions mypy38.ini

This file was deleted.

53 changes: 0 additions & 53 deletions mypy39.ini

This file was deleted.

7 changes: 2 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ authors = [
{name = "David Fritzsche", email = "david.fritzsche@mvua.de"},
]
readme = "README.md"
requires-python = ">=3.7"
requires-python = ">=3.10"
license = "Apache-2.0 OR MIT"
license-files = ["LICENSES/*"]
keywords = ["pytest", "mypy"]
Expand All @@ -23,9 +23,6 @@ classifiers = [
"Operating System :: Microsoft :: Windows",
"Operating System :: OS Independent",
"Operating System :: POSIX",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
Expand Down Expand Up @@ -54,7 +51,7 @@ include = ["src/pytest_mypy_testing/_version.py"]

[tool.black]
line-length = 88
target-version = ['py37', 'py38', 'py39', 'py310', 'py311', 'py312']
target-version = ['py310', 'py311', 'py312']
include = '\.pyi?$'
extend-exclude = '''
(
Expand Down
7 changes: 0 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
[tox]
isolated_build = True
envlist =
py37-pytest{70,74}-mypy{10,14}
py38-pytest{74,83}-mypy{18,114}
py39-pytest{74,84}-mypy{18,119}
{py310,py311,py312}-pytest{84,90}-mypy{119}
{py313,py314}-pytest{84,90}-mypy{119}
py-pytest{84,90}-mypy{119}
Expand All @@ -23,7 +20,6 @@ deps =
pytest72: pytest~=7.2.2
pytest74: pytest~=7.4.4 # last version to support Python 3.7 / noble
pytest80: pytest~=8.0.2
pytest80: pytest~=8.0.2
pytest81: pytest~=8.1.2
pytest83: pytest~=8.3.5 # last version to support Python 3.8 / trixie
pytest84: pytest~=8.4.2 # last version to support Python 3.9
Expand All @@ -37,9 +33,6 @@ deps =
mypy119: mypy==1.19.0 # last version to support Python 3.9
setenv =
COVERAGE_FILE={toxinidir}/build/{envname}/coverage
py37: PYTEST_MYPY_CONFIG_FILE={toxinidir}/mypy37.ini
py38: PYTEST_MYPY_CONFIG_FILE={toxinidir}/mypy38.ini
py39: PYTEST_MYPY_CONFIG_FILE={toxinidir}/mypy39.ini
commands =
python -m coverage run --context "{envname}" -m pytest {posargs} --junitxml={toxinidir}/build/{envname}/junit.xml

Expand Down