Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-hatch_vcs for
openSUSE:Factory checked in at 2023-02-22 15:21:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-hatch_vcs (Old)
and /work/SRC/openSUSE:Factory/.python-hatch_vcs.new.1706 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-hatch_vcs"
Wed Feb 22 15:21:03 2023 rev:5 rq:1066937 version:0.3.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-hatch_vcs/python-hatch_vcs.changes
2022-12-12 17:37:15.288440107 +0100
+++
/work/SRC/openSUSE:Factory/.python-hatch_vcs.new.1706/python-hatch_vcs.changes
2023-02-22 15:21:06.141696520 +0100
@@ -1,0 +2,5 @@
+Tue Feb 21 08:48:31 UTC 2023 - Matej Cepl <[email protected]>
+
+- Switch to _multibuild to avoid a build cycle with pytest.
+
+-------------------------------------------------------------------
New:
----
_multibuild
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-hatch_vcs.spec ++++++
--- /var/tmp/diff_new_pack.MdQLvn/_old 2023-02-22 15:21:06.613699197 +0100
+++ /var/tmp/diff_new_pack.MdQLvn/_new 2023-02-22 15:21:06.613699197 +0100
@@ -1,7 +1,7 @@
#
-# spec file for package python-hatch_vcs
+# spec file
#
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,9 +16,15 @@
#
-%{?!python_module:%define python_module() python3-%{**}}
-%define skip_python2 1
-Name: python-hatch_vcs
+%global flavor @BUILD_FLAVOR@%{nil}
+%if "%{flavor}" == "test"
+%define psuffix -test
+%bcond_without test
+%else
+%define psuffix %{nil}
+%bcond_with test
+%endif
+Name: python-hatch_vcs%{psuffix}
Version: 0.3.0
Release: 0
Summary: Hatch plugin for versioning with your preferred VCS
@@ -36,11 +42,13 @@
BuildRequires: %{python_module hatchling >= 0.21.0}
BuildRequires: %{python_module pip}
# /SECTION
+%if %{with test}
# SECTION test
BuildRequires: %{python_module setuptools_scm >= 6.4.0}
BuildRequires: %{python_module pytest}
BuildRequires: git
# /SECTION
+%endif
%python_subpackages
%description
@@ -57,12 +65,17 @@
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
+%if %{with test}
%pytest tests
+rm -rf %{buildroot}
+%endif
+%if %{without test}
%files %{python_files}
%license LICENSE.txt
%doc README.md
%{python_sitelib}/hatch_vcs
%{python_sitelib}/hatch_vcs-%{version}*-info
+%endif
%changelog
++++++ _multibuild ++++++
<multibuild>
<package>test</package>
</multibuild>