[packages/python-greenlet] - updated to 2.0.2

qboosh qboosh at pld-linux.org
Fri Jun 27 18:27:21 CEST 2025


commit b9012dbae0a76249bd135206364d0cbd8e72bc52
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Jun 27 18:28:41 2025 +0200

    - updated to 2.0.2

 python-greenlet-py3.8.patch | 23 -----------------------
 python-greenlet.spec        | 30 ++++++++++++++++++++----------
 2 files changed, 20 insertions(+), 33 deletions(-)
---
diff --git a/python-greenlet.spec b/python-greenlet.spec
index 1db8ca6..7113c44 100644
--- a/python-greenlet.spec
+++ b/python-greenlet.spec
@@ -1,7 +1,7 @@
 #
 # Conditional build:
 %bcond_without	python2		# CPython 2.x module
-%bcond_with	python3		# CPython 3.x module
+%bcond_with	python3		# CPython 3.x module (built from python3-greenlet.spec)
 %bcond_without	doc		# Sphinx documentation
 %bcond_without	tests		# unit tests and benchmarks (any)
 %bcond_without	tests_py2	# CPython 2.x module tests
@@ -14,14 +14,14 @@
 Summary:	Lightweight in-process concurrent programming
 Summary(pl.UTF-8):	Lekkie programowanie równoległe wewnątrz procesu
 Name:		python-%{module}
-Version:	1.1.3.post0
+# keep 2.x here for python2 support
+Version:	2.0.2
 Release:	1
 License:	MIT, PSF (Stackless Python parts)
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/greenlet/
 Source0:	https://files.pythonhosted.org/packages/source/g/greenlet/%{module}-%{version}.tar.gz
-# Source0-md5:	b3e86eb9ab0908e6e3ef542e9b94d7e1
-Patch0:		%{name}-py3.8.patch
+# Source0-md5:	e6637d59015cba7e86f2111e6aa8168b
 URL:		https://pypi.org/project/greenlet/
 BuildRequires:	rpm-build >= 4.6
 BuildRequires:	rpm-pythonprov
@@ -29,12 +29,21 @@ BuildRequires:	rpmbuild(macros) >= 1.714
 %if %{with python2}
 BuildRequires:	python-devel >= 1:2.7
 BuildRequires:	python-setuptools
+%if %{with tests}
+BuildRequires:	python-objgraph
+BuildRequires:	python-psutil
+BuildRequires:	python-pyperf
+%endif
 %endif
 %if %{with python3}
-BuildRequires:	python3-fissix
 BuildRequires:	python3-devel >= 1:3.5
 BuildRequires:	python3-setuptools
 BuildRequires:	python3-modules >= 1:3.5
+%if %{with tests}
+BuildRequires:	python3-objgraph
+BuildRequires:	python3-psutil
+BuildRequires:	python3-pyperf
+%endif
 %endif
 %if %{with doc}
 BuildRequires:	sphinx-pdg-2
@@ -119,7 +128,9 @@ Dokumentacja API modułu Pythona greenlet.
 
 %prep
 %setup -q -n greenlet-%{version}
-%patch -P 0 -p1
+
+# take too long (including timeouts)
+%{__rm} src/greenlet/tests/test_leaks.py
 
 %build
 %if %{with python2}
@@ -145,10 +156,8 @@ PYTHONPATH="$BUILDDIR" \
 %{__python3} -m unittest discover greenlet.tests
 
 # Run the upstream benchmarking suite to further exercise the code:
-mkdir -p benchmarks-3
-%{__python3} -m fissix -o benchmarks-3 -n -w --no-diffs benchmarks
 PYTHONPATH="$BUILDDIR" \
-%{__python3} benchmarks-3/chain.py
+%{__python3} benchmarks/chain.py
 %endif
 %endif
 
@@ -165,6 +174,7 @@ rm -rf $RPM_BUILD_ROOT
 %py_install
 
 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/greenlet/*.[ch]
+%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/greenlet/*.[ch]pp
 %{__rm} -r $RPM_BUILD_ROOT%{py_sitedir}/greenlet/{platform,tests}
 %py_postclean
 %endif
@@ -196,7 +206,7 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with python3}
 %files -n python3-%{module}
 %defattr(644,root,root,755)
-%doc AUTHORS CHANGES.rst LICENSE README.rst %{?with_tests:benchmarks-3}
+%doc AUTHORS CHANGES.rst LICENSE README.rst benchmarks
 %dir %{py3_sitedir}/greenlet
 %attr(755,root,root) %{py3_sitedir}/greenlet/_greenlet.cpython-*.so
 %{py3_sitedir}/greenlet/*.py
diff --git a/python-greenlet-py3.8.patch b/python-greenlet-py3.8.patch
deleted file mode 100644
index 8cb67ab..0000000
--- a/python-greenlet-py3.8.patch
+++ /dev/null
@@ -1,23 +0,0 @@
---- greenlet-0.4.15/benchmarks/chain.py.orig	2016-12-11 00:52:06.000000000 +0100
-+++ greenlet-0.4.15/benchmarks/chain.py	2020-01-01 21:06:15.218260648 +0100
-@@ -5,7 +5,10 @@
- """
- 
- import optparse
--import time
-+try:
-+    from time import perf_counter
-+except:
-+    from time import clock as perf_counter
- 
- import greenlet
- 
-@@ -34,6 +37,6 @@
-     if len(args) != 0:
-         p.error('unexpected arguments: %s' % ', '.join(args))
- 
--    start_time = time.clock()
-+    start_time = perf_counter()
-     print 'Result:', chain(options.num_greenlets)
--    print time.clock() - start_time, 'seconds'
-+    print perf_counter() - start_time, 'seconds'
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-greenlet.git/commitdiff/b9012dbae0a76249bd135206364d0cbd8e72bc52



More information about the pld-cvs-commit mailing list