- Distribute again the .c files as they are needed by parts

of the py app rh#1639457
- Do not distribute the tests

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-uvloop?expand=0&rev=7
This commit is contained in:
Tomáš Chvátal 2019-02-13 12:25:53 +00:00 committed by Git OBS Bridge
parent 98861cde0a
commit ea5e1993cf
2 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Feb 13 12:24:56 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Distribute again the .c files as they are needed by parts
of the py app rh#1639457
- Do not distribute the tests
-------------------------------------------------------------------
Thu Oct 25 12:22:16 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-uvloop
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -48,8 +48,6 @@ under the hood.
sed -i -e "/self.cython_always/s/False/True/" setup.py
# use system libuv
sed -i -e "/self.use_system_libuv/s/False/True/" setup.py
# No need to ship .c files
sed -i -e "/include_package_data=True/d" setup.py
# To be sure, no 3rd-party stuff
rm -vrf vendor/
@ -59,6 +57,9 @@ rm -vrf vendor/
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
# https://github.com/MagicStack/uvloop/issues/70
%python_expand rm -vf %{buildroot}%{$python_sitearch}/%{modname}/_testbase.py
%python_expand rm -vf %{buildroot}%{$python_sitearch}/%{modname}/__pycache__/_testbase.*
%check
# Actually the tests are VERY flaky, thus continue even if they fail :(