Takeshi KOMIYA
f98bc4becc
Merge pull request #4175 from stephenfin/the-great-toxification-5
...
The great toxification (part 5)
2017-12-19 15:21:24 +09:00
Stephen Finucane
fd1df0815b
tox: Make further use of factor-conditional deps
...
This is how we reduce boilerplate [1]. Succinctness FTW.
[1] https://tox.readthedocs.io/en/latest/config.html#factors-and-factor-conditional-settings
Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-12-18 20:10:18 +00:00
Stephen Finucane
5d812ccefc
tox: Add 'coverage' target
...
Enabling coverage results in an increase in runtime, and while this may
be an acceptable compromise for some developers, it's not necessarily
something we need to run all the time. Move it to a separate target so
it can be run only by those who wish to use it.
Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-12-18 20:10:18 +00:00
Stephen Finucane
c8d56236c9
tests: Ignore roots using 'collect_ignore'
...
This is slightly cleaner than how we're doing this at the moment.
Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-12-18 20:10:18 +00:00
Stephen Finucane
e243e82723
tests: Ignore tests using 'collect_ignore'
...
Per the pytest docs [1], this is the preferred way to ignore tests. This
necessitates removing the 'test-async' target as it no longer makes any
sense.
[1] https://docs.pytest.org/en/latest/example/pythoncollection.html
Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-12-18 20:10:18 +00:00
Stephen Finucane
41c19ddf91
tests: Skip tests with missing binaries
...
While there are already some skips included here, they clearly aren't
doing their job and the test fail locally. Resolve this.
Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-12-18 20:10:18 +00:00
Stephen Finucane
a102e8e29b
setup.py: Include 'flake8' in 'test' requirements
...
We are using this in our testing and actually need it for the flake8
plugin, so include this in the list of 'test' requirements.
Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-12-18 19:44:05 +00:00
Oliver Jahn
9a39295291
add version
2017-12-18 06:41:50 -05:00
jfbu
72bffcf0f4
Add precision to docs of latex_toplevel_sectioning
2017-12-18 11:20:07 +01:00
jfbu
fcbabcd9b5
Merge branch 'stable'
...
Conflicts:
sphinx/apidoc.py
sphinx/application.py
sphinx/quickstart.py
modified: CHANGES
modified: doc/config.rst
modified: doc/markup/inline.rst
modified: sphinx/application.py
modified: sphinx/builders/__init__.py
modified: sphinx/cmd/quickstart.py
modified: sphinx/ext/apidoc.py
2017-12-18 10:13:49 +01:00
jfbu
245876c6e7
Add test for latex_toplevel_sectioning
2017-12-18 08:27:59 +01:00
jfbu
af46ed16b0
Fixes #4315 : latex_toplevel_sectioning induced \chapter in article class
2017-12-18 08:09:47 +01:00
Oliver Jahn
56d4e0c80d
make math_numfig default to True
2017-12-17 14:02:32 -05:00
Oliver Jahn
27285dfeed
use :rst:role: markup
2017-12-17 13:56:06 -05:00
jfbu
46b1896228
Again rewording docs about numfig_secnum_depth
2017-12-17 17:56:03 +01:00
Takeshi KOMIYA
cb5ceeaf99
Merge branch 'master' into refactor_AutoDirective
2017-12-18 00:59:21 +09:00
Takeshi KOMIYA
109e01d94b
Fix mypy violations
2017-12-18 00:59:00 +09:00
Takeshi KOMIYA
4173a0bfe1
Merge pull request #4312 from tk0miya/deprecate_formatargspec
...
deprecate formatargspec() and format_annotation()
2017-12-18 00:25:20 +09:00
Takeshi KOMIYA
41f9cb200a
Fix doc: now eq role works whole of project
2017-12-17 23:44:28 +09:00
Takeshi KOMIYA
b0178fb5d4
Merge pull request #4222 from vedranmiletic/documentation-fixes
...
Add more EXAMPLES
2017-12-17 21:59:14 +09:00
Takeshi KOMIYA
464f94c238
deprecate formatargspec() and format_annotation()
2017-12-17 15:25:44 +09:00
Vedran Miletić
c6775bce07
Add more EXAMPLES
2017-12-16 18:21:37 +01:00
Takeshi KOMIYA
8bb6a01210
Fix mark up
2017-12-17 02:21:10 +09:00
Takeshi KOMIYA
9b18e83e32
Make AutoDirective as a simple object (not directive)
2017-12-17 02:13:38 +09:00
Takeshi KOMIYA
1ab0d96a5f
Update docstrings
2017-12-17 02:13:36 +09:00
Takeshi KOMIYA
299b11f26f
Replace AutodocReporter by switch_source_input()
2017-12-17 02:13:11 +09:00
Takeshi KOMIYA
cac965cf77
autodoc: refactor option_spec of autodirectives
2017-12-17 02:13:09 +09:00
Takeshi KOMIYA
832914423e
autodoc: refactor AutoDirective
2017-12-17 02:07:34 +09:00
Oliver Jahn
44708b03dc
Merge branch 'master' into math_numfig
2017-12-16 11:15:07 -05:00
Oliver Jahn
53a84de822
make math_numfig work with singlehtml writer
2017-12-16 10:37:02 -05:00
Oliver Jahn
04f2929f59
mention limitation to html-like targets
2017-12-16 10:37:02 -05:00
jfbu
ba1368072f
Typo place holder --> placeholder
2017-12-16 11:51:00 +01:00
jfbu
a9602e4597
Improve numref docs
2017-12-16 11:46:33 +01:00
Takeshi KOMIYA
02d3f071d3
Merge pull request #4282 from mgorny/makedirs-race2
...
Use ensuredir() instead of os.makedirs() to fix race conditions
2017-12-16 19:33:51 +09:00
jfbu
f780f92d1b
Mention `:numbered:
` needed in numfig_secnum_depth docs
2017-12-16 11:32:40 +01:00
jfbu
070fbb97e5
Add markup and clarify numfig_secnum_depth docs
2017-12-16 11:05:33 +01:00
Michał Górny
14af6b429e
Use ensuredir() instead of os.makedirs() to fix race conditions
...
Use the ensuredir() function consistently across Sphinx code to avoid
race conditions e.g. when multiple Sphinx instances attempt to create
the same output directory. The ensuredir() function that was already
present in sphinx.util.osutil correctly catches EEXIST exception that
occurs if the specified directory already exists (i.e. it was created
between the call to os.path.isdir() and os.makedirs() that follows it).
While at it, remove redundant os.path.isdir() calls when they only
guarded the os.makedirs() call, and replace mkdir_p() which had pretty
much the same purpose, except for being prone to race conditions.
I did not modify testing-related code as race conditions mostly affect
real applications and not the test environment.
Fix #4281 : Race conditions when creating output directory
2017-12-16 09:50:09 +01:00
Takeshi KOMIYA
f07b080331
Fix mypy violations
2017-12-16 15:01:23 +09:00
Takeshi KOMIYA
d003707f71
Merge branch 'stable'
2017-12-16 14:54:58 +09:00
Takeshi KOMIYA
7cabd6cbb0
Fix mypy violations
2017-12-16 14:52:20 +09:00
jfbu
b131c33af5
Fix markup in doc/ext/math.rst
2017-12-15 22:54:52 +01:00
Takeshi KOMIYA
f79373d797
Merge pull request #4306 from tk0miya/use_make_mode_default_again
...
quickstart: Fix make_mode should be chosen by default
2017-12-16 02:01:23 +09:00
Takeshi KOMIYA
facce1fb02
quickstart: Fix make_mode should be chosen by default
2017-12-16 01:27:18 +09:00
Takeshi KOMIYA
5bc5b8f013
Merge branch 'stable'
2017-12-16 00:53:55 +09:00
Takeshi KOMIYA
698a0c7741
Merge pull request #4302 from tk0miya/diet_test-root
...
Diet testcases
2017-12-15 22:28:30 +09:00
Takeshi KOMIYA
fe07365a8c
Fix mypy violations
2017-12-15 22:17:03 +09:00
Takeshi KOMIYA
5c1a810fe7
Merge pull request #4304 from tk0miya/fix_ResourceWarning
...
Fix ResourceWarning on pycode
2017-12-15 21:48:35 +09:00
Takeshi KOMIYA
c250c63daa
test: Skip some builders on test_build_all
2017-12-15 21:15:04 +09:00
Takeshi KOMIYA
2a2ed8915a
diet test-root: Move .mo files to new testroot (for test_html_rebuild_mo)
2017-12-15 21:15:02 +09:00
Takeshi KOMIYA
451ba5e76a
Fix ResourceWarning on pycode
2017-12-15 21:11:48 +09:00