Accepting request 880489 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/880489
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-yarl?expand=0&rev=17
This commit is contained in:
Dominique Leuenberger 2021-03-24 15:10:25 +00:00 committed by Git OBS Bridge
commit 3b566ead84
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Mar 20 19:40:32 UTC 2021 - Ben Greiner <code@bnavigator.de>
- Unset -Werror=return-type for python39
- Only install typing_extensions for Python < 3.8
-------------------------------------------------------------------
Tue Feb 23 17:02:42 UTC 2021 - Matej Cepl <mcepl@suse.com>

View File

@ -33,6 +33,7 @@ Patch0: tests_overcome_bpo42967.patch
BuildRequires: %{python_module Cython}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module idna >= 2.0}
BuildRequires: %{python_module typing_extensions >= 3.7.4 if %python-base < 3.8}
# test requirements
BuildRequires: %{python_module multidict >= 4.0}
BuildRequires: %{python_module pytest-cov}
@ -43,7 +44,9 @@ BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-idna >= 2.0
Requires: python-multidict >= 4.0
%if 0%{?python_version_nodots} < 38
Requires: python-typing_extensions >= 3.7.4
%endif
%python_subpackages
%description
@ -53,7 +56,7 @@ The module provides a URL class for url parsing and changing.
%autosetup -p1 -n yarl-%{version}
%build
export CFLAGS="%{optflags}"
export CFLAGS="%{optflags} -Wno-return-type"
%python_build
%install