Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-sphinxcontrib-blockdiag for openSUSE:Factory checked in at 2022-09-29 18:14:33 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-sphinxcontrib-blockdiag (Old) and /work/SRC/openSUSE:Factory/.python-sphinxcontrib-blockdiag.new.2275 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-sphinxcontrib-blockdiag" Thu Sep 29 18:14:33 2022 rev:6 rq:1006921 version:3.0.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-sphinxcontrib-blockdiag/python-sphinxcontrib-blockdiag.changes 2022-01-10 23:54:42.440862399 +0100 +++ /work/SRC/openSUSE:Factory/.python-sphinxcontrib-blockdiag.new.2275/python-sphinxcontrib-blockdiag.changes 2022-09-29 18:15:19.187485697 +0200 @@ -1,0 +2,7 @@ +Thu Sep 29 10:26:09 UTC 2022 - Daniel Garcia <daniel.gar...@suse.com> + +- Add multibuild to run tests +- Use the github source because the pypi doesn't have the tests +- Add patch 25.patch to remove the sphinx-testing dependency + +------------------------------------------------------------------- Old: ---- sphinxcontrib-blockdiag-3.0.0.tar.gz New: ---- 25.patch _multibuild python-sphinxcontrib-blockdiag-3.0.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-sphinxcontrib-blockdiag.spec ++++++ --- /var/tmp/diff_new_pack.ZoOhE3/_old 2022-09-29 18:15:19.823486944 +0200 +++ /var/tmp/diff_new_pack.ZoOhE3/_new 2022-09-29 18:15:19.827486952 +0200 @@ -18,17 +18,30 @@ %define skip_python2 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} -# Test files missing + +%bcond_with test +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} %bcond_with test +%endif + Name: python-sphinxcontrib-blockdiag Version: 3.0.0 Release: 0 Summary: Sphinx "blockdiag" extension License: BSD-2-Clause URL: https://github.com/blockdiag/sphinxcontrib-blockdiag -Source: https://files.pythonhosted.org/packages/source/s/sphinxcontrib-blockdiag/sphinxcontrib-blockdiag-%{version}.tar.gz +# Use the github tag instead of the pythonhosted.org to get the tests folder +Source: https://github.com/blockdiag/sphinxcontrib-blockdiag/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz +# PATCH-FEATURE-UPSTREAM 25.patch gh#blockdiag/sphinxcontrib-blockdiag#25 +Patch: https://patch-diff.githubusercontent.com/raw/blockdiag/sphinxcontrib-blockdiag/pull/25.patch BuildRequires: %{python_module Sphinx >= 2.0} BuildRequires: %{python_module blockdiag >= 1.5.0} +BuildRequires: %{python_module mock} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -36,30 +49,36 @@ Requires: python-blockdiag >= 1.5.0 BuildArch: noarch %if %{with test} +BuildRequires: %{python_module Sphinx-latex} BuildRequires: %{python_module funcparserlib} -BuildRequires: %{python_module sphinx-testing} -BuildRequires: python-mock +BuildRequires: %{python_module mock} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module sphinxcontrib-blockdiag = %{version}} %endif + %python_subpackages %description A sphinx extension for embedding block diagram using blockdiag. %prep -%setup -q -n sphinxcontrib-blockdiag-%{version} +%autosetup -p1 -n sphinxcontrib-blockdiag-%{version} %build %python_build %install +%if !%{with test} %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif %if %{with test} %check %pytest %endif +%if !%{with test} %files %{python_files} %license LICENSE %doc AUTHORS README.rst @@ -67,5 +86,6 @@ %pycache_only %{python_sitelib}/sphinxcontrib/__pycache__ %{python_sitelib}/sphinxcontrib_blockdiag-%{version}-py*-nspkg.pth %{python_sitelib}/sphinxcontrib_blockdiag-%{version}-py*.egg-info +%endif %changelog ++++++ 25.patch ++++++ ++++ 1555 lines (skipped) ++++++ _multibuild ++++++ <multibuild> <package>test</package> </multibuild>