-
-
Notifications
You must be signed in to change notification settings - Fork 49
Update sphinx req to 1.7 and add version "policy" #88
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
Changes from all commits
5ac13cd
2bc87bb
d247eba
412a801
957e41c
aff17b5
961fa48
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,15 +5,12 @@ | |
| import sys | ||
| from copy import deepcopy | ||
|
|
||
| from ..utils import SPHINX_LT_17 | ||
| from sphinx.cmd.build import build_main | ||
|
|
||
| from . import cython_testpackage # noqa | ||
|
|
||
| __all__ = ['build_main', 'write_conf', 'run_sphinx_in_tmpdir'] | ||
| __all__ = ['write_conf', 'run_sphinx_in_tmpdir'] | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is that OK to remove this from the namespace without a warning? I suppose yes as explicit imports still work.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I only added this in that namespace in my last PR |
||
|
|
||
| if SPHINX_LT_17: | ||
| from sphinx import build_main | ||
| else: | ||
| from sphinx.cmd.build import build_main | ||
|
|
||
| intersphinx_mapping = { | ||
| 'python': ('https://docs.python.org/{0}/'.format(sys.version_info[0]), None) | ||
|
|
@@ -47,9 +44,6 @@ def run_sphinx_in_tmpdir(tmpdir, additional_conf={}, expect_error=False): | |
| write_conf(tmpdir.join('conf.py').strpath, conf) | ||
|
|
||
| argv = ['-W', '-b', 'html', '.', '_build/html'] | ||
| if SPHINX_LT_17: | ||
| # As of Sphinx 1.7, the first argument is now no longer ignored | ||
| argv.insert(0, 'sphinx-build') | ||
|
|
||
| try: | ||
| os.chdir(tmpdir.strpath) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,10 +4,7 @@ envlist = | |
| py37-test | ||
| py27-test-clocale | ||
| py37-test-clocale | ||
| py27-test-sphinx13 | ||
| py35-test-sphinx14 | ||
| py35-test-sphinx15 | ||
| py36-test-sphinx16 | ||
| py27-test-sphinx17 | ||
| py36-test-sphinx17 | ||
| py37-test-sphinx18 | ||
| py37-test-sphinx20 | ||
|
|
@@ -18,10 +15,6 @@ requires = pip >= 18.0 | |
| [testenv] | ||
| changedir = .tmp/{envname} | ||
| deps = | ||
| sphinx13: sphinx==1.3.6 | ||
| sphinx14: sphinx==1.4.9 | ||
| sphinx15: sphinx==1.5.6 | ||
| sphinx16: sphinx==1.6.7 | ||
| sphinx17: sphinx==1.7.9 | ||
| sphinx18: sphinx==1.8.5 | ||
| sphinx20: sphinx==2.0.1 | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @astrofrog - unrelated to this PR, but why do we pin the version so precisely? This case no newer bugfix releases get tested (surely, it's only relevant for the latest release). What about setting
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, does * work for pip?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, it does, we do that in
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I didn't want to do this in the commits I just pushed up since I'm not sure I fully understand the syntax here. So I'd say this could be a follow-on separate PR? |
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.