Accepting request 809827 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/809827 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-catkin-pkg?expand=0&rev=4
This commit is contained in:
commit
76498ed146
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed May 27 09:36:36 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||||
|
|
||||||
|
- %python3_only -> %python_alternative
|
||||||
|
- use %pytest
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Mar 30 12:51:38 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
Mon Mar 30 12:51:38 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
||||||
|
|
||||||
|
@ -17,6 +17,8 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!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
|
Name: python-catkin-pkg
|
||||||
Version: 0.4.16
|
Version: 0.4.16
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -32,13 +34,15 @@ Requires: python-docutils
|
|||||||
Requires: python-pyparsing
|
Requires: python-pyparsing
|
||||||
Requires: python-python-dateutil
|
Requires: python-python-dateutil
|
||||||
Requires: python-setuptools
|
Requires: python-setuptools
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module docutils}
|
BuildRequires: %{python_module docutils}
|
||||||
BuildRequires: %{python_module flake8}
|
BuildRequires: %{python_module flake8}
|
||||||
BuildRequires: %{python_module mock}
|
BuildRequires: %{python_module mock}
|
||||||
BuildRequires: %{python_module nose}
|
|
||||||
BuildRequires: %{python_module pyparsing}
|
BuildRequires: %{python_module pyparsing}
|
||||||
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module python-dateutil}
|
BuildRequires: %{python_module python-dateutil}
|
||||||
# /SECTION
|
# /SECTION
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
@ -54,23 +58,35 @@ Library for retrieving information about catkin packages.
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
|
for c in %{commands}; do
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/catkin_$c
|
||||||
|
done
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export PYTHONPATH=$PWD/src
|
export PYTHONPATH=$PWD/src
|
||||||
cd test
|
|
||||||
# flake8 line length checks failing (E501)
|
# 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}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%python3_only %{_bindir}/catkin_create_pkg
|
%python_alternative %{_bindir}/catkin_create_pkg
|
||||||
%python3_only %{_bindir}/catkin_find_pkg
|
%python_alternative %{_bindir}/catkin_find_pkg
|
||||||
%python3_only %{_bindir}/catkin_generate_changelog
|
%python_alternative %{_bindir}/catkin_generate_changelog
|
||||||
%python3_only %{_bindir}/catkin_package_version
|
%python_alternative %{_bindir}/catkin_package_version
|
||||||
%python3_only %{_bindir}/catkin_prepare_release
|
%python_alternative %{_bindir}/catkin_prepare_release
|
||||||
%python3_only %{_bindir}/catkin_tag_changelog
|
%python_alternative %{_bindir}/catkin_tag_changelog
|
||||||
%python3_only %{_bindir}/catkin_test_changelog
|
%python_alternative %{_bindir}/catkin_test_changelog
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user