Hello community,

here is the log from the commit of package python-poetry for openSUSE:Factory 
checked in at 2020-05-19 14:49:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-poetry (Old)
 and      /work/SRC/openSUSE:Factory/.python-poetry.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-poetry"

Tue May 19 14:49:16 2020 rev:4 rq:807041 version:1.0.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-poetry/python-poetry.changes      
2020-03-27 21:57:25.814797387 +0100
+++ /work/SRC/openSUSE:Factory/.python-poetry.new.2738/python-poetry.changes    
2020-05-19 14:49:16.660175655 +0200
@@ -1,0 +2,5 @@
+Mon May 18 20:11:33 UTC 2020 - Matej Cepl <[email protected]>
+
+- Don't use %python3_only command, but properly use alternatives.
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-poetry.spec ++++++
--- /var/tmp/diff_new_pack.dl1NBZ/_old  2020-05-19 14:49:17.284177039 +0200
+++ /var/tmp/diff_new_pack.dl1NBZ/_new  2020-05-19 14:49:17.284177039 +0200
@@ -76,6 +76,8 @@
 Recommends:     git-core
 Recommends:     python-devel
 BuildArch:      noarch
+Requires(post):   update-alternatives
+Requires(postun):  update-alternatives
 %python_subpackages
 
 %description
@@ -91,6 +93,7 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/poetry
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
@@ -101,10 +104,16 @@
 # discussion on this.
 %pytest -k 'not test_default_with_excluded_data'
 
+%post
+%python_install_alternative poetry
+
+%postun
+%python_uninstall_alternative poetry
+
 %files %{python_files}
 %doc README.md
 %license LICENSE
 %{python_sitelib}/*
-%python3_only %{_bindir}/poetry
+%python_alternative %{_bindir}/poetry
 
 %changelog


Reply via email to