Accepting request 806792 from home:pgajdos:python

submit

OBS-URL: https://build.opensuse.org/request/show/806792
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-watchdog?expand=0&rev=18
This commit is contained in:
Tomáš Chvátal 2020-05-18 08:12:07 +00:00 committed by Git OBS Bridge
parent 0b03aee714
commit fa5ef35aed
2 changed files with 15 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon May 18 07:25:34 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
-------------------------------------------------------------------
Tue Mar 10 10:24:35 UTC 2020 - pgajdos@suse.com

View File

@ -34,6 +34,8 @@ BuildRequires: python3-Sphinx
Requires: python-PyYAML
Requires: python-argh
Requires: python-pathtools >= 0.1.1
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
@ -58,6 +60,7 @@ cd docs && make html && rm -r build/html/.buildinfo build/html/objects.inv # Bui
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/watchmedo
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@ -65,10 +68,16 @@ sed -i '/--cov/d' setup.cfg
export LANG=en_US.UTF-8
%pytest
%post
%python_install_alternative watchmedo
%postun
%python_uninstall_alternative watchmedo
%files %{python_files}
%license COPYING LICENSE
%doc AUTHORS changelog.rst MANIFEST.in README.rst
%python3_only %{_bindir}/watchmedo
%python_alternative %{_bindir}/watchmedo
%{python_sitelib}/watchdog
%{python_sitelib}/watchdog-%{version}-py%{python_version}.egg-info