Skip to content

Declare PyQt5 through an optional compatibility extra - #217

Merged
altendky merged 4 commits into
masterfrom
optional-binding-extra
Oct 23, 2026
Merged

altendky merged 4 commits into
masterfrom
optional-binding-extra

Conversation

@altendky

@altendky altendky commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

Add the pyqt5 extra so PyQt5 version compatibility constraints can be declared in package metadata and enforced by dependency resolvers when users opt in. No PyQt5 version bounds are introduced in this change.

Document compatibility enforcement as the purpose of the extra. Selecting it may also cause pip to install PyQt5 as a side effect of satisfying the dependency. Update the changelog; existing development dependencies remain unchanged.

Validation: Built a wheel and source distribution with Python 3.12 and setuptools 75.8.0. Verified that the binding requirement is conditional on the extra, other dependencies are preserved, and all 50 packaged stub files are byte-for-byte identical to the base branch. Reviewed the documentation correction and checked whitespace.

altendky added a commit that referenced this pull request Oct 23, 2026
Python 3.10 CI resolves pytest 9.1.1, whose logging module uses match
statements that the pinned mypy 0.930 cannot parse. The QFlags typing
test imports pytest and fails on that syntax, leaving 403 tests passing
and one failing on each OS.

Constrain the development extra's pytest dependency below major version
9. This keeps pytest compatible with the existing mypy pin and applies
to tox's test environments through the development extra. Record the
compatibility bound in the changelog.

Observed failure:
https://github.com/python-qt-tools/PyQt5-stubs/actions/runs/40006937968/job/120597131802

Validation: All nine Python 3.8–3.10 / Linux, macOS, and Windows matrix
jobs pass, along with the aggregate check. Confirmed Python 3.10
resolves pytest 8.4.2 while retaining mypy 0.930; its full suite passes
all 404 tests. Whitespace checks pass.

This is independent of the optional compatibility extra in #217.
@altendky
altendky merged commit 21e0736 into master Oct 23, 2026
10 checks passed
@altendky
altendky deleted the optional-binding-extra branch October 23, 2026 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant