Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package bump2version for openSUSE:Factory 
checked in at 2026-05-20 15:23:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/bump2version (Old)
 and      /work/SRC/openSUSE:Factory/.bump2version.new.1966 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "bump2version"

Wed May 20 15:23:59 2026 rev:8 rq:1353947 version:1.0.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/bump2version/bump2version.changes        
2024-03-21 17:01:27.074646747 +0100
+++ /work/SRC/openSUSE:Factory/.bump2version.new.1966/bump2version.changes      
2026-05-20 15:24:42.662608579 +0200
@@ -1,0 +2,10 @@
+Tue May 12 06:27:46 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Refresh fix-test_usage_string.patch to match what GitHub is serving.
+
+-------------------------------------------------------------------
+Fri Jun 13 13:31:02 UTC 2025 - Nico Krapp <[email protected]>
+
+- migrate to pip based build and use libalternatives on modern versions
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ bump2version.spec ++++++
--- /var/tmp/diff_new_pack.v6IFfz/_old  2026-05-20 15:24:43.334636272 +0200
+++ /var/tmp/diff_new_pack.v6IFfz/_new  2026-05-20 15:24:43.338636437 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package bump2version
 #
-# Copyright (c) 2022 SUSE LLC
+# 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,6 +16,12 @@
 #
 
 
+%if 0%{?suse_version} > 1500
+%bcond_without libalternatives
+%else
+%bcond_with libalternatives
+%endif
+
 # Flavor to build for
 %define pythons python3
 %{?sle15_python_module_pythons}
@@ -30,14 +36,21 @@
 Source:         
%{URL}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
 # PATCH-FIX-UPSTREAM fix-test_usage_string.patch -- fixes test_usage_string
 Patch0:         
https://github.com/c4urself/bump2version/commit/1c4f04b6ab90f6d432b6c4117e0de38b006a5de5.patch#/fix-test_usage_string.patch
+BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module pytest >= 3.4.0}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module testfixtures >= 6.0.0}
+BuildRequires:  %{python_module wheel}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
-Obsoletes:      bumpversion <= 0.6.0
+%if %{with libalternatives}
+Requires:       alts
+BuildRequires:  alts
+%else
 Requires(post): update-alternatives
-Requires(postun):update-alternatives
+Requires(postun): update-alternatives
+%endif
+Obsoletes:      bumpversion <= 0.6.0
 BuildArch:      noarch
 
 %python_subpackages
@@ -56,19 +69,24 @@
 %autosetup -p1
 
 %build
-%python_build
+%pyproject_wheel
 
 %install
-%python_install
+%pyproject_install
 %python_clone -a %{buildroot}%{_bindir}/bump2version
 %python_clone -a %{buildroot}%{_bindir}/bumpversion
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
+%fdupes -s %{buildroot}%{bindir}
 
 %check
 # test_usage_string_fork: bumpversion is not in PATH
 # test_usage_string: https://github.com/c4urself/bump2version/issues/254
 %pytest -k 'not (test_usage_string_fork or test_usage_string)'
 
+%pre
+# If libalternatives is used: Removing old update-alternatives entries.
+%python_libalternatives_reset_alternative bump2version bumpversion
+
 %post
 %{python_install_alternative bump2version bumpversion}
 
@@ -80,5 +98,6 @@
 %license LICENSE.rst
 %python_alternative %{_bindir}/bump2version
 %python_alternative %{_bindir}/bumpversion
-%{python_sitelib}/*
+%{python_sitelib}/bumpversion
+%{python_sitelib}/bump2version-%{version}.dist-info
 

++++++ fix-test_usage_string.patch ++++++
--- /var/tmp/diff_new_pack.v6IFfz/_old  2026-05-20 15:24:43.374637921 +0200
+++ /var/tmp/diff_new_pack.v6IFfz/_new  2026-05-20 15:24:43.378638086 +0200
@@ -8,7 +8,7 @@
  1 file changed, 2 insertions(+), 2 deletions(-)
 
 diff --git a/tests/test_cli.py b/tests/test_cli.py
-index 1589da0..ec5e9e4 100644
+index 1589da01..ec5e9e45 100644
 --- a/tests/test_cli.py
 +++ b/tests/test_cli.py
 @@ -117,7 +117,7 @@ def _mock_calls_to_string(called_mock):

Reply via email to