Drop conditional import of figureoptions. #6599

Merged
merged 2 commits into from Jun 18, 2016

Conversation

Projects
None yet
5 participants
Contributor

anntzer commented Jun 17, 2016

As far as I can tell, the only way the import of figureoptions could
fail is under PyQt 4.3 or earlier (QFormLayout was introduced in Qt
4.4). PyQt 4.4 was released in 2008 and the oldest version still
downloadable on SourceForge seems to be 4.9, so that seems safe...

Also up the version requirement on PyQt.

mdboom added the needs_review label Jun 17, 2016

tacaswell added this to the 2.1 (next point release) milestone Jun 17, 2016

Owner

tacaswell commented Jun 17, 2016

👍 , but it looks like the doc failure is real and caused by this change.

Contributor

anntzer commented Jun 17, 2016

Do you know what's the version of Qt used on Travis? I couldn't find a reference to it.

Owner

jenshnielsen commented Jun 17, 2016

As far as I remember travis mocks out qt when building the docs

Contributor

anntzer commented Jun 17, 2016

This may explain why QtGui appears as a "type object" rather than a module in the traceback.
Do you have a pointer as to how the mocking is done?

anntzer added some commits Jun 17, 2016

@anntzer anntzer Drop conditional import of figureoptions.
As far as I can tell, the only way the import of figureoptions could
fail is under PyQt 4.3 or earlier (QFormLayout was introduced in Qt
4.4).  PyQt 4.4 was released in 2008 and the oldest version still
downloadable on SourceForge seems to be 4.9, so that seems safe...

Also up the version requirement on PyQt.
4c60022
@anntzer anntzer Mock the entire PyQt4.QtGui classes API.
a44839c

@tacaswell tacaswell merged commit 6b1adfd into matplotlib:master Jun 18, 2016

3 checks passed

continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
coverage/coveralls Coverage increased (+0.0005%) to 70.265%
Details

tacaswell removed the needs_review label Jun 18, 2016

anntzer deleted the anntzer:always-figureoptions branch Jun 18, 2016

anntzer added the GUI/Qt label Jul 10, 2016

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