Jon Dufresne
f210475489
Python-3-only clean ups discovered by pyupgrade
...
https://github.com/asottile/pyupgrade
> A tool to automatically upgrade syntax for newer versions of the
> language.
- Drop u str prefix
- Drop base object inheritance
- Drop args to super()
- Use set literals
- Use dict comprehension
- Use set comprehension
2019-03-17 12:58:03 -07:00
Takeshi KOMIYA
d9d5594c6f
Ignore filenames without file extension given to `Builder.build_specific()
`
...
So far, ``Builder.build_specific()`` accpets filnames without file
extension. On the other hand, ``sphinx-build`` command does not accept
such files. So the special handling code is only working for 3rd party
applications. The behavior is not consistent. In addition, that is not
helpful for users.
This removes such behavior from builders. This does not change Sphinx
application itself. It only effects to the applications which uses the
API directly.
2019-02-23 21:13:09 +09:00
Takeshi KOMIYA
ac4ec47378
Add testcase for specific build
2019-02-20 12:32:17 +09:00
Takeshi KOMIYA
76e9f57c2e
Merge branch '1.8'
2019-01-02 16:16:25 +09:00
Takeshi KOMIYA
1b1ebd2c75
A happy new year!
2019-01-02 16:00:30 +09:00
Jon Dufresne
bade33c7e4
Remove unnecessary encoding cookie from Python source files
...
In Python 3, the default encoding of source files is utf-8. The encoding
cookie is now unnecessary and redundant so remove it. For more details,
see the docs:
https://docs.python.org/3/howto/unicode.html#the-string-type
> The default encoding for Python source code is UTF-8, so you can
> simply include a Unicode character in a string literal ...
Includes a fix for the flake8 header checks to stop expecting an
encoding cookie.
2018-12-16 12:22:12 -08:00
Takeshi KOMIYA
c6bd84a614
refactor: Remove u-prefix from strings
2018-12-16 21:28:51 +09:00
Takeshi KOMIYA
4761e70c37
Merge branch '1.8'
2018-11-22 22:14:32 +09:00
Takeshi KOMIYA
0ccc64d9ea
test: Filter warnings on testing
2018-11-12 00:37:51 +09:00
Takeshi KOMIYA
ca8bc8ca49
refactor: Deprecate app._setting_up_extension
2018-10-17 11:56:11 +09:00
Takeshi KOMIYA
f969edfaa8
Fix flake8 violations on tests
2018-07-28 20:19:30 +09:00
Takeshi KOMIYA
47918f365e
Merge branch 'master' into refactor_config
2018-04-02 10:47:47 +09:00
Takeshi KOMIYA
3d8cb12497
Raise ExtensionError from Config class instead application class
2018-03-24 00:27:03 +09:00
Takeshi KOMIYA
1a43d47c33
Add a new keyword argument `override
` to Application APIs
2018-03-21 00:23:44 +09:00
Takeshi KOMIYA
5789b25847
Change interface of add_source_parser() and add add_source_suffix()
2018-02-21 10:54:49 +09:00
Takeshi KOMIYA
938ba386ed
Merge branch '1.7'
2018-02-20 00:02:57 +09:00
Takeshi KOMIYA
f7027049b1
Fix flake8 violations
2018-02-19 23:20:56 +09:00
Takeshi KOMIYA
e84ba569a2
Merge branch '1.7-release'
2018-02-10 15:46:48 +09:00
cocoatomo
8969ae40de
Make the log message more translation-friendly
2018-02-07 01:52:22 +09:00
Takeshi KOMIYA
0cdd9ee72a
Integrate source_suffix and source_parsers (refs: #4474 )
2018-01-25 02:03:56 +09:00
Takeshi KOMIYA
f1f6ca8cc9
Merge branch 'happy_new_year' into master
2018-01-01 01:09:17 +09:00
Takeshi KOMIYA
2426cedb8b
A happy new year!
2018-01-01 01:06:58 +09:00
Takeshi KOMIYA
1d3362425b
Add app.is_parallel_allowed()
2017-12-30 00:54:55 +09:00
Takeshi KOMIYA
69cf328b8b
Add Sphinx own parser (refs: #3816 )
2017-05-28 22:34:53 +09:00
shimizukawa
d497d74370
refs #3458 : add sphinx.testing that are moved from /tests directory.
2017-05-14 20:47:15 +09:00
Takeshi KOMIYA
56d3458584
Fix flake8 violations
2017-05-09 21:57:36 +09:00
Takeshi KOMIYA
72f267c6ae
Rename SphinxFactory class to SphinxComponentRegistry
2017-04-23 16:29:38 +09:00
Takeshi KOMIYA
f346e7dc1d
Move source_parsers manager to SphinxFactory
2017-04-22 20:04:45 +09:00
Takeshi KOMIYA
8f9dd64992
Merge branch 'stable'
2017-03-26 11:52:15 +09:00
Takeshi KOMIYA
c57e47e042
Year++
2017-03-26 11:49:34 +09:00
shimizukawa
4c22cd10ca
Merge branch 'stable'
2017-01-07 02:14:29 +09:00
shimizukawa
baaef9146d
pytest: remove deprecated with_app decorator functions
2017-01-06 01:14:47 +09:00
shimizukawa
b3c207dd49
fix
2017-01-06 00:50:02 +09:00
shimizukawa
f962ad67d2
pytest: remove deprecated raises and raises_msg assert functions
2017-01-06 00:46:42 +09:00
Takeshi KOMIYA
e755a8c004
Use loggers
2017-01-02 12:59:51 +09:00
Takeshi KOMIYA
aa65a19466
Add sphinx.util.logging.SafeEncodingWriter
2017-01-02 12:59:50 +09:00
shimizukawa
9fb398e475
Merge branch 'stable' into 1.5-release
2016-12-04 21:44:16 +09:00
shimizukawa
6ae67f9f38
Fix #3024 , refs #3037 : In Python3, application.Sphinx._log crushed when the log message cannot be encoded into console encoding.
2016-12-04 13:54:11 +09:00
Takeshi KOMIYA
51937f8089
#2597 : Show warning messages as darkred
2016-06-24 14:23:19 +09:00
Yoshiki Shibukawa
88bf4373c7
add extension blacklist to avoid error when loading deprecated extensions
2016-06-02 19:19:46 +09:00
Takeshi KOMIYA
738bb589d9
Merge pull request #2209 from tk0miya/2162_add_source_parser_API
...
Fix #2162 : Add Sphinx.add_source_parser() to add source_suffix and source_parsers from extension
2016-01-17 19:07:18 +09:00
Georg Brandl
46d7e8558e
Obligatory copyright update.
2016-01-14 22:54:04 +01:00
Takeshi KOMIYA
f81ab1e8b9
Fix #2162 : Add Sphinx.add_source_parser() to add source_suffix and source_parsers from extension
2016-01-04 10:23:17 +09:00
Georg Brandl
a23903d8d5
Merge branch 'stable'
2015-01-03 21:41:14 +01:00
Georg Brandl
567d52f199
all: update copyright
2015-01-03 21:36:32 +01:00
Georg Brandl
d47a7587f9
Complete test suite overhaul.
...
* rename a few test modules to make the names more consistent
* do not copy/use Sphinx from build/ (unnecessary without 2to3)
* use a temporary dir for *all* test projects, the source tree
will stay pristine that way (default is tests/build)
* speed up tests by ~3x by splitting up test projects and avoiding
rebuilds
2014-09-21 17:17:02 +02:00
Takayuki Shimizukawa
1e58062692
remove 'six' name except importing line.
2014-04-30 21:30:46 +09:00
Takayuki Shimizukawa
68290a266c
introduce the six module and reduce sphinx.util.pycompat implementation. refs #1350 .
2014-04-29 11:46:47 +09:00
Georg Brandl
e030031321
Update copyright year.
2014-03-01 08:18:16 +01:00
Takayuki Shimizukawa
be65b99879
grammar fix: 'multibyte filename' is ambiguous. They are replaced with 'non-ASCII filename'. refs #703
2013-10-03 06:43:22 +00:00