-
-
Notifications
You must be signed in to change notification settings - Fork 70
Adding support for PySide2 in pytest-qt. #161
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
Conversation
2 similar comments
|
Oh, nice! Is there a good way to test this on AppVeyor/Travis? Also, can you please take a look at the failing PySide tests? |
| to fix the situation. | ||
| """ | ||
| if qt_api.pytest_qt_api != 'pyside': | ||
| if qt_api.pytest_qt_api not in ('pyside', 'pyside2'): |
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.
you could just do .startswith('pyqt') instead I guess?
|
|
||
|
|
||
| fails_on_pyqt = pytest.mark.xfail('qt_api.pytest_qt_api != "pyside"') | ||
| fails_on_pyqt = pytest.mark.xfail('qt_api.pytest_qt_api not in ("pyside", "pyside2")') |
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.
you could just do .startswith('pyqt') instead I guess?
| if self.pytest_qt_api == 'pyside': | ||
| import PySide | ||
| return VersionTuple('PySide', PySide.__version__, self.QtCore.qVersion(), | ||
| if self.pytest_qt_api in ('pyside', 'pyside2'): |
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.
.startswith('pyside') like you do elsewhere?
|
Thanks for the preliminary work @fabioz! If the wheels from fredrikaverpil/pyside2-wheels can be accessed using |
|
@fabioz Thanks for your work on this PR! Are you (or someone else) planning to finish this PR in the near future? so that CI tests pass. If not I could help with that... |
|
@rth I don't really have the time to do it (and I'm currently not really on PySide2 -- it was mostly an experiment for me and I'm pretty sure I won't be able to get back to it soon, so, feel free to improve on it). |
|
@rth thanks for the offer, definitely this would be a nice addition to pytest-qt! |
Adding preliminary support for PySide2 in pytest-qt.
Note that there's still no official binary for it, so, it wasn't added to appveyor. Unofficial binaries may be gotten from bintray.com/fredrikaverpil/pyside2-wheels/pyside2, built based on https://github.com/fredrikaverpil/pyside2-wheels.