Compare commits
10 Commits
Author | SHA1 | Date |
---|---|---|
|
72bd1221ed | |
|
ba388506e7 | |
|
a9feed2c52 | |
|
6077484176 | |
|
9f3c5bb271 | |
|
b6d23366bb | |
|
11bdf825fb | |
|
1512550038 | |
|
b593277f97 | |
|
d38aab9468 |
|
@ -2,10 +2,3 @@ greenlet-0.3.1.tar.gz
|
||||||
/greenlet-0.4.0.zip
|
/greenlet-0.4.0.zip
|
||||||
/greenlet-0.4.1.zip
|
/greenlet-0.4.1.zip
|
||||||
/greenlet-0.4.2.zip
|
/greenlet-0.4.2.zip
|
||||||
/greenlet-0.4.5.zip
|
|
||||||
/greenlet-0.4.7.zip
|
|
||||||
/greenlet-0.4.9.zip
|
|
||||||
/0.4.11.tar.gz
|
|
||||||
/greenlet-0.4.12.tar.gz
|
|
||||||
/greenlet-0.4.13.tar.gz
|
|
||||||
/greenlet-0.4.14.tar.gz
|
|
||||||
|
|
|
@ -0,0 +1,34 @@
|
||||||
|
wget https://github.com/python-greenlet/greenlet/commit/2f81f5d.patch
|
||||||
|
|
||||||
|
From 2f81f5de275c8dad13c5497c540ab96952a24071 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Alexey Borzenkov <snaury@gmail.com>
|
||||||
|
Date: Mon, 28 Feb 2011 00:48:00 +0300
|
||||||
|
Subject: [PATCH] Make GreenletExit based on BaseException on Python >= 2.5
|
||||||
|
|
||||||
|
This way it is more similar to SystemExit and becomes a little
|
||||||
|
harder to accidentally catch with "except Exception:" statement.
|
||||||
|
---
|
||||||
|
greenlet.c | 5 +++++
|
||||||
|
1 file changed, 5 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/greenlet.c b/greenlet.c
|
||||||
|
index 25358ce..973a12c 100755
|
||||||
|
--- a/greenlet.c
|
||||||
|
+++ b/greenlet.c
|
||||||
|
@@ -1266,8 +1266,13 @@ void initgreenlet(void)
|
||||||
|
{
|
||||||
|
INITERROR;
|
||||||
|
}
|
||||||
|
+#if PY_MAJOR_VERSION >= 3 || (PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION >= 5)
|
||||||
|
+ PyExc_GreenletExit = PyErr_NewException("greenlet.GreenletExit",
|
||||||
|
+ PyExc_BaseException, NULL);
|
||||||
|
+#else
|
||||||
|
PyExc_GreenletExit = PyErr_NewException("greenlet.GreenletExit",
|
||||||
|
NULL, NULL);
|
||||||
|
+#endif
|
||||||
|
if (PyExc_GreenletExit == NULL)
|
||||||
|
{
|
||||||
|
INITERROR;
|
||||||
|
--
|
||||||
|
1.7.10
|
||||||
|
|
|
@ -1,48 +0,0 @@
|
||||||
From d05b62bb75e6a3e217435a1fe0f15a53e692898c Mon Sep 17 00:00:00 2001
|
|
||||||
From: Victor Stinner <vstinner@python.org>
|
|
||||||
Date: Wed, 18 Mar 2020 15:09:33 +0100
|
|
||||||
Subject: [PATCH] Port to Python 3.9
|
|
||||||
|
|
||||||
On Python 3.9, define _Py_DEC_REFTOTAL which has been removed by:
|
|
||||||
https://github.com/python/cpython/commit/49932fec62c616ec88da52642339d83ae719e924
|
|
||||||
|
|
||||||
Replace also PyEval_CallObjectWithKeywords() with PyObject_Call(),
|
|
||||||
since PyEval_CallObjectWithKeywords() has been deprecated in
|
|
||||||
Python 3.9 and PyObject_Call() has the same behavior. The only
|
|
||||||
difference is that PyEval_CallObjectWithKeywords() can be called with
|
|
||||||
args=NULL, but g_initialstub() ensures that args is not NULL.
|
|
||||||
---
|
|
||||||
greenlet.c | 13 +++++++++++--
|
|
||||||
1 file changed, 11 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/greenlet.c b/greenlet.c
|
|
||||||
index ec738b9..d37fc97 100644
|
|
||||||
--- a/greenlet.c
|
|
||||||
+++ b/greenlet.c
|
|
||||||
@@ -109,6 +109,16 @@ extern PyTypeObject PyGreenlet_Type;
|
|
||||||
#define GREENLET_USE_TRACING 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
+#ifndef _Py_DEC_REFTOTAL
|
|
||||||
+ /* _Py_DEC_REFTOTAL macro has been removed from Python 3.9 by:
|
|
||||||
+ https://github.com/python/cpython/commit/49932fec62c616ec88da52642339d83ae719e924 */
|
|
||||||
+# ifdef Py_REF_DEBUG
|
|
||||||
+# define _Py_DEC_REFTOTAL _Py_RefTotal--
|
|
||||||
+# else
|
|
||||||
+# define _Py_DEC_REFTOTAL
|
|
||||||
+# endif
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
/* Weak reference to the switching-to greenlet during the slp switch */
|
|
||||||
static PyGreenlet* volatile ts_target = NULL;
|
|
||||||
/* Strong reference to the switching from greenlet after the switch */
|
|
||||||
@@ -820,8 +830,7 @@ static int GREENLET_NOINLINE(g_initialstub)(void* mark)
|
|
||||||
result = NULL;
|
|
||||||
} else {
|
|
||||||
/* call g.run(*args, **kwargs) */
|
|
||||||
- result = PyEval_CallObjectWithKeywords(
|
|
||||||
- run, args, kwargs);
|
|
||||||
+ result = PyObject_Call(run, args, kwargs);
|
|
||||||
Py_DECREF(args);
|
|
||||||
Py_XDECREF(kwargs);
|
|
||||||
}
|
|
|
@ -1,172 +1,77 @@
|
||||||
%global modname greenlet
|
# sitelib for noarch packages, sitearch for others (remove the unneeded one)
|
||||||
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
||||||
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
||||||
|
|
||||||
Name: python-%{modname}
|
Name: python-greenlet
|
||||||
Version: 0.4.14
|
Version: 0.4.2
|
||||||
Release: 8%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Lightweight in-process concurrent programming
|
Summary: Lightweight in-process concurrent programming
|
||||||
|
Group: Development/Libraries
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/python-greenlet/greenlet
|
URL: http://pypi.python.org/pypi/greenlet
|
||||||
Source0: %{url}/archive/%{version}/%{modname}-%{version}.tar.gz
|
Source0: http://pypi.python.org/packages/source/g/greenlet/greenlet-%{version}.zip
|
||||||
BuildRequires: gcc-c++
|
|
||||||
Patch1: %{url}/commit/c644ca6823994b958e004b3e00b587723181b58e.patch
|
|
||||||
|
|
||||||
%global _description \
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
The greenlet package is a spin-off of Stackless, a version of CPython\
|
|
||||||
that supports micro-threads called "tasklets". Tasklets run\
|
BuildRequires: python2-devel
|
||||||
pseudo-concurrently (typically in a single or a few OS-level threads)\
|
BuildRequires: python-setuptools
|
||||||
|
|
||||||
|
%description
|
||||||
|
The greenlet package is a spin-off of Stackless, a version of CPython
|
||||||
|
that supports micro-threads called "tasklets". Tasklets run
|
||||||
|
pseudo-concurrently (typically in a single or a few OS-level threads)
|
||||||
and are synchronized with data exchanges on "channels".
|
and are synchronized with data exchanges on "channels".
|
||||||
|
|
||||||
%description %{_description}
|
%package devel
|
||||||
|
Summary: C development headers for python-greenlet
|
||||||
|
Group: Development/Libraries
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
|
||||||
%package -n python3-%{modname}
|
%description devel
|
||||||
Summary: %{summary}
|
This package contains header files required for C modules development.
|
||||||
%{?python_provide:%python_provide python3-%{modname}}
|
|
||||||
BuildRequires: python3-devel
|
|
||||||
BuildRequires: python3-setuptools
|
|
||||||
|
|
||||||
%description -n python3-%{modname} %{_description}
|
|
||||||
|
|
||||||
Python 3 version.
|
|
||||||
|
|
||||||
%package -n python3-%{modname}-devel
|
|
||||||
Summary: C development headers for python3-%{modname}
|
|
||||||
%{?python_provide:%python_provide python3-%{modname}-devel}
|
|
||||||
Requires: python3-%{modname}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
||||||
|
|
||||||
%description -n python3-%{modname}-devel
|
|
||||||
%{summary}.
|
|
||||||
|
|
||||||
Python 3 version.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{modname}-%{version} -p1
|
%setup -q -n greenlet-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
|
||||||
|
chmod 644 benchmarks/*.py
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py3_install
|
rm -rf %{buildroot}
|
||||||
|
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
|
# FIXME!!
|
||||||
|
# The checks segfault on ppc. So this arch
|
||||||
|
# is essentially not supported until this is fixed
|
||||||
|
%ifnarch ppc s390 s390x
|
||||||
%check
|
%check
|
||||||
%{__python3} setup.py test
|
# Run the upstream test suite:
|
||||||
|
%{__python} setup.py test
|
||||||
|
|
||||||
%files -n python3-%{modname}
|
# Run the upstream benchmarking suite to further exercise the code:
|
||||||
%license LICENSE LICENSE.PSF
|
PYTHONPATH=$(pwd) %{__python} benchmarks/chain.py
|
||||||
%doc AUTHORS NEWS README.rst
|
%endif
|
||||||
%{python3_sitearch}/%{modname}-*.egg-info
|
|
||||||
%{python3_sitearch}/%{modname}*.so
|
|
||||||
|
|
||||||
%files -n python3-greenlet-devel
|
%files
|
||||||
%{_includedir}/python%{python3_version}*/%{modname}/
|
%defattr(-,root,root,-)
|
||||||
|
%doc doc/greenlet.txt README.rst benchmarks AUTHORS NEWS
|
||||||
|
%{python_sitearch}/greenlet.so
|
||||||
|
%{python_sitearch}/greenlet*.egg-info
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_includedir}/python*/greenlet
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 0.4.14-8
|
|
||||||
- Rebuilt for Python 3.9
|
|
||||||
|
|
||||||
* Thu May 21 2020 Miro Hrončok <mhroncok@redhat.com> - 0.4.14-7
|
|
||||||
- Fix Python 3.9 build
|
|
||||||
|
|
||||||
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.14-6
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Sep 26 2019 Miro Hrončok <mhroncok@redhat.com> - 0.4.14-5
|
|
||||||
- Subpackages python2-greenlet, python2-greenlet-devel have been removed
|
|
||||||
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
||||||
|
|
||||||
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 0.4.14-4
|
|
||||||
- Rebuilt for Python 3.8
|
|
||||||
|
|
||||||
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.14-3
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
||||||
|
|
||||||
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.14-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
||||||
|
|
||||||
* Wed Jul 18 2018 Kevin Fenzi <kevin@scrye.com> - 0.4.14-1
|
|
||||||
- Update to 0.4.14.
|
|
||||||
- Drop upstreamed/no longer needed patches.
|
|
||||||
|
|
||||||
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.13-5
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue Jul 03 2018 Miro Hrončok <mhroncok@redhat.com> - 0.4.13-4
|
|
||||||
- Add fix for Python 3.7
|
|
||||||
|
|
||||||
* Sat Jun 16 2018 Miro Hrončok <mhroncok@redhat.com> - 0.4.13-3
|
|
||||||
- Rebuilt for Python 3.7
|
|
||||||
|
|
||||||
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.13-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
||||||
|
|
||||||
* Fri Feb 02 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.4.13-1
|
|
||||||
- Update to 0.4.13
|
|
||||||
|
|
||||||
* Fri Jan 12 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.4.12-1
|
|
||||||
- Update to 0.4.12
|
|
||||||
|
|
||||||
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.11-5
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.11-4
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
||||||
|
|
||||||
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.11-3
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue Dec 20 2016 Miro Hrončok <mhroncok@redhat.com> - 0.4.11-2
|
|
||||||
- Rebuild for Python 3.6
|
|
||||||
|
|
||||||
* Sun Dec 11 2016 Kevin Fenzi <kevin@scrye.com> - 0.4.11-1
|
|
||||||
- Update to 0.4.11. Fixes bug #1403514
|
|
||||||
|
|
||||||
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.9-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
||||||
|
|
||||||
* Sun Oct 25 2015 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.4.9-1
|
|
||||||
- Update to 0.4.9
|
|
||||||
- Use %license macro
|
|
||||||
- Follow new RPM Packaging guidelines
|
|
||||||
- Cleanups in spec
|
|
||||||
|
|
||||||
* Fri Aug 21 2015 Kevin Fenzi <kevin@scrye.com> 0.4.7-2
|
|
||||||
- Re-enable tests on secondary arches. Fixes #1252899
|
|
||||||
- Applied patch to build on ppc64le. Fixes #1252900
|
|
||||||
|
|
||||||
* Fri Jun 26 2015 Kevin Fenzi <kevin@scrye.com> 0.4.7-1
|
|
||||||
- Update to 0.4.7. Fixes bug #1235896
|
|
||||||
|
|
||||||
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.5-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
||||||
|
|
||||||
* Sun Mar 29 2015 Terje Røsten <terje.rosten@ntnu.no> - 0.4.5-1
|
|
||||||
- 0.4.5
|
|
||||||
- Add python3 subpackage
|
|
||||||
- Ship license files
|
|
||||||
- Some spec clean ups
|
|
||||||
- Update fixes FTBFS issue (bz#1106779)
|
|
||||||
- Add comment about issues on ppc64, s390 & s390x
|
|
||||||
|
|
||||||
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.2-3
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
||||||
|
|
||||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.2-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Jan 23 2014 Orion Poplawski <orion@cora.nwra.com> 0.4.2-1
|
* Thu Jan 23 2014 Orion Poplawski <orion@cora.nwra.com> 0.4.2-1
|
||||||
- Update to 0.4.2
|
- Update to 0.4.2
|
||||||
|
|
||||||
* Mon Aug 05 2013 Kevin Fenzi <kevin@scrye.com> 0.4.1-1
|
* Fri Jan 18 2013 Pádraig Brady <P@draigBrady.com> - 0.3.1-12
|
||||||
- Update to 0.4.1
|
- Fix base exception type thrown
|
||||||
- Fix FTBFS bug #993134
|
|
||||||
|
|
||||||
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-3
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
||||||
|
|
||||||
* Fri Jan 18 2013 Pádraig Brady <P@draigBrady.com> - 0.4.0-1
|
|
||||||
- Update to 0.4.0
|
|
||||||
|
|
||||||
* Thu Oct 11 2012 Pádraig Brady <P@draigBrady.com> - 0.3.1-11
|
* Thu Oct 11 2012 Pádraig Brady <P@draigBrady.com> - 0.3.1-11
|
||||||
- Add support for ppc64
|
- Add support for ppc64
|
||||||
|
|
Loading…
Reference in New Issue