diff --git a/python-opentelemetry-api.changes b/python-opentelemetry-api.changes index e4d715b..67c9eb8 100644 --- a/python-opentelemetry-api.changes +++ b/python-opentelemetry-api.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Fri Jan 22 13:40:17 UTC 2021 - Benjamin Greiner + +- 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 diff --git a/python-opentelemetry-api.spec b/python-opentelemetry-api.spec index 12aecb1..04ff446 100644 --- a/python-opentelemetry-api.spec +++ b/python-opentelemetry-api.spec @@ -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