Skip to content

Commit f0af0e9

Browse files
committed
Drop Python 3.7 and add official 3.12 support
1 parent 8eaca31 commit f0af0e9

File tree

6 files changed

+12
-14
lines changed

6 files changed

+12
-14
lines changed

.github/workflows/deploy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Set up Python
2222
uses: actions/setup-python@v3
2323
with:
24-
python-version: "3.11"
24+
python-version: "3.x"
2525

2626
- name: Build package
2727
run: |

.github/workflows/test.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
fail-fast: false
1616

1717
matrix:
18-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
18+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
1919
qt-lib: [pyqt5, pyqt6, pyside2, pyside6]
2020
os: [ubuntu-latest, windows-latest, macos-latest]
2121
include:
@@ -29,6 +29,8 @@ jobs:
2929
tox-env: "py310"
3030
- python-version: "3.11"
3131
tox-env: "py311"
32+
- python-version: "3.12"
33+
tox-env: "py312"
3234
exclude:
3335
# Not installable:
3436
# ERROR: Could not find a version that satisfies the requirement pyside2 (from versions: none)

CHANGELOG.rst

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
UNRELEASED
22
-----------
33

4+
- Added official support for Python 3.12.
5+
- Python 3.7 is no longer supported.
6+
47
- ``qapp`` now sets up the ``QApplication`` instance with a command line argument like this
58
``QApplication([prog_name])`` instead of using an empty list ``QApplication([])``.
69
Here ``prog_name`` is the name of the app which defaults to ``pytest-qt-app``, but can

setup.cfg renamed to pytest.ini

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
[bdist_wheel]
2-
universal = 1
3-
4-
[tool:pytest]
1+
[pytest]
52
testpaths = tests
63
addopts = --strict-markers --strict-config
74
xfail_strict = true

setup.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,19 @@
2323
url="http://github.com/pytest-dev/pytest-qt",
2424
use_scm_version={"write_to": "src/pytestqt/_version.py"},
2525
setup_requires=["setuptools_scm"],
26-
python_requires=">=3.7",
26+
python_requires=">=3.8",
2727
classifiers=[
2828
"Development Status :: 5 - Production/Stable",
2929
"Framework :: Pytest",
3030
"Intended Audience :: Developers",
3131
"License :: OSI Approved :: MIT License",
3232
"Operating System :: OS Independent",
3333
"Programming Language :: Python :: 3",
34-
"Programming Language :: Python :: 3.7",
3534
"Programming Language :: Python :: 3.8",
3635
"Programming Language :: Python :: 3.9",
3736
"Programming Language :: Python :: 3.10",
37+
"Programming Language :: Python :: 3.11",
38+
"Programming Language :: Python :: 3.12",
3839
"Topic :: Desktop Environment :: Window Managers",
3940
"Topic :: Software Development :: Quality Assurance",
4041
"Topic :: Software Development :: Testing",

tox.ini

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py{37,38,39,310}-{pyqt5,pyside2,pyside6,pyqt6}, linting
2+
envlist = py{38,39,310,311,312}-{pyqt5,pyside2,pyside6,pyqt6}
33

44
[testenv]
55
deps=
@@ -22,11 +22,6 @@ passenv=
2222
XAUTHORITY
2323
COLUMNS
2424

25-
[testenv:linting]
26-
skip_install = True
27-
deps = pre-commit
28-
commands = pre-commit run --all-files --show-diff-on-failure
29-
3025
[testenv:docs]
3126
usedevelop = True
3227
deps =

0 commit comments

Comments
 (0)