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 PyQt5 as default API #2879

Merged
merged 2 commits into from
Dec 28, 2015
Merged

Use PyQt5 as default API #2879

merged 2 commits into from
Dec 28, 2015

Conversation

flying-sheep
Copy link
Contributor

i think i did this once.

you stated then that it wasn’t ready, but that’s been some time ago and there are now PyQt5 travis tests.

also 3.0 should really ship like that.

@goanpeca
Copy link
Member

@flying-sheep, until there is an official qt5 package in anaconda, I do not think we are doing this.

@flying-sheep
Copy link
Contributor Author

if the API can’t be found, it will fall back to PyQt4, so this change does nothing for people without PyQt5.

the only thing it does is preferring to use PyQt5 if available, which is something that all Qt software should do now.

@flying-sheep
Copy link
Contributor Author

oh it actually doesn’t, i’ll have to reorder things!

@ccordoba12 ccordoba12 added this to the V3.0beta3 milestone Dec 24, 2015
@ccordoba12
Copy link
Member

@goanpeca, I think beta3 is a good point to move to PyQt5 :-)

@flying-sheep, tests for Qt5 are failing in Travis. Please solve the failure.

@ccordoba12
Copy link
Member

@flying-sheep, I think I fixed the Travis error in master, so please rebase or merge with master to trigger a new build.

However, I think your change breaks Spyder when both PyQt4 and PyQt5 are installed. Please check that in your side.

@flying-sheep
Copy link
Contributor Author

ok, will do

@ccordoba12
Copy link
Member

Now this breaks all our tests in Travis. I really don't know what happens...

@flying-sheep
Copy link
Contributor Author

ok, i rebased onto master. everything works now for whatever reason.

/edit: with and without pyqt4 installed

except ImportError:
API = os.environ['QT_API'] = 'pyqt'
API_NAME = 'PyQt4'

Copy link
Member

Choose a reason for hiding this comment

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

I think we should set PYQT5 = False here.

Copy link
Member

Choose a reason for hiding this comment

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

IMHO, it's easier to read and understand.

@ccordoba12
Copy link
Member

Except for the comment I've just made, I think this ready.

@flying-sheep
Copy link
Contributor Author

fixed

@ccordoba12
Copy link
Member

Ok, I think this is ready! Merging :-)

ccordoba12 added a commit that referenced this pull request Dec 28, 2015
@ccordoba12 ccordoba12 merged commit ebc5c04 into spyder-ide:master Dec 28, 2015
@flying-sheep flying-sheep deleted the patch-1 branch December 28, 2015 21:19
@flying-sheep
Copy link
Contributor Author

great 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants