- update to 0.17.1:
* Fix bug #406 (MathML translation of ``\mathbf``). * Open "docutils.sty" with encoding set to "utf8". * Provide fallbacks for parser config settings to facilitate programmatic use. * Installing with ``setup.py`` now requires ``setuptools``. Alternatively, install with `pip`_ (or "manually"). * Use importlib.import_module() to programmatically import modules. * Fix bug #385: Import of language modules. * Arabic mappings by Shahin. * Fixes in Korean translation by Shinjo Park. * Fix error when copying `system_message` node * Make the sidebar's "title" argument optional * Make "meta" elements available for "latex" and "odt". * Prevent infinite inclusion loops. * Move non-essential styling to ``plain.css``. * Support "captionbelow" class value for tables. * Display code line numbers as pseudo-elements which are skipped when copying text from code blocks. Solves feature request #32. * Support numbered figures. * New optional style that adapts to different screen sizes. * Fix #394 fix missing new line after rubric. * Patch #168 fix crashing on empty citation (by Takeshi KOMIYA). * Fix #126 manpage title with spaces. * Fix #380 commandline option problem in sphinx. * Fix/improve metadata handling: fix "keyword" splitting, allow generic fields (stored as "Custom Properties"). __ docs/user/config.html#detailled * Run python3 test like python2 against source not the build/-directory OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docutils?expand=0&rev=69
This commit is contained in:
parent
6241376b1b
commit
da7e54b9e1
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c2de3a60e9e7d07be26b7f2b00ca0309c207e06c100f9cc2a94931fc75a478fc
|
||||
size 1962041
|
3
docutils-0.17.1.tar.gz
Normal file
3
docutils-0.17.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:686577d2e4c32380bb50cbb22f575ed742d58168cee37e99117a854bcd88f125
|
||||
size 2016138
|
107
pygments25.patch
107
pygments25.patch
@ -1,107 +0,0 @@
|
||||
Index: docutils/test/test_parsers/test_rst/test_directives/test_code.py
|
||||
===================================================================
|
||||
--- docutils/test/test_parsers/test_rst/test_directives/test_code.py (revision 8494)
|
||||
+++ docutils/test/test_parsers/test_rst/test_directives/test_code.py (revision 8495)
|
||||
@@ -98,7 +98,7 @@
|
||||
|
||||
totest['code-parsing'] = [
|
||||
["""\
|
||||
-.. code:: python
|
||||
+.. code:: python3
|
||||
:class: testclass
|
||||
|
||||
print('hello world') # to stdout
|
||||
@@ -105,9 +105,9 @@
|
||||
""",
|
||||
"""\
|
||||
<document source="test data">
|
||||
- <literal_block classes="code python testclass" xml:space="preserve">
|
||||
+ <literal_block classes="code python3 testclass" xml:space="preserve">
|
||||
\n\
|
||||
- <inline classes="keyword">
|
||||
+ <inline classes="name builtin">
|
||||
print
|
||||
<inline classes="punctuation">
|
||||
(
|
||||
@@ -120,7 +120,7 @@
|
||||
# to stdout
|
||||
"""],
|
||||
["""\
|
||||
-.. code:: python
|
||||
+.. code:: python3
|
||||
:class: testclass
|
||||
:name: my_function
|
||||
:number-lines: 7
|
||||
@@ -134,7 +134,7 @@
|
||||
""",
|
||||
"""\
|
||||
<document source="test data">
|
||||
- <literal_block classes="code python testclass" ids="my-function" names="my_function" xml:space="preserve">
|
||||
+ <literal_block classes="code python3 testclass" ids="my-function" names="my_function" xml:space="preserve">
|
||||
<inline classes="ln">
|
||||
7 \n\
|
||||
<inline classes="keyword">
|
||||
@@ -167,7 +167,7 @@
|
||||
<inline classes="ln">
|
||||
12 \n\
|
||||
\n\
|
||||
- <inline classes="keyword">
|
||||
+ <inline classes="name builtin">
|
||||
print
|
||||
<inline classes="punctuation">
|
||||
(
|
||||
Index: docutils/test/test_parsers/test_rst/test_directives/test_code_long.py
|
||||
===================================================================
|
||||
--- docutils/test/test_parsers/test_rst/test_directives/test_code_long.py (revision 8494)
|
||||
+++ docutils/test/test_parsers/test_rst/test_directives/test_code_long.py (revision 8495)
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
totest['code-parsing-long'] = [
|
||||
["""\
|
||||
-.. code:: python
|
||||
+.. code:: python3
|
||||
:number-lines: 7
|
||||
|
||||
def my_function():
|
||||
@@ -36,7 +36,7 @@
|
||||
""",
|
||||
"""\
|
||||
<document source="test data">
|
||||
- <literal_block classes="code python" xml:space="preserve">
|
||||
+ <literal_block classes="code python3" xml:space="preserve">
|
||||
<inline classes="ln">
|
||||
7 \n\
|
||||
<inline classes="keyword">
|
||||
@@ -69,7 +69,7 @@
|
||||
<inline classes="ln">
|
||||
12 \n\
|
||||
\n\
|
||||
- <inline classes="keyword">
|
||||
+ <inline classes="name builtin">
|
||||
print
|
||||
<inline classes="punctuation">
|
||||
(
|
||||
Index: docutils/test/test_parsers/test_rst/test_interpreted.py
|
||||
===================================================================
|
||||
--- docutils/test/test_parsers/test_rst/test_interpreted.py (revision 8494)
|
||||
+++ docutils/test/test_parsers/test_rst/test_interpreted.py (revision 8495)
|
||||
@@ -271,7 +271,7 @@
|
||||
Custom role based on code role:
|
||||
|
||||
.. role:: python(code)
|
||||
- :language: python
|
||||
+ :language: python3
|
||||
:class: testclass
|
||||
|
||||
Python code :python:`print("The end")`.
|
||||
@@ -282,8 +282,8 @@
|
||||
Custom role based on code role:
|
||||
<paragraph>
|
||||
Python code \n\
|
||||
- <literal classes="code testclass python">
|
||||
- <inline classes="keyword">
|
||||
+ <literal classes="code testclass python3">
|
||||
+ <inline classes="name builtin">
|
||||
print
|
||||
<inline classes="punctuation">
|
||||
(
|
@ -1,3 +1,40 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 16 21:09:06 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 0.17.1:
|
||||
* Fix bug #406 (MathML translation of ``\mathbf``).
|
||||
* Open "docutils.sty" with encoding set to "utf8".
|
||||
* Provide fallbacks for parser config settings
|
||||
to facilitate programmatic use.
|
||||
* Installing with ``setup.py`` now requires ``setuptools``.
|
||||
Alternatively, install with `pip`_ (or "manually").
|
||||
* Use importlib.import_module() to programmatically import modules.
|
||||
* Fix bug #385: Import of language modules.
|
||||
* Arabic mappings by Shahin.
|
||||
* Fixes in Korean translation by Shinjo Park.
|
||||
* Fix error when copying `system_message` node
|
||||
* Make the sidebar's "title" argument optional
|
||||
* Make "meta" elements available for "latex" and "odt".
|
||||
* Prevent infinite inclusion loops.
|
||||
* Move non-essential styling to ``plain.css``.
|
||||
* Support "captionbelow" class value for tables.
|
||||
* Display code line numbers as pseudo-elements which are skipped
|
||||
when copying text from code blocks. Solves feature request #32.
|
||||
* Support numbered figures.
|
||||
* New optional style that adapts to different screen sizes.
|
||||
* Fix #394 fix missing new line after rubric.
|
||||
* Patch #168 fix crashing on empty citation (by Takeshi KOMIYA).
|
||||
* Fix #126 manpage title with spaces.
|
||||
* Fix #380 commandline option problem in sphinx.
|
||||
* Fix/improve metadata handling:
|
||||
fix "keyword" splitting,
|
||||
allow generic fields (stored as "Custom Properties").
|
||||
__ docs/user/config.html#detailled
|
||||
* Run python3 test like python2 against source not the build/-directory
|
||||
* New generic command line front end that allows the free selection of
|
||||
reader, parser, and writer components.
|
||||
- remove pygments25.patch (upstream)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Dec 12 00:33:13 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-docutils
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -26,21 +26,20 @@
|
||||
%endif
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-docutils%{psuffix}
|
||||
Version: 0.16
|
||||
Version: 0.17.1
|
||||
Release: 0
|
||||
Summary: Python Documentation Utilities
|
||||
License: Python-2.0 AND BSD-2-Clause AND GPL-2.0-or-later AND GPL-3.0-or-later AND SUSE-Public-Domain
|
||||
License: BSD-2-Clause AND Python-2.0 AND GPL-2.0-or-later AND GPL-3.0-or-later AND SUSE-Public-Domain
|
||||
URL: https://pypi.python.org/pypi/docutils/
|
||||
Source: https://files.pythonhosted.org/packages/source/d/docutils/docutils-%{version}.tar.gz
|
||||
Source99: python-docutils-rpmlintrc
|
||||
Patch0: pygments25.patch
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module xml}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-xml
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
Recommends: python-Pillow
|
||||
Recommends: python-Pygments
|
||||
Recommends: python-roman
|
||||
@ -63,7 +62,6 @@ easy-to-read, what-you-see-is-what-you-get plaintext markup syntax.
|
||||
|
||||
%prep
|
||||
%setup -q -n docutils-%{version}
|
||||
%patch0 -p1
|
||||
# Remove useless ".py" ending from executables:
|
||||
for i in tools/rst*; do mv "$i" "${i/.py}"; done
|
||||
sed -i "s|'tools/\(rst.*\)\.py'|'tools/\1'|" setup.py
|
||||
@ -72,6 +70,7 @@ for i in {'code_analyzer','error_reporting','punctuation_chars','smartquotes','m
|
||||
sed -i -e "1d" "docutils/utils/$i.py"
|
||||
done
|
||||
sed -i -e "1d" "docutils/writers/xetex/__init__.py" "docutils/writers/_html_base.py"
|
||||
rm ./docs/dev/.release.txt.swp
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
Loading…
Reference in New Issue
Block a user