Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-pyupgrade for
openSUSE:Factory checked in at 2021-01-26 14:46:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pyupgrade (Old)
and /work/SRC/openSUSE:Factory/.python-pyupgrade.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pyupgrade"
Tue Jan 26 14:46:34 2021 rev:5 rq:866337 version:2.7.4
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pyupgrade/python-pyupgrade.changes
2020-12-09 22:12:52.963155924 +0100
+++
/work/SRC/openSUSE:Factory/.python-pyupgrade.new.28504/python-pyupgrade.changes
2021-01-26 14:50:01.123699605 +0100
@@ -1,0 +2,5 @@
+Sat Jan 23 15:25:51 UTC 2021 - Sebastian Wagner <[email protected]>
+
+- Use python_clone and alternatives to provide the executable.
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pyupgrade.spec ++++++
--- /var/tmp/diff_new_pack.gKjvth/_old 2021-01-26 14:50:01.791700515 +0100
+++ /var/tmp/diff_new_pack.gKjvth/_new 2021-01-26 14:50:01.799700526 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-pyupgrade
#
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -35,6 +35,8 @@
# /SECTION
BuildRequires: fdupes
Requires: python-tokenize-rt >= 3.2.0
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
@@ -51,14 +53,21 @@
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
+%python_clone -a %{buildroot}%{_bindir}/pyupgrade
%check
%pytest
+%post
+%python_install_alternative pyupgrade
+
+%postun
+%python_uninstall_alternative pyupgrade
+
%files %{python_files}
%doc README.md
%license LICENSE
-%python3_only %{_bindir}/pyupgrade
+%python_alternative %{_bindir}/pyupgrade
%{python_sitelib}/*
%changelog