Hello community,
here is the log from the commit of package python-docformatter for
openSUSE:Factory checked in at 2020-05-28 09:17:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-docformatter (Old)
and /work/SRC/openSUSE:Factory/.python-docformatter.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-docformatter"
Thu May 28 09:17:56 2020 rev:7 rq:809412 version:1.3.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-docformatter/python-docformatter.changes
2020-04-02 17:45:33.181543677 +0200
+++
/work/SRC/openSUSE:Factory/.python-docformatter.new.3606/python-docformatter.changes
2020-05-28 09:17:59.529058972 +0200
@@ -1,0 +2,5 @@
+Tue May 26 07:22:42 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-docformatter.spec ++++++
--- /var/tmp/diff_new_pack.DxlDTv/_old 2020-05-28 09:18:00.101060322 +0200
+++ /var/tmp/diff_new_pack.DxlDTv/_new 2020-05-28 09:18:00.105060332 +0200
@@ -28,13 +28,14 @@
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
-# SECTION test requirements
-BuildRequires: %{python_module untokenize}
-# /SECTION
Requires: python-setuptools
Requires: python-untokenize
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
BuildArch: noarch
-
+# SECTION test requirements
+BuildRequires: %{python_module untokenize}
+# /SECTION
%python_subpackages
%description
@@ -57,7 +58,6 @@
whitespace. Such trailing whitespace is visually indistinguishable
and some editors (or more recently, reindent.py) will trim them.
-
%prep
%setup -q -n docformatter-%{version}
sed -i -e '/^#!\//, 1d' docformatter.py
@@ -67,15 +67,22 @@
%install
%python_install
+%python_clone -a %{buildroot}%{_bindir}/docformatter
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec setup.py test
+%post
+%python_install_alternative docformatter
+
+%postun
+%python_uninstall_alternative docformatter
+
%files %{python_files}
%license LICENSE
%doc AUTHORS.rst README.rst
-%python3_only %{_bindir}/docformatter
+%python_alternative %{_bindir}/docformatter
%{python_sitelib}/*
%changelog