From b86cf1a5f6c52c73a469ea73daf90fa842446640093f3344f30f13c7783c4b3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 15 May 2025 10:47:35 +0000 Subject: [PATCH] Accepting request 1277077 from home:mcalabkova:branches:devel:languages:python - Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1277077 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aioeventlet?expand=0&rev=15 --- python-aioeventlet.changes | 5 +++++ python-aioeventlet.spec | 17 +++++++---------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/python-aioeventlet.changes b/python-aioeventlet.changes index 2fc544f..109dc59 100644 --- a/python-aioeventlet.changes +++ b/python-aioeventlet.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 13 07:38:25 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Tue Jan 24 16:38:55 UTC 2023 - Daniel Garcia diff --git a/python-aioeventlet.spec b/python-aioeventlet.spec index 055d510..239121f 100644 --- a/python-aioeventlet.spec +++ b/python-aioeventlet.spec @@ -1,7 +1,7 @@ # # spec file for package python-aioeventlet # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -30,8 +30,10 @@ Patch0: pr_1.patch # PATCH-FIX-OPENSUSE py311.patch Python 3.11+ support Patch1: py311.patch BuildRequires: %{python_module eventlet} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: python-rpm-macros Requires: python-eventlet BuildArch: noarch @@ -58,19 +60,14 @@ parallel. %autosetup -p1 -n aioeventlet-%{intver} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %check -# Python 2 requires trollius which is not in devel project, -# and test setup fails on Python 3.6 as it tries to reach live DNS server -%{python_expand PYTHON_VERSION=%{$python_version_nodots} -if [[ ${PYTHON_VERSION:0:1} -eq 3 && ${PYTHON_VERSION:1:2} -gt 6 ]]; then - # Some tests in test_eventlet.py halt - $python -m pytest -k 'EventletTests or test_wrap_invalid_type or test_wrap_greenlet_dead or test_wrap_greenlet_running or test_greenlet' -fi} +# Some tests in test_eventlet.py halt +%pytest -k 'EventletTests or test_wrap_invalid_type or test_wrap_greenlet_dead or test_wrap_greenlet_running or test_greenlet' %files %{python_files} %license COPYING