14
0

Accepting request 807672 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/807672
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pythonfinder?expand=0&rev=5
This commit is contained in:
2020-05-26 15:18:05 +00:00
committed by Git OBS Bridge
2 changed files with 15 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed May 20 07:26:51 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
-------------------------------------------------------------------
Fri Jan 10 14:59:00 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -35,6 +35,8 @@ Requires: python-crayons
Requires: python-packaging
Requires: python-six
Requires: python-vistir >= 0.2.5
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module attrs}
@@ -66,6 +68,7 @@ rm -rf src/pythonfinder/_vendor/pep514tools
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/pyfinder
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -73,10 +76,16 @@ rm -rf src/pythonfinder/_vendor/pep514tools
# to modify read-only system image files.
%pytest -k 'not (test_python_versions or test_shims_are_kept or test_shims_are_removed)'
%post
%python_install_alternative pyfinder
%postun
%python_uninstall_alternative pyfinder
%files %{python_files}
%doc CHANGELOG.rst README.rst
%license LICENSE.txt
%python3_only %{_bindir}/pyfinder
%python_alternative %{_bindir}/pyfinder
%{python_sitelib}/*
%changelog