Skip to content

Conversation

@fabioz
Copy link
Contributor

@fabioz fabioz commented Oct 25, 2016

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.

@coveralls
Copy link

coveralls commented Oct 25, 2016

Coverage Status

Coverage decreased (-2.9%) to 97.056% when pulling 32f02ad on fabioz:master into 894a827 on pytest-dev:master.

2 similar comments
@coveralls
Copy link

Coverage Status

Coverage decreased (-2.9%) to 97.056% when pulling 32f02ad on fabioz:master into 894a827 on pytest-dev:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-2.9%) to 97.056% when pulling 32f02ad on fabioz:master into 894a827 on pytest-dev:master.

@The-Compiler
Copy link
Member

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'):
Copy link
Member

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")')
Copy link
Member

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'):
Copy link
Member

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?

@nicoddemus
Copy link
Member

Thanks for the preliminary work @fabioz!

If the wheels from fredrikaverpil/pyside2-wheels can be accessed using https, they can easily be installed using pip both on Travis and AppVeyor.

@rth
Copy link
Contributor

rth commented Sep 13, 2017

@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...

@fabioz
Copy link
Contributor Author

fabioz commented Sep 13, 2017

@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).

@nicoddemus
Copy link
Member

nicoddemus commented Sep 13, 2017

@rth thanks for the offer, definitely this would be a nice addition to pytest-qt!

@nicoddemus
Copy link
Member

Superseded by #182. Thanks for getting the ball rolling @fabioz!

@nicoddemus nicoddemus closed this Sep 15, 2017
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.

5 participants