Skip to content
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

Use qtpy, deprecate superqt.qtcompat, drop support for Qt <5.12 #39

Merged
merged 14 commits into from Jan 7, 2022
Merged

Use qtpy, deprecate superqt.qtcompat, drop support for Qt <5.12 #39

merged 14 commits into from Jan 7, 2022

Conversation

tlambert03
Copy link
Member

PR that will remove qtcompat and use qtpy again once the qt6 support is realeased.

@codecov-commenter
Copy link

codecov-commenter commented Nov 7, 2021

Codecov Report

Merging #39 (925667f) into main (bbd60ee) will decrease coverage by 0.27%.
The diff coverage is 87.50%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #39      +/-   ##
==========================================
- Coverage   84.83%   84.55%   -0.28%     
==========================================
  Files          27       24       -3     
  Lines        2169     2104      -65     
==========================================
- Hits         1840     1779      -61     
+ Misses        329      325       -4     
Impacted Files Coverage Δ
src/superqt/fonticon/__init__.py 88.88% <ø> (ø)
src/superqt/qtcompat/__init__.py 0.00% <0.00%> (-72.92%) ⬇️
src/superqt/_eliding_label.py 100.00% <100.00%> (ø)
src/superqt/collapsible/_collapsible.py 97.18% <100.00%> (ø)
src/superqt/combobox/_enum_combobox.py 93.84% <100.00%> (ø)
src/superqt/fonticon/_animations.py 100.00% <100.00%> (ø)
src/superqt/fonticon/_qfont_icon.py 93.43% <100.00%> (ø)
src/superqt/sliders/_generic_range_slider.py 89.00% <100.00%> (ø)
src/superqt/sliders/_generic_slider.py 89.13% <100.00%> (-0.32%) ⬇️
src/superqt/sliders/_labeled.py 82.47% <100.00%> (ø)
... and 8 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bbd60ee...925667f. Read the comment docs.

@tlambert03
Copy link
Member Author

this still needs spyder-ide/qtpy#276 and spyder-ide/qtpy#271 before we could use qtpy again

@tlambert03 tlambert03 changed the title Back to qtpy Return to using qtpy, drop support for Qt <5.12 Jan 3, 2022
@tlambert03 tlambert03 added the refactor Code reorganization label Jan 3, 2022
@tlambert03 tlambert03 changed the title Return to using qtpy, drop support for Qt <5.12 Use qtpy, deprecate superqt.qtcompat, drop support for Qt <5.12 Jan 3, 2022
@@ -35,6 +35,7 @@ project_urls =
[options]
packages = find:
install_requires =
qtpy
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add minimal version requirement, Without this update of superqt will not force update of qtpy, so compatibility with PySide6/PyQt6 will be missed.

Copy link
Member Author

@tlambert03 tlambert03 Jan 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm, I hesitate to do that in case someone wanted to use an older version of qtpy with qt 5.15?

Its not that superqt required 2.0+, it's that PyQt6 does... So it could make some environment resolutions more difficult if we do that.

Thoughts?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there release from the time of introduction qtcompat? If yes hen someone may have code that uses superqt, and have an older version of qtpy in the environment, then after the update, the code will be broken. But maybe this is enough small that put information in readme will be enough.

@tlambert03 tlambert03 merged commit d25f4c1 into pyapp-kit:main Jan 7, 2022
@tlambert03 tlambert03 deleted the back-to-qtpy branch January 7, 2022 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Code reorganization
Development

Successfully merging this pull request may close these issues.

3 participants