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