-
Notifications
You must be signed in to change notification settings - Fork 10
chore: Drop test against pyside2 in napari repo workflow #1352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -71,15 +71,23 @@ deps= | |
| pytest-json-report | ||
| lxml_html_clean | ||
|
|
||
| [testenv:py{39,310,311,312,313}-{PyQt5,PySide2,PyQt6,PySide6}-napari_{419,54,repo}] | ||
|
|
||
| [testenv:py{39,310,311,312,313}-{PyQt5,PySide2,PyQt6,PySide6}-napari_{419,54}] | ||
| deps = | ||
| {[testenv]deps} | ||
| napari_419: napari==0.4.19.post1 | ||
| napari_54: napari==0.5.4 | ||
| napari_repo: git+https://github.com/napari/napari.git | ||
| commands = | ||
| !napari_repo: python -m pytest -v package/tests/test_PartSeg/test_napari_widgets.py --json-report --json-report-file={toxinidir}/report-{envname}-{sys_platform}.json {posargs} | ||
| napari_repo: python -m pytest package/tests --json-report --json-report-file={toxinidir}/report-{envname}-{sys_platform}.json {posargs} | ||
| python -m pytest -v package/tests/test_PartSeg/test_napari_widgets.py --json-report --json-report-file={toxinidir}/report-{envname}-{sys_platform}.json {posargs} | ||
|
|
||
|
|
||
| [testenv:py{310,311,312,313}-{PyQt5,PyQt6,PySide6}-napari_repo] | ||
| deps = | ||
| {[testenv]deps} | ||
| git+https://github.com/napari/napari.git | ||
| commands = | ||
| python -m pytest package/tests --json-report --json-report-file={toxinidir}/report-{envname}-{sys_platform}.json {posargs} | ||
|
Comment on lines
+84
to
+89
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🌐 Web query:
💡 Result: PyQt5 does support Python 3.13 via wheels, but not as “cp313” wheels.
What to do: on Python 3.13, try Sources: PyQt5 on PyPI [1], pyqt5-qt5 on PyPI [2], piwheels 🌐 Web query:
💡 Result: PyQt5 5.15.x is compatible with Python 3.13, as long as you install a recent PyQt5 5.15 release and its current dependencies:
Practical guidance:
Citations:
Pin the napari git dependency to a tag/commit for CI reproducibility. Using an unpinned PyQt5 supports Python 3.13 via 🔧 Suggested pinning for reproducibility deps =
{[testenv]deps}
- git+https://github.com/napari/napari.git
+ git+https://github.com/napari/napari.git@<tag-or-commit>🤖 Prompt for AI Agents
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This workflow is intentionally to check if there is some napari incompatibility before the release of the next version
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I appreciate the context and apologize for the noise on this one. ✏️ Learnings added
🧠 Learnings used |
||
|
|
||
|
|
||
| [testenv:py{39,310,311,312,313}-PyQt5-coverage] | ||
| deps = | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question (testing): The napari_repo env drops PySide2 and py39; confirm this reduction in matrix is intentional.
Previously,
napari_reporan onpy{39,310,311,312,313}-{PyQt5,PySide2,PyQt6,PySide6}; now it’s onlypy{310,311,312,313}-{PyQt5,PyQt6,PySide6}. Unless this is due to an intentional upstream drop of py39/PySide2 support, consider keeping those combos so we don’t silently lose coverage for configurations users may still depend on.