Hello community,

here is the log from the commit of package python-catkin-pkg for 
openSUSE:Factory checked in at 2020-06-10 00:44:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-catkin-pkg (Old)
 and      /work/SRC/openSUSE:Factory/.python-catkin-pkg.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-catkin-pkg"

Wed Jun 10 00:44:35 2020 rev:4 rq:809827 version:0.4.16

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-catkin-pkg/python-catkin-pkg.changes      
2020-03-31 17:14:33.131601190 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-catkin-pkg.new.3606/python-catkin-pkg.changes
    2020-06-10 00:44:41.866376846 +0200
@@ -1,0 +2,6 @@
+Wed May 27 09:36:36 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+- use %pytest
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-catkin-pkg.spec ++++++
--- /var/tmp/diff_new_pack.j8jsvo/_old  2020-06-10 00:44:43.058379821 +0200
+++ /var/tmp/diff_new_pack.j8jsvo/_new  2020-06-10 00:44:43.062379831 +0200
@@ -17,6 +17,8 @@
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%define commands create_pkg find_pkg generate_changelog package_version 
prepare_release tag_changelog test_changelog
+
 Name:           python-catkin-pkg
 Version:        0.4.16
 Release:        0
@@ -32,13 +34,15 @@
 Requires:       python-pyparsing
 Requires:       python-python-dateutil
 Requires:       python-setuptools
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 BuildArch:      noarch
 # SECTION test requirements
 BuildRequires:  %{python_module docutils}
 BuildRequires:  %{python_module flake8}
 BuildRequires:  %{python_module mock}
-BuildRequires:  %{python_module nose}
 BuildRequires:  %{python_module pyparsing}
+BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module python-dateutil}
 # /SECTION
 %python_subpackages
@@ -54,23 +58,35 @@
 
 %install
 %python_install
+for c in %{commands}; do
+  %python_clone -a %{buildroot}%{_bindir}/catkin_$c
+done
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
 export PYTHONPATH=$PWD/src
-cd test
 # flake8 line length checks failing (E501)
-%python_exec %{_bindir}/nosetests --exclude=test/test_flake8.py
+%pytest -k 'not test_flake8'
+
+%post
+for c in %{commands}; do
+  %python_install_alternative catkin_$c
+done
+
+%postun
+for c in %{commands}; do
+  %python_uninstall_alternative catkin_$c
+done
 
 %files %{python_files}
 %license LICENSE
-%python3_only %{_bindir}/catkin_create_pkg
-%python3_only %{_bindir}/catkin_find_pkg
-%python3_only %{_bindir}/catkin_generate_changelog
-%python3_only %{_bindir}/catkin_package_version
-%python3_only %{_bindir}/catkin_prepare_release
-%python3_only %{_bindir}/catkin_tag_changelog
-%python3_only %{_bindir}/catkin_test_changelog
+%python_alternative %{_bindir}/catkin_create_pkg
+%python_alternative %{_bindir}/catkin_find_pkg
+%python_alternative %{_bindir}/catkin_generate_changelog
+%python_alternative %{_bindir}/catkin_package_version
+%python_alternative %{_bindir}/catkin_prepare_release
+%python_alternative %{_bindir}/catkin_tag_changelog
+%python_alternative %{_bindir}/catkin_test_changelog
 %{python_sitelib}/*
 
 %changelog


Reply via email to