From 08287650b74e7bb072b2116b40016b3797c38a70ee5f07f211e5ca3ab74bc48f Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 2 Feb 2021 00:10:16 +0000 Subject: [PATCH] Accepting request 868483 from home:bnavigator:branches:devel:languages:python - Fix the contextvars requirement for python36 (In expectation that Staging:A will be merged tomorrow) OBS-URL: https://build.opensuse.org/request/show/868483 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sniffio?expand=0&rev=12 --- python-sniffio.changes | 5 +++++ python-sniffio.spec | 10 ++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/python-sniffio.changes b/python-sniffio.changes index d035c1e..e49f233 100644 --- a/python-sniffio.changes +++ b/python-sniffio.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Jan 31 13:35:33 UTC 2021 - Benjamin Greiner + +- Fix the contextvars requirement for python36 + ------------------------------------------------------------------- Wed Dec 9 22:59:17 UTC 2020 - Benjamin Greiner diff --git a/python-sniffio.spec b/python-sniffio.spec index a0da5c8..51eb385 100644 --- a/python-sniffio.spec +++ b/python-sniffio.spec @@ -1,7 +1,7 @@ # # spec file for package python-sniffio # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,11 +26,13 @@ License: MIT OR Apache-2.0 Group: Development/Languages/Python URL: https://github.com/python-trio/sniffio Source: https://github.com/python-trio/sniffio/archive/v%{version}.tar.gz#/sniffio-%{version}.tar.gz -BuildRequires: %{python_module contextvars >= 2.1} +BuildRequires: %{python_module contextvars >= 2.1 if %python-base < 3.7} BuildRequires: %{python_module setuptools} BuildRequires: fdupes -BuildRequires: python-rpm-macros -Suggests: python-contextvars >= 2.1 +BuildRequires: python-rpm-macros >= 20210127.3a18043 +%if 0%{?python_version_nodots} < 37 +Requires: python-contextvars >= 2.1 +%endif BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module curio}