17
0

Accepting request 866014 from home:bnavigator:branches:devel:languages:python

- aiocontextvars is only needed for older Python 3.6. Python 3.7
  and beyond provide everything in stdlib contextvars. See
  upstreams' setup.cfg.  Use rpm boolean dependencies to pull in
  aiocontextvars only for python36 if available (TW) or python3 if
  python3-base < 3.7 (Leap)

OBS-URL: https://build.opensuse.org/request/show/866014
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-opentelemetry-api?expand=0&rev=9
This commit is contained in:
2021-01-22 13:49:20 +00:00
committed by Git OBS Bridge
parent fb2e10d339
commit 18e0564356
2 changed files with 13 additions and 1 deletions

View File

@@ -1,3 +1,12 @@
-------------------------------------------------------------------
Fri Jan 22 13:40:17 UTC 2021 - Benjamin Greiner <code@bnavigator.de>
- aiocontextvars is only needed for older Python 3.6. Python 3.7
and beyond provide everything in stdlib contextvars. See
upstreams' setup.cfg. Use rpm boolean dependencies to pull in
aiocontextvars only for python36 if available (TW) or python3 if
python3-base < 3.7 (Leap)
-------------------------------------------------------------------
Fri Jan 22 11:39:19 UTC 2021 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@@ -25,12 +25,15 @@ Summary: OpenTelemetry Python API
License: Apache-2.0
URL: https://github.com/open-telemetry/opentelemetry-python/tree/master/opentelemetry-api
Source: https://files.pythonhosted.org/packages/source/o/opentelemetry-api/opentelemetry-api-%{version}.tar.gz
BuildRequires: %{python_module aiocontextvars}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: ((python3-aiocontextvars and python3-base < 3.7) or (python36-aiocontextvars and python36-base))
BuildArch: noarch
Requires: python-setuptools
%if %{python_version_nodots} < 37
Requires: python-aiocontextvars
%endif
# SECTION test requirements
BuildRequires: %{python_module pytest}
# /SECTION