From 25d0d2fcf6f8453a2d01354b75f21aeb8b8021af Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Wed, 9 Oct 2024 20:46:23 -0600 Subject: [PATCH] Update to 24.10.1 --- .gitignore | 1 + python-gevent.spec | 21 +++++++++++++++------ sources | 2 +- 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index a40c87d..3c38af5 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,4 @@ gevent-0.13.0.tar.gz /gevent-23.7.0.tar.gz /gevent-23.9.1.tar.gz /gevent-24.2.1.tar.gz +/gevent-24.10.1.tar.gz diff --git a/python-gevent.spec b/python-gevent.spec index a6fafb5..977686b 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -3,13 +3,15 @@ %global optflags %(echo %{optflags} -I%{_includedir}/libev) Name: python-%{modname} -Version: 24.2.1 -Release: 3%{?dist} +Version: 24.10.1 +Release: 1%{?dist} Summary: A coroutine-based Python networking library License: MIT URL: http://www.gevent.org/ -Source0: %{pypi_source %{modname} %{version} tar.gz} +Source0: https://github.com/gevent/gevent/archive/%{version}/%{modname}-%{version}.tar.gz +# No pypi source for 24.10.1 yet - https://github.com/gevent/gevent/issues/2063 +#Source0: %{pypi_source %{modname} %{version} tar.gz} # avoid incompatible types error with Cython 3.0.10 # https://github.com/gevent/gevent/issues/2031 Patch0: cython3010.patch @@ -68,9 +70,12 @@ rm -r deps # go into debuginfo as normal. sed -i -e 's/include_package_data=True/include_package_data=False/' setup.py -# Force re-cythonizing the sources -rm $(grep -rl '/\* Generated by Cython') -rm src/gevent/_generated_include/* +# Force re-cythonizing the sources - missing with github tarballs +rm -f $(grep -rl '/\* Generated by Cython') +rm -f src/gevent/_generated_include/* + +# Test requires network, fails in mock/koji +mv src/gevent/tests/test__resolver_dnspython.py{,.needsnetwork} %build export GEVENTSETUP_EMBED=0 @@ -86,6 +91,7 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';' %check export PYTHONPATH=%{buildroot}%{python3_sitearch} +# test_resolution is failing - https://github.com/gevent/gevent/issues/2064 %__python3 -m gevent.tests || : cd src/gevent/tests && GEVENT_FILE=thread %__python3 -mgevent.tests test__*subprocess*.py @@ -95,6 +101,9 @@ cd src/gevent/tests && GEVENT_FILE=thread %__python3 -mgevent.tests test__*subpr %{python3_sitearch}/%{modname}* %changelog +* Thu Oct 10 2024 Orion Poplawski - 24.10.1-1 +- Update to 24.10.1 + * Tue Sep 24 2024 Orion Poplawski - 24.2.1-3 - Add patch to fix build with Cython 3.0.10 (FTBFS rhbz#2275488) diff --git a/sources b/sources index fcd8a9b..6899ee4 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (gevent-24.2.1.tar.gz) = 4fcef5295fa332c560dc96a0c1643bb03ea25f10a7f386f7779bc1a79d209b0017b18c56f28ff3f9ae6b2b8836d572cd5790ea021e10e016d2148be741621bed +SHA512 (gevent-24.10.1.tar.gz) = 46f72091b6e8a8b86fd83031401b88878f72e549f81eff429f6f95f7dc8061d8f2b1ea82c73c402523babf4e5c4d9f8881ef36d83ab6278322ce03e7f59914f3