forked from pool/python-opencensus-ext-threading
Accepting request 1155570 from devel:languages:python
- Switch package to modern Python Stack on SLE-15
+ Add %{?sle15_python_module_pythons}
+ Drop %{?!python_module:%define python_module() python-%{**} python3-%{**}}
+ Drop build support for Python 2.x
OBS-URL: https://build.opensuse.org/request/show/1155570
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-opencensus-ext-threading?expand=0&rev=3
This commit is contained in:
@@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Mar 5 23:05:44 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
- Switch package to modern Python Stack on SLE-15
|
||||||
|
+ Add %{?sle15_python_module_pythons}
|
||||||
|
+ Drop %{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
+ Drop build support for Python 2.x
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jan 21 11:57:26 UTC 2021 - Benjamin Greiner <code@bnavigator.de>
|
Thu Jan 21 11:57:26 UTC 2021 - Benjamin Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-opencensus-ext-threading
|
# spec file for package python-opencensus-ext-threading
|
||||||
#
|
#
|
||||||
# Copyright (c) 2021 SUSE LLC
|
# Copyright (c) 2024 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -17,8 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
%define repo_version 0.7.12
|
%define repo_version 0.7.12
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?sle15_python_module_pythons}
|
||||||
%bcond_without python2
|
|
||||||
Name: python-opencensus-ext-threading
|
Name: python-opencensus-ext-threading
|
||||||
Version: 0.1.2
|
Version: 0.1.2
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -29,18 +28,13 @@ Source: https://github.com/census-instrumentation/opencensus-python/arch
|
|||||||
# PATCH-FIX-UPSTREAM remove-mock.patch gh#census-instrumentation/opencensus-python#1002
|
# PATCH-FIX-UPSTREAM remove-mock.patch gh#census-instrumentation/opencensus-python#1002
|
||||||
Patch0: remove-mock.patch
|
Patch0: remove-mock.patch
|
||||||
BuildRequires: %{python_module opencensus}
|
BuildRequires: %{python_module opencensus}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
%if %{with python2}
|
|
||||||
BuildRequires: python-futures
|
|
||||||
BuildRequires: python-mock
|
|
||||||
%endif
|
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-opencensus
|
Requires: python-opencensus
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%ifpython2
|
|
||||||
Requires: python-futures
|
|
||||||
%endif
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -55,10 +49,10 @@ popd
|
|||||||
touch tests/__init__.py
|
touch tests/__init__.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
%{python_expand # delete common files
|
%{python_expand # delete common files
|
||||||
rm -rf %{buildroot}%{$python_sitelib}/opencensus/__init__.*
|
rm -rf %{buildroot}%{$python_sitelib}/opencensus/__init__.*
|
||||||
@@ -75,6 +69,7 @@ rm -rf %{buildroot}%{$python_sitelib}/opencensus/ext/__pycache__
|
|||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc CHANGELOG.md README.rst
|
%doc CHANGELOG.md README.rst
|
||||||
%license ../../LICENSE
|
%license ../../LICENSE
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/opencensus/ext/threading
|
||||||
|
%{python_sitelib}/opencensus_ext_threading-%{version}*-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
2338
remove-mock.patch
2338
remove-mock.patch
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user