Hello community, here is the log from the commit of package python-geomet for openSUSE:Factory checked in at 2020-05-28 09:18:41 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-geomet (Old) and /work/SRC/openSUSE:Factory/.python-geomet.new.3606 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-geomet" Thu May 28 09:18:41 2020 rev:2 rq:809540 version:0.2.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-geomet/python-geomet.changes 2020-01-20 22:53:24.355296457 +0100 +++ /work/SRC/openSUSE:Factory/.python-geomet.new.3606/python-geomet.changes 2020-05-28 09:18:42.569141797 +0200 @@ -1,0 +2,5 @@ +Tue May 26 06:34:21 UTC 2020 - Petr Gajdos <[email protected]> + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-geomet.spec ++++++ --- /var/tmp/diff_new_pack.UIVAzm/_old 2020-05-28 09:18:43.165142889 +0200 +++ /var/tmp/diff_new_pack.UIVAzm/_new 2020-05-28 09:18:43.169142896 +0200 @@ -30,6 +30,8 @@ BuildRequires: python-rpm-macros Requires: python-click Requires: python-six +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module click} @@ -49,17 +51,29 @@ %install %python_install +%python_clone -a %{buildroot}%{_bindir}/geomet rm %{buildroot}%{_prefix}/LICENSE %python_expand %fdupes %{buildroot}%{$python_sitelib} %check export PATH=$PATH:%{buildroot}%{_bindir} -%pytest +export PYTHONDONTWRITEBYTECODE=1 +%{python_expand \ +sed -i 's:geomet:geomet-%{$python_version}:' geomet/tests/test_cli.py +export PYTHONPATH=:%{buildroot}%{$python_sitelib} +$python -m pytest +} + +%post +%python_install_alternative geomet + +%postun +%python_uninstall_alternative geomet %files %{python_files} %doc AUTHORS.txt README.md %license LICENSE -%python3_only %{_bindir}/geomet +%python_alternative %{_bindir}/geomet %{python_sitelib}/geomet %{python_sitelib}/geomet-%{version}-py*.egg-info
