14
0

- Add fix_tests_38.patch to overcome failing tests with Python

3.8.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docutils?expand=0&rev=58
This commit is contained in:
2019-10-11 12:12:22 +00:00
committed by Git OBS Bridge
parent 19c8e6ac64
commit 076ec723b0
3 changed files with 20 additions and 0 deletions

View File

@@ -34,6 +34,7 @@ Group: Development/Languages/Python
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: fix_tests_38.patch
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module xml}
BuildRequires: fdupes
@@ -63,6 +64,7 @@ easy-to-read, what-you-see-is-what-you-get plaintext markup syntax.
%prep
%setup -q -n docutils-%{version}
%autopatch -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