Skip to content

Commit

Permalink
Merge pull request #572 from pytest-dev/py38-py313
Browse files Browse the repository at this point in the history
Drop Python 3.8 support, add 3.13
  • Loading branch information
nicoddemus authored Dec 11, 2024
2 parents cdad310 + 28223c0 commit f2bbc28
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 9 deletions.
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Keep GitHub Actions up to date with GitHub's Dependabot...
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#package-ecosystem
version: 2
updates:
- package-ecosystem: github-actions
directory: /
groups:
github-actions:
patterns:
- "*" # Group all Actions updates into a single larger pull request
schedule:
interval: weekly
15 changes: 12 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: test

on: [push, pull_request]
on:
push:
branches:
- main

pull_request:

# Cancel running jobs for the same workflow and branch.
concurrency:
Expand All @@ -24,7 +29,7 @@ jobs:
fail-fast: false

matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
qt-lib: [pyqt5, pyqt6, pyside2, pyside6]
os: [ubuntu-latest, windows-latest, macos-latest]
exclude:
Expand All @@ -35,12 +40,16 @@ jobs:
os: windows-latest
- python-version: "3.12"
qt-lib: pyside2
- python-version: "3.13"
qt-lib: pyside2
- qt-lib: pyside2
os: macos-latest

steps:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v5.2.0
with:
python-version: ${{ matrix.python-version }}

Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
UNRELEASED
----------

* Added official support for Python 3.13.
* Dropped support for EOL Python 3.8.

4.4.0 (2024-02-07)
------------------

Expand Down
2 changes: 0 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ Features
Requirements
============

Since version 4.1.0, ``pytest-qt`` requires Python 3.7+.

Works with either PySide6_, PySide2_, PyQt6_ or PyQt5_.

If any of the above libraries is already imported by the time the tests execute, that library will be used.
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@
url="http://github.com/pytest-dev/pytest-qt",
use_scm_version={"write_to": "src/pytestqt/_version.py"},
setup_requires=["setuptools_scm"],
python_requires=">=3.8",
python_requires=">=3.9",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Framework :: Pytest",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"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",
"Programming Language :: Python :: 3.13",
"Topic :: Desktop Environment :: Window Managers",
"Topic :: Software Development :: Quality Assurance",
"Topic :: Software Development :: Testing",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def test_exceptions(qtbot):
expected_lines = [
"*RuntimeError: original error",
"*app.sendEvent*",
"*ValueError: mistakes were made*",
"*ValueError:*mistakes were made*",
"*1 failed*",
]
else:
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{38,39,310,311,312}-{pyqt5,pyside2,pyside6,pyqt6}
envlist = py{39,310,311,312,313}-{pyqt5,pyside2,pyside6,pyqt6}

[testenv]
deps=
Expand Down

0 comments on commit f2bbc28

Please sign in to comment.