From 7442f2c4c7b4607d636deb953a1d242d5fb1ee57 Mon Sep 17 00:00:00 2001 From: zhuofeng Date: Thu, 22 Dec 2022 02:57:18 +0000 Subject: [PATCH] make the test check Signed-off-by: zhuofeng --- python-sphinx.spec | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/python-sphinx.spec b/python-sphinx.spec index abcd835..3250707 100644 --- a/python-sphinx.spec +++ b/python-sphinx.spec @@ -1,6 +1,8 @@ +%bcond_without check + Name: python-sphinx Version: 4.3.1 -Release: 3 +Release: 4 Epoch: 1 Summary: Python documentation generator License: BSD and MIT @@ -199,10 +201,17 @@ mkdir %{buildroot}%{python3_sitelib}/sphinxcontrib >> sphinx.lang -%if %{with tests} +%if %{with check} %check -export PYTHONPATH=%{buildroot}%{python3_sitelib} -export PATH=%{buildroot}%{_bindir}:$PATH +test_deselected="not test_pickle_set_translator_for_pickle and "\ +"not test_json_set_translator_for_json and "\ +"not test_latex_images and "\ +"not test_ext_imgconverter" +export PYTHONPATH=$PWD +rm tests/test_build_linkcheck.py +LANG=en_US.UTF-8 +PYTHON=python3 +%{__python3} -m pytest -k "${test_deselected}" %endif %files locale -f sphinx.lang @@ -225,6 +234,12 @@ export PATH=%{buildroot}%{_bindir}:$PATH %{_mandir}/man1/* %changelog +* Thu Dec 22 2022 zhuofeng - 1:4.3.1-4 +- Type:bugfix +- CVE:NA +- SUG:NA +- DESC:make the test check + * Wed Jan 12 2022 shixuantong - 4.3.1-3 - revert openEuler-fix-docutils-version-error.patch -- Gitee