Skip to content

Commit f2bbc28

Browse files
authored
Merge pull request #572 from pytest-dev/py38-py313
Drop Python 3.8 support, add 3.13
2 parents cdad310 + 28223c0 commit f2bbc28

File tree

7 files changed

+35
-9
lines changed

7 files changed

+35
-9
lines changed

.github/dependabot.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Keep GitHub Actions up to date with GitHub's Dependabot...
2+
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot
3+
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#package-ecosystem
4+
version: 2
5+
updates:
6+
- package-ecosystem: github-actions
7+
directory: /
8+
groups:
9+
github-actions:
10+
patterns:
11+
- "*" # Group all Actions updates into a single larger pull request
12+
schedule:
13+
interval: weekly

.github/workflows/test.yml

+12-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: test
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
pull_request:
49

510
# Cancel running jobs for the same workflow and branch.
611
concurrency:
@@ -24,7 +29,7 @@ jobs:
2429
fail-fast: false
2530

2631
matrix:
27-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
32+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
2833
qt-lib: [pyqt5, pyqt6, pyside2, pyside6]
2934
os: [ubuntu-latest, windows-latest, macos-latest]
3035
exclude:
@@ -35,12 +40,16 @@ jobs:
3540
os: windows-latest
3641
- python-version: "3.12"
3742
qt-lib: pyside2
43+
- python-version: "3.13"
44+
qt-lib: pyside2
45+
- qt-lib: pyside2
46+
os: macos-latest
3847

3948
steps:
4049
- uses: actions/checkout@v3
4150

4251
- name: Set up Python ${{ matrix.python-version }}
43-
uses: actions/setup-python@v3
52+
uses: actions/setup-python@v5.2.0
4453
with:
4554
python-version: ${{ matrix.python-version }}
4655

CHANGELOG.rst

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
UNRELEASED
2+
----------
3+
4+
* Added official support for Python 3.13.
5+
* Dropped support for EOL Python 3.8.
6+
17
4.4.0 (2024-02-07)
28
------------------
39

README.rst

-2
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ Features
7474
Requirements
7575
============
7676

77-
Since version 4.1.0, ``pytest-qt`` requires Python 3.7+.
78-
7977
Works with either PySide6_, PySide2_, PyQt6_ or PyQt5_.
8078

8179
If any of the above libraries is already imported by the time the tests execute, that library will be used.

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,19 @@
2424
url="http://github.com/pytest-dev/pytest-qt",
2525
use_scm_version={"write_to": "src/pytestqt/_version.py"},
2626
setup_requires=["setuptools_scm"],
27-
python_requires=">=3.8",
27+
python_requires=">=3.9",
2828
classifiers=[
2929
"Development Status :: 5 - Production/Stable",
3030
"Framework :: Pytest",
3131
"Intended Audience :: Developers",
3232
"License :: OSI Approved :: MIT License",
3333
"Operating System :: OS Independent",
3434
"Programming Language :: Python :: 3",
35-
"Programming Language :: Python :: 3.8",
3635
"Programming Language :: Python :: 3.9",
3736
"Programming Language :: Python :: 3.10",
3837
"Programming Language :: Python :: 3.11",
3938
"Programming Language :: Python :: 3.12",
39+
"Programming Language :: Python :: 3.13",
4040
"Topic :: Desktop Environment :: Window Managers",
4141
"Topic :: Software Development :: Quality Assurance",
4242
"Topic :: Software Development :: Testing",

tests/test_exceptions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def test_exceptions(qtbot):
5959
expected_lines = [
6060
"*RuntimeError: original error",
6161
"*app.sendEvent*",
62-
"*ValueError: mistakes were made*",
62+
"*ValueError:*mistakes were made*",
6363
"*1 failed*",
6464
]
6565
else:

tox.ini

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

44
[testenv]
55
deps=

0 commit comments

Comments
 (0)