Hello community,

here is the log from the commit of package python-devpi-client for 
openSUSE:Factory checked in at 2020-05-28 09:18:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-devpi-client (Old)
 and      /work/SRC/openSUSE:Factory/.python-devpi-client.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-devpi-client"

Thu May 28 09:18:06 2020 rev:4 rq:809420 version:5.1.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-devpi-client/python-devpi-client.changes  
2020-01-12 23:26:26.674861850 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-devpi-client.new.3606/python-devpi-client.changes
        2020-05-28 09:18:07.545077646 +0200
@@ -1,0 +2,5 @@
+Tue May 26 07:22:38 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-devpi-client.spec ++++++
--- /var/tmp/diff_new_pack.52Wn8q/_old  2020-05-28 09:18:08.029078532 +0200
+++ /var/tmp/diff_new_pack.52Wn8q/_new  2020-05-28 09:18:08.033078539 +0200
@@ -36,6 +36,8 @@
 Requires:       python-py >= 1.4.31
 Requires:       python-tox >= 3.1.0
 Requires:       python-wheel
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 Recommends:     git-core
 Recommends:     python-Sphinx
 BuildArch:      noarch
@@ -72,6 +74,7 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/devpi
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
@@ -79,12 +82,19 @@
 export PYTHONDONTWRITEBYTECODE=1
 export PATH=$PATH:%{buildroot}/%{_bindir}
 # Unknown failures https://github.com/devpi/devpi/issues/706
-%pytest -k 'not (test_simple_install_new_venv_workflow or 
test_simple_install_activated_venv_workflow)'
+# test_help: devpi binary is not available (update-alternatives)
+%pytest -k 'not (test_simple_install_new_venv_workflow or 
test_simple_install_activated_venv_workflow or test_help)'
+
+%post
+%python_install_alternative devpi
+
+%postun
+%python_uninstall_alternative devpi
 
 %files %{python_files}
 %doc AUTHORS CHANGELOG README.rst
 %license LICENSE
-%python3_only %{_bindir}/devpi
+%python_alternative %{_bindir}/devpi
 %{python_sitelib}/*
 
 %changelog


Reply via email to