Accepting request 808802 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/808802
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hatch?expand=0&rev=3
This commit is contained in:
Yuchen Lin 2020-05-26 15:49:54 +00:00 committed by Git OBS Bridge
commit e742487e1d
2 changed files with 15 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon May 25 10:59:15 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
-------------------------------------------------------------------
Sun Apr 5 07:19:23 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>

View File

@ -64,6 +64,8 @@ Requires: python-twine >= 1.9.1
Requires: python-userpath >= 1.3.0
Requires: python-virtualenv
Requires: python-wheel >= 0.27.0
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
@ -80,6 +82,7 @@ It aims to make the 90% use cases as pleasant as possible.
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/hatch
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@ -88,10 +91,16 @@ export PATH=$PATH:%{buildroot}%{_bindir}
# test_list_success_1 randomly timeouts in OBS
%pytest -k 'not test_list_success_1'
%post
%python_install_alternative hatch
%postun
%python_uninstall_alternative hatch
%files %{python_files}
%doc README.rst
%license LICENSE-APACHE LICENSE-MIT
%python3_only %{_bindir}/hatch
%python_alternative %{_bindir}/hatch
%{python_sitelib}/*
%changelog