forked from pool/python-opencensus-context
- Clean up the SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-opencensus-context?expand=0&rev=10
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 6 13:32:29 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
||||
|
||||
- Clean up the SPEC file
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 5 23:02:35 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
|
||||
|
||||
%define repo_version 0.11.0
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-opencensus-context
|
||||
Version: 0.1.3
|
||||
@@ -26,14 +25,16 @@ Summary: Python in-process context propogation
|
||||
License: Apache-2.0
|
||||
URL: https://github.com/census-instrumentation/opencensus-python
|
||||
Source: https://github.com/census-instrumentation/opencensus-python/archive/v%{repo_version}.tar.gz#/opencensus-%{repo_version}.tar.gz
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: %{python_module contextvars if (%python-base >= 3.6 and %python-base < 3.7)}
|
||||
BuildRequires: %{python_module contextvars if (%{python}-base >= 3.6 and %{python}-base < 3.7)}
|
||||
BuildArch: noarch
|
||||
%if 0%{python_version_nodots} == 36
|
||||
Requires: python-contextvars
|
||||
%endif
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -42,7 +43,7 @@ By default, thread local storage is used for Python 2.7, 3.4 and 3.5;
|
||||
contextvars is used for Python >= 3.6, which provides asyncio support.
|
||||
|
||||
%prep
|
||||
%setup -q -n opencensus-python-%{repo_version}/context/opencensus-context
|
||||
%autosetup -p1 -n opencensus-python-%{repo_version}/context/opencensus-context
|
||||
# for discovery to work
|
||||
touch tests/__init__.py
|
||||
|
||||
|
||||
Reference in New Issue
Block a user