Accepting request 808627 from home:pgajdos:python

submit

OBS-URL: https://build.opensuse.org/request/show/808627
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-keyring?expand=0&rev=82
This commit is contained in:
Tomáš Chvátal 2020-05-25 09:26:37 +00:00 committed by Git OBS Bridge
parent ee812d94f0
commit c6b79ee653
2 changed files with 15 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon May 25 06:50:30 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
-------------------------------------------------------------------
Thu Apr 16 08:27:33 UTC 2020 - pgajdos@suse.com

View File

@ -39,6 +39,8 @@ Requires: python-SecretStorage >= 3
Requires: python-entrypoints
Requires: python-jeepney >= 0.4.2
Requires: python-setuptools
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
@ -57,15 +59,22 @@ sed -i -e 's,--flake8,,' -e 's,--black,,' -e 's,--cov,,' pytest.ini
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/keyring
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%post
%python_install_alternative keyring
%postun
%python_uninstall_alternative keyring
%files %{python_files}
%doc README.rst CHANGES.rst
%license LICENSE
%python3_only %{_bindir}/keyring
%python_alternative %{_bindir}/keyring
%{python_sitelib}/keyring-%{version}-py*.egg-info
%{python_sitelib}/keyring/