From ea5e1993cf4d7422a42106bf2090e3876c50a62604824ff9457ef01078d62ab4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 13 Feb 2019 12:25:53 +0000 Subject: [PATCH] - 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 --- python-uvloop.changes | 7 +++++++ python-uvloop.spec | 7 ++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/python-uvloop.changes b/python-uvloop.changes index 00cf7d8..453c2a0 100644 --- a/python-uvloop.changes +++ b/python-uvloop.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Feb 13 12:24:56 UTC 2019 - Tomáš Chvátal + +- 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 diff --git a/python-uvloop.spec b/python-uvloop.spec index a195351..fa62805 100644 --- a/python-uvloop.spec +++ b/python-uvloop.spec @@ -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 :(