Skip to content

Commit

Permalink
Merge pull request #591 from astrofrog/fix-sphinx-warning
Browse files Browse the repository at this point in the history
Workaround for astropy-helpers emitting a matplotlib warning when imported
  • Loading branch information
astrofrog committed Mar 18, 2015
2 parents 34d044b + 5937827 commit c10e481
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,15 @@
]


# Currently, astropy-helpers sets the Matplotlib backend explicitly. However,
# since matplotlib is imported during the glue import below, the
# astropy-helpers call to matplotlib.use emits a warning which causes the
# Sphinx Travis build to fail. Therefore, we pre-emptively impor
# astropy-helpers here. This can be removed in future once astropy-helpers no
# longer sets the backend explicitly (this is a workaround itself for a
# matplotlib issue).
import astropy_helpers

# coax Sphinx into treating descriptors as attributes
# see https://bitbucket.org/birkenfeld/sphinx/issue/1254/#comment-7587063
from glue.qt.widget_properties import WidgetProperty
Expand Down

0 comments on commit c10e481

Please sign in to comment.