Compare commits

..

No commits in common. "63aaed8b2adee75f8a2d0e0c219ef64486ddba21" and "2569a582065f36eefa19e3e952bb090486d71005" have entirely different histories.

4 changed files with 110 additions and 18 deletions

BIN
docutils-0.16.tar.gz Normal file

Binary file not shown.

Binary file not shown.

106
fix-test-error.patch Normal file
View File

@ -0,0 +1,106 @@
diff --git a/test/test_parsers/test_rst/test_directives/test_code.py b/test-edit/test_parsers/test_rst/test_directives/test_code.py
index 8e694c5..1139620 100644
--- a/test/test_parsers/test_rst/test_directives/test_code.py
+++ b/test-edit/test_parsers/test_rst/test_directives/test_code.py
@@ -96,16 +96,16 @@ totest['code'] = [
totest['code-parsing'] = [
["""\
-.. code:: python
+.. code:: python3
:class: testclass
print('hello world') # to stdout
""",
"""\
<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">
(
@@ -118,7 +118,7 @@ totest['code-parsing'] = [
# to stdout
"""],
["""\
-.. code:: python
+.. code:: python3
:class: testclass
:name: my_function
:number-lines: 7
@@ -132,7 +132,7 @@ totest['code-parsing'] = [
""",
"""\
<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">
@@ -165,7 +165,7 @@ totest['code-parsing'] = [
<inline classes="ln">
12 \n\
\n\
- <inline classes="keyword">
+ <inline classes="name builtin">
print
<inline classes="punctuation">
(
diff --git a/test/test_parsers/test_rst/test_directives/test_code_long.py b/test-edit/test_parsers/test_rst/test_directives/test_code_long.py
index aea0013..ccedd78 100644
--- a/test/test_parsers/test_rst/test_directives/test_code_long.py
+++ b/test-edit/test_parsers/test_rst/test_directives/test_code_long.py
@@ -22,7 +22,7 @@ totest = {}
totest['code-parsing-long'] = [
["""\
-.. code:: python
+.. code:: python3
:number-lines: 7
def my_function():
@@ -34,7 +34,7 @@ totest['code-parsing-long'] = [
""",
"""\
<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">
@@ -67,7 +67,7 @@ totest['code-parsing-long'] = [
<inline classes="ln">
12 \n\
\n\
- <inline classes="keyword">
+ <inline classes="name builtin">
print
<inline classes="punctuation">
(
diff --git a/test/test_parsers/test_rst/test_interpreted.py b/test-edit/test_parsers/test_rst/test_interpreted.py
index 6380b48..e7be2eb 100755
--- a/test/test_parsers/test_rst/test_interpreted.py
+++ b/test-edit/test_parsers/test_rst/test_interpreted.py
@@ -269,7 +269,7 @@ Custom role based on code role:
Custom role based on code role:
.. role:: python(code)
- :language: python
+ :language: python3
:class: testclass
Python code :python:`print("The end")`.
@@ -280,8 +280,8 @@ Python code :python:`print("The end")`.
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">
(

View File

@ -3,15 +3,16 @@
%global flashfilepath docs/user/rst/images/
Name: python-%{modname}
Version: 0.17.1
Release: 2
Version: 0.16
Release: 6
Summary: Documentation Utilities Written in Python, for General- and Special-Purpose Use
License: Public Domain and BSD and Python and GPLv3+
URL: http://docutils.sourceforge.net
Source0: http://downloads.sourceforge.net/docutils/docutils-0.17.1.tar.gz
Source0: http://downloads.sourceforge.net/docutils/docutils-0.16.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
Patch0000: fix-test-error.patch
%global _description \
Docutils is an open-source text processing system for processing plaintext\
@ -95,21 +96,6 @@ popd
%doc THANKS.txt docs tools/editors
%changelog
* Tue Oct 31 2023 renhongxun <renhongxun@h-partners.com> - 0.17.1-2
- revert version to 0.17.1-2
* Wed Oct 25 2023 wangjiang <wangjiang37@h-partners.com> - 0.20.1-1
- upgrade version to 0.20.1
* Tue Oct 25 2022 zhangruifang <zhangruifang1@h-partners.com> - 0.17.1-2
- Rebuild for next release
* Wed Jan 12 2022 tianwei <tianwei12@huawei.com> - 0.17.1-1
- downgrade version to 0.17.1
* Thu Dec 30 2021 tianwei <tianwei12@huawei.com> - 0.18-1
- upgrade version to 0.18
* Wed Dec 29 2021 shixuantong <shixuantong@huawei.com> - 0.16-6
- Type:bugfix
- ID:NA