From 71585e543ea35cda7a86f58f3eff5e3afb21a3b3371a098a55cdefeb632d1831 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 22 Mar 2021 10:24:59 +0000 Subject: [PATCH] Accepting request 880298 from home:bnavigator:branches:devel:languages:python - Unset -Werror=return-type for python39 - Only install typing_extensions for Python < 3.8 OBS-URL: https://build.opensuse.org/request/show/880298 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-yarl?expand=0&rev=35 --- python-yarl.changes | 6 ++++++ python-yarl.spec | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/python-yarl.changes b/python-yarl.changes index ced7ab3..2bafbac 100644 --- a/python-yarl.changes +++ b/python-yarl.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Mar 20 19:40:32 UTC 2021 - Ben Greiner + +- Unset -Werror=return-type for python39 +- Only install typing_extensions for Python < 3.8 + ------------------------------------------------------------------- Tue Feb 23 17:02:42 UTC 2021 - Matej Cepl diff --git a/python-yarl.spec b/python-yarl.spec index d11c068..3436e58 100644 --- a/python-yarl.spec +++ b/python-yarl.spec @@ -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