forked from pool/python-uvloop
Accepting request 918056 from home:fusionfuture:branches:devel:languages:python
- Add libuv >= 1.28.0 BuildRequires.
(c2b65bc8d2
)
- Do not include autogenerated source code (loop.c).
- Add rpmlintrc to suppress devel-file-in-non-devel-package messages.
OBS-URL: https://build.opensuse.org/request/show/918056
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-uvloop?expand=0&rev=20
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
%define skip_python36 1
|
||||
%define modname uvloop
|
||||
Name: python-uvloop
|
||||
Version: 0.16.0
|
||||
Release: 0
|
||||
@@ -27,6 +28,7 @@ License: Apache-2.0 AND MIT
|
||||
Group: Development/Languages/Python
|
||||
URL: http://github.com/MagicStack/uvloop
|
||||
Source: https://files.pythonhosted.org/packages/source/u/uvloop/uvloop-%{version}.tar.gz
|
||||
Source1: python-uvloop.rpmlintrc
|
||||
BuildRequires: %{python_module Cython >= 0.28}
|
||||
BuildRequires: %{python_module aiohttp}
|
||||
BuildRequires: %{python_module devel}
|
||||
@@ -36,12 +38,12 @@ BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: pkgconfig(libuv)
|
||||
BuildRequires: pkgconfig(libuv) >= 1.28.0
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
uvloop is a drop-in replacement of the built-in asyncio
|
||||
event loop. uvloop is implemented in Cython and uses libuv
|
||||
event loop. uvloop is implemented in Cython and uses libuv
|
||||
under the hood.
|
||||
|
||||
%prep
|
||||
@@ -62,6 +64,8 @@ rm -vrf vendor/
|
||||
# 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.*
|
||||
# Remove autogenerated source code
|
||||
%python_expand rm -vf %{buildroot}%{$python_sitearch}/%{modname}/loop.c
|
||||
|
||||
%check
|
||||
# Actually the tests are VERY flaky, thus continue even if they fail :(
|
||||
|
Reference in New Issue
Block a user