-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Update version of Sphinx in .travis.yml #1478
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
…aracters of the version number.
|
Strangely, I'm seeing the following error on my machine; @mdboom - do you agree with the change in this PR, and do you have any idea what is going on above? |
|
See: for a bug report I filed. @mdboom - what do you think we should do? Should we roll back to not requiring Sphinx 1.2 for the build? |
|
So this is fixed in the latest developer version of Sphinx. Now it looks like it's possible to install the latest dev version of Sphinx in travis using pip, so will try that and if it works we could use it as a temporary measure until the next beta release. @mdboom - what do you think? |
|
Ok, so the tests are passing now with the latest dev version of Sphinx. Not too happy about having to do this, but should be temporary until 1.2b3 or 1.2 are out. @mdboom - ok to merge? |
|
I'm actually going to go ahead and merge this because c58b4d7 is needed to get affiliated package builds to work. Also annoying that all Astropy builds are failing because of 0.2b2 not working. We can update Sphinx back to the non-dev version as soon as there is a release. |
Update version of Sphinx in .travis.yml
|
(I asked this in #936, but it's probably better discussed here as this is more up to date) @astrofrog and @mdboom - is there a reason why we need the minimum version to be 1.2? I'm fine with having travis build from the dev version, but we're not actually using any features from 1.2, and it's rather annoying to not be able to build with 1.1.3 now... (and I don't like the idea of shipping a version that requires a dev build of sphinx to make the docs, although that's debatable, I suppose) |
|
I agree, maybe we should lower the requirement back down to 1.1 in |
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.
I think we should continue to hardcode the version, or it will just break with the next Sphinx update again. I think this should say explicitly 1.2.b2.
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.
Scratch that -- I see further down in the comments why you've done this. Seems fine, given the circumstances.
|
We need 1.2b2 or later specifically, because earlier versions do not work with current versions of graphviz. (They generate .dot files with syntax errors). |
|
I don't think we should downgrade the Sphinx requirement to 1.1. In order to build our docs, we either need a dev version of Sphinx or an old version of graphviz. On most Linux systems, it's far easier to upgrade Sphinx than downgrade graphviz, therefore, I think it's best to leave this as-is, though the minimum version should be 1.2b2, not 1.2, which does not have the graphviz fix. |
|
I guess it comes down to what Also, given where this change occurred, it propagates to affiliated packages. So now people working on affiliated packages that aren't necessarily working much on the core will suddenly be unable to build their affiliated package docs. That suggests a middle way of requiring only 1.1 in |
|
Many of the packaging systems have already upgraded graphviz to the newer (stricter) version, that breaks when used with any Sphinx prior to 1.2.b2. And because Sphinx still has the "beta" label, none of the packagers are including it yet, even though it's "released" on PyPI (and even though PyPI explicitly recommends not posting beta releases). Ugh. Perhaps the best solution here is to detect the version of graphviz |
|
👍 to @mdboom's idea of detecting the If it helps any, the last "known good" graphviz for me (macports and Sphinx 1.1.3) was 2.28.0 |
…tall Update version of Sphinx in .travis.yml
Required, following changes in #936