From 780c16d6cc84933651172bc0366d306a3cb9d2fab155a444c2c6ec365c6da06e Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Fri, 21 Apr 2023 14:57:19 +0000 Subject: [PATCH] Accepting request 1081337 from home:dirkmueller:acdc:as_python3_module SR for python stack proposal OBS-URL: https://build.opensuse.org/request/show/1081337 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-async_timeout?expand=0&rev=15 --- python-async_timeout.changes | 10 ++++++++++ python-async_timeout.spec | 10 ++++++---- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/python-async_timeout.changes b/python-async_timeout.changes index 4aed6b3..d7e61ab 100644 --- a/python-async_timeout.changes +++ b/python-async_timeout.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Fri Apr 21 12:22:20 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Thu Apr 13 22:40:07 UTC 2023 - Matej Cepl + +- Make calling of %{sle15modernpython} optional. + ------------------------------------------------------------------- Fri Mar 24 11:25:00 UTC 2023 - Daniel Garcia diff --git a/python-async_timeout.spec b/python-async_timeout.spec index 1bd2c47..5a3493a 100644 --- a/python-async_timeout.spec +++ b/python-async_timeout.spec @@ -17,6 +17,7 @@ %define skip_python2 1 +%{?sle15_python_module_pythons} Name: python-async_timeout Version: 4.0.2 Release: 0 @@ -26,9 +27,10 @@ Group: Development/Languages/Python URL: https://github.com/aio-libs/async_timeout/ Source: https://files.pythonhosted.org/packages/source/a/async-timeout/async-timeout-%{version}.tar.gz BuildRequires: %{python_module base >= 3.5.3} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest-asyncio} BuildRequires: %{python_module pytest} -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Provides: python-async-timeout = %{version} @@ -40,15 +42,15 @@ BuildArch: noarch This provides an asyncio-compatible timeout context manager. %prep -%setup -q -n async-timeout-%{version} +%autosetup -p1 -n async-timeout-%{version} # do not bother with coverage sed -i -e '/addopts/d' setup.cfg %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check