Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-click for openSUSE:Factory checked in at 2026-01-30 18:22:04 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-click (Old) and /work/SRC/openSUSE:Factory/.python-click.new.1995 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-click" Fri Jan 30 18:22:04 2026 rev:28 rq:1329782 version:8.3.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-click/python-click.changes 2025-11-18 15:30:43.520356178 +0100 +++ /work/SRC/openSUSE:Factory/.python-click.new.1995/python-click.changes 2026-01-30 18:22:15.841471798 +0100 @@ -1,0 +2,6 @@ +Thu Jan 29 09:04:24 UTC 2026 - Daniel Garcia <[email protected]> + +- Run tests in a subpackage, this allows to exclude build in different + distributions + +------------------------------------------------------------------- New: ---- _multibuild ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-click.spec ++++++ --- /var/tmp/diff_new_pack.KF1BRM/_old 2026-01-30 18:22:17.477540457 +0100 +++ /var/tmp/diff_new_pack.KF1BRM/_new 2026-01-30 18:22:17.505541633 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-click # -# Copyright (c) 2025 SUSE LLC and contributors +# Copyright (c) 2026 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,8 +16,16 @@ # +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif %{?sle15_python_module_pythons} -Name: python-click +Name: python-click%{psuffix} Version: 8.3.1 Release: 0 Summary: A wrapper around optparse for command line utilities @@ -27,9 +35,12 @@ BuildRequires: %{python_module base >= 3.10} BuildRequires: %{python_module flit-core} BuildRequires: %{python_module pip} -BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +%if %{with test} +BuildRequires: %{python_module click == %{version}} +BuildRequires: %{python_module pytest} +%endif BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -45,19 +56,27 @@ %autosetup -p1 -n click-%{version} %build +%if %{without test} %pyproject_wheel +%endif %install +%if %{without test} %pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif %check +%if %{with test} export LANG=en_US.UTF-8 %pytest -rs --tb=short +%endif +%if %{without test} %files %{python_files} %license LICENSE.txt %doc CHANGES.rst README.md %{python_sitelib}/click %{python_sitelib}/click-%{version}.dist-info +%endif ++++++ _multibuild ++++++ <multibuild> <package>test</package> </multibuild>
