Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-sphinxcontrib-autoprogram for openSUSE:Factory checked in at 2022-12-13 18:57:10 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-sphinxcontrib-autoprogram (Old) and /work/SRC/openSUSE:Factory/.python-sphinxcontrib-autoprogram.new.1835 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-sphinxcontrib-autoprogram" Tue Dec 13 18:57:10 2022 rev:5 rq:1042701 version:0.1.7 Changes: -------- --- /work/SRC/openSUSE:Factory/python-sphinxcontrib-autoprogram/python-sphinxcontrib-autoprogram.changes 2022-02-23 16:26:56.611509889 +0100 +++ /work/SRC/openSUSE:Factory/.python-sphinxcontrib-autoprogram.new.1835/python-sphinxcontrib-autoprogram.changes 2022-12-13 18:57:38.383898902 +0100 @@ -1,0 +2,6 @@ +Thu Dec 8 09:33:55 UTC 2022 - Matej Cepl <mc...@suse.com> + +- Add skip-failing-test.patch skipping failing test + gh#sphinx-contrib/autoprogram#54. + +------------------------------------------------------------------- New: ---- skip-failing-test.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-sphinxcontrib-autoprogram.spec ++++++ --- /var/tmp/diff_new_pack.wQD2mV/_old 2022-12-13 18:57:38.863901463 +0100 +++ /var/tmp/diff_new_pack.wQD2mV/_new 2022-12-13 18:57:38.867901485 +0100 @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %global flavor @BUILD_FLAVOR@%{nil} %define psuffix %{nil} %if "%{flavor}" != "" @@ -26,7 +25,6 @@ # https://github.com/sphinx-contrib/autoprogram/commit/457822502b71a449d97dfece63e77dbee910b581 %define skip_python36 1 %define skip_python2 1 -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-sphinxcontrib-%{short_name}%{psuffix} Version: 0.1.7 Release: 0 @@ -41,6 +39,9 @@ Source0: %{URL}/archive/%{version}/python-sphinxcontrib-%{short_name}-%{version}.tar.gz # https://github.com/sphinx-contrib/autoprogram/pull/25 Patch0: python-sphinxcontrib-autoprogram-python310.patch +# PATCH-FIX-UPSTREAM skip-failing-test.patch gh#sphinx-contrib/autoprogram#54 mc...@suse.com +# Switch off failing tests by the environmental variable SKIPTESTS +Patch1: skip-failing-test.patch BuildRequires: %{python_module Sphinx >= 1.2} BuildRequires: %{python_module setuptools} BuildRequires: fdupes @@ -90,15 +91,17 @@ %check %if "%{flavor}" == "test" -export PYTHONPATH='doc' -%pyunittest sphinxcontrib/autoprogram.py +export SKIPTESTS=1 +%pyunittest -v sphinxcontrib.autoprogram.suite %endif %if "%{flavor}" == "" %files %{python_files} %doc README.rst %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/sphinxcontrib +%{python_sitelib}/sphinxcontrib_autoprogram-%{version}*-info +%{python_sitelib}/sphinxcontrib_autoprogram-%{version}*-nspkg.pth %endif %if "%{flavor}" == "doc" ++++++ python-sphinxcontrib-autoprogram-python310.patch ++++++ --- /var/tmp/diff_new_pack.wQD2mV/_old 2022-12-13 18:57:38.903901677 +0100 +++ /var/tmp/diff_new_pack.wQD2mV/_new 2022-12-13 18:57:38.907901698 +0100 @@ -1,7 +1,9 @@ -Index: autoprogram-0.1.7/sphinxcontrib/autoprogram.py -=================================================================== ---- autoprogram-0.1.7.orig/sphinxcontrib/autoprogram.py 2022-02-18 13:57:19.100334018 +0100 -+++ autoprogram-0.1.7/sphinxcontrib/autoprogram.py 2022-02-18 13:57:56.028550128 +0100 +--- + sphinxcontrib/autoprogram.py | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +--- a/sphinxcontrib/autoprogram.py ++++ b/sphinxcontrib/autoprogram.py @@ -476,7 +476,11 @@ class ScannerTestCase(unittest.TestCase) # section: default optionals program, options, group = sections[1] ++++++ skip-failing-test.patch ++++++ --- sphinxcontrib/autoprogram.py | 1 + 1 file changed, 1 insertion(+) --- a/sphinxcontrib/autoprogram.py +++ b/sphinxcontrib/autoprogram.py @@ -544,6 +544,7 @@ class AutoprogramDirectiveTestCase(unitt def tearDown(self) -> None: sys.path[:] = self.untouched_sys_path + @unittest.skipIf('SKIPTESTS' in os.environ, "Skip failing test gh#sphinx-contrib/autoprogram#54") def test_make_rst(self) -> None: self.assertEqual( "\n".join(self.directive.make_rst()).strip(),