Update to 24.10.1

This commit is contained in:
Orion Poplawski 2024-10-09 20:46:23 -06:00
commit 25d0d2fcf6
3 changed files with 17 additions and 7 deletions

View file

@ -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 <orion@nwra.com> - 24.10.1-1
- Update to 24.10.1
* Tue Sep 24 2024 Orion Poplawski <orion@nwra.com> - 24.2.1-3
- Add patch to fix build with Cython 3.0.10 (FTBFS rhbz#2275488)