-
Notifications
You must be signed in to change notification settings - Fork 20
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
Sphinx 1.7 breaks travis-sphinx #34
Comments
Function |
Seems easy enough.
Huh? What makes you think it isn't? |
As mentioned in @kohr-h's PR, i'd like to find a way to support > 1.7 without breaking pre 1.7, even if it may create difficulties. There are a number of existing repos likely using pre 1.7 sphinx and counting on travis sphinx to not suddenly break. |
" |
This is due to the issue in Syntaf/travis-sphinx#34 Error message is: AttributeError: 'module' object has no attribute 'build_main'
@kohr-h Since that only concerns the new |
It's fine for now, yes, but my question was more as to whether or not you consider it problematic that |
Ah I see now, I thought that comment was only saying the previous |
New version released today with the fixes made by @kohr-h , thanks for your help! I'll be closing this ticket as I believe the problem has now been fixed. |
Cool! |
thanks! |
I was able to use travis sphinx and now I get again some error:
|
Looks like we need to add a bit more robust error checking, and defer to the older version upon catching anything. Thanks for report. Edit: do you know what sphinx version the build is using? |
|
See PR, Sphinx changed their subpackages to be lazily loaded. I wonder how many packages they break by that... |
Has this commit been pushed via pip? I'm still having the same isuees : https://travis-ci.org/SmileiPIC/Smilei/jobs/349720388#L625
|
Because users use multiple versions of sphinx. What if some other package in a user's environment needs
It's not a hack, it's just adaption to a shifting target that |
I don't think there's a pip package yet that has the fix. In the meanwhile you can enforce |
IMO the proper way to fix this problem without hacking the code is to create 2 new releases. |
Maybe, in some sense of "proper", this would be the way of doing it. The result will be two release lines that differ in roughly 4 lines of code, but require double the work in the release process. Then the next Sphinx API change (or of any other dependency, for that matter) comes about, and the same thing has to be done again. It's cleaner, yes, but at what price? |
…troduced in version 1.7.1. See Syntaf/travis-sphinx#34 for details.
Sphinx 1.7 removes the
build_main
function:This is with the newest version of
travis-sphinx
but I suspect earlier ones are also affected. I'm not sure how to solve it, but a quick fix would be a dependencysphinx<1.7
in thesetup.py
.The text was updated successfully, but these errors were encountered: