Hello community, here is the log from the commit of package python-greenlet for openSUSE:Factory checked in at 2018-02-02 22:23:26 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-greenlet (Old) and /work/SRC/openSUSE:Factory/.python-greenlet.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-greenlet" Fri Feb 2 22:23:26 2018 rev:30 rq:572027 version:0.4.13 Changes: -------- --- /work/SRC/openSUSE:Factory/python-greenlet/python-greenlet.changes 2017-04-28 15:02:54.955275280 +0200 +++ /work/SRC/openSUSE:Factory/.python-greenlet.new/python-greenlet.changes 2018-02-02 22:23:37.782101256 +0100 @@ -1,0 +2,13 @@ +Fri Feb 2 13:34:46 UTC 2018 - [email protected] + +- Add patch to fix build on ppc64le to not clobber r2 register: + * greenlet-ppc64le.patch + +------------------------------------------------------------------- +Fri Feb 2 13:32:25 UTC 2018 - [email protected] + +- Version update to 0.4.13: + * Support for Python 3.7 + * Support for MinGW x64 + +------------------------------------------------------------------- Old: ---- greenlet-0.4.12.tar.gz New: ---- greenlet-0.4.13.tar.gz greenlet-ppc64le.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-greenlet.spec ++++++ --- /var/tmp/diff_new_pack.HzLsfx/_old 2018-02-02 22:23:38.378073436 +0100 +++ /var/tmp/diff_new_pack.HzLsfx/_new 2018-02-02 22:23:38.382073249 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-greenlet # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2010 B1 Systems GmbH, Vohburg, Germany. # # All modifications and additions to the file contributed by third parties @@ -17,23 +17,22 @@ # -%bcond_without test - %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without test Name: python-greenlet -Version: 0.4.12 +Version: 0.4.13 Release: 0 -Url: http://pypi.python.org/pypi/greenlet Summary: Lightweight in-process concurrent programming License: MIT Group: Development/Libraries/Python +Url: http://pypi.python.org/pypi/greenlet Source0: https://files.pythonhosted.org/packages/source/g/greenlet/greenlet-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: gcc-c++ -BuildRequires: fdupes -BuildRequires: python-rpm-macros +Patch0: greenlet-ppc64le.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: gcc-c++ +BuildRequires: python-rpm-macros BuildRequires: python3-Sphinx %python_subpackages @@ -54,6 +53,7 @@ %prep %setup -q -n greenlet-%{version} +%patch0 -p1 %build export CFLAGS="%{optflags} -fno-tree-dominator-opts -fno-strict-aliasing" @@ -71,13 +71,11 @@ %endif %files %{python_files} -%defattr(-,root,root) %doc AUTHORS NEWS README.rst LICENSE* %doc doc/_build/html/ %{python_sitearch}/* %files %{python_files devel} -%defattr(-,root,root,-) %doc AUTHORS LICENSE* %{_includedir}/python%{python_version}*/greenlet/ ++++++ greenlet-0.4.12.tar.gz -> greenlet-0.4.13.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/greenlet-0.4.12/AUTHORS new/greenlet-0.4.13/AUTHORS --- old/greenlet-0.4.12/AUTHORS 2016-12-11 00:52:06.000000000 +0100 +++ new/greenlet-0.4.13/AUTHORS 2018-01-29 07:12:52.000000000 +0100 @@ -22,6 +22,7 @@ * Fredrik Fornwall * Gerd Woetzel * Giel van Schijndel +* Gökhan Karabulut * Gustavo Niemeyer * Guy Rozendorn * Hye-Shik Chang diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/greenlet-0.4.12/NEWS new/greenlet-0.4.13/NEWS --- old/greenlet-0.4.12/NEWS 2017-02-01 20:46:01.000000000 +0100 +++ new/greenlet-0.4.13/NEWS 2018-01-31 22:12:21.000000000 +0100 @@ -1,3 +1,8 @@ +0.4.13 +====== +- Support for Python 3.7 +- Support for MinGW x64 + 0.4.12 ====== - Stop using trashcan api diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/greenlet-0.4.12/PKG-INFO new/greenlet-0.4.13/PKG-INFO --- old/greenlet-0.4.12/PKG-INFO 2017-02-01 20:48:54.000000000 +0100 +++ new/greenlet-0.4.13/PKG-INFO 2018-01-31 22:24:03.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: greenlet -Version: 0.4.12 +Version: 0.4.13 Summary: Lightweight in-process concurrent programming Home-page: https://github.com/python-greenlet/greenlet Author: Alexey Borzenkov @@ -83,5 +83,6 @@ Classifier: Programming Language :: Python :: 3.4 Classifier: Programming Language :: Python :: 3.5 Classifier: Programming Language :: Python :: 3.6 +Classifier: Programming Language :: Python :: 3.7 Classifier: Operating System :: OS Independent Classifier: Topic :: Software Development :: Libraries :: Python Modules diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/greenlet-0.4.12/appveyor.yml new/greenlet-0.4.13/appveyor.yml --- old/greenlet-0.4.12/appveyor.yml 2017-02-01 20:45:05.000000000 +0100 +++ new/greenlet-0.4.13/appveyor.yml 2018-01-29 07:14:13.000000000 +0100 @@ -8,14 +8,6 @@ matrix: # http://www.appveyor.com/docs/installed-software#python - - PYTHON_ROOT: "C:\\Python26" - PYTHON_ARCH: "32" - PYTHON_VERSION: "2.6.x" - - - PYTHON_ROOT: "C:\\Python26-x64" - PYTHON_ARCH: "64" - PYTHON_VERSION: "2.6.x" - - PYTHON_ROOT: "C:\\Python27" PYTHON_ARCH: "32" PYTHON_VERSION: "2.7.x" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/greenlet-0.4.12/doc/greenlet.txt new/greenlet-0.4.13/doc/greenlet.txt --- old/greenlet-0.4.12/doc/greenlet.txt 2016-12-11 00:52:06.000000000 +0100 +++ new/greenlet-0.4.13/doc/greenlet.txt 2017-12-06 19:18:41.000000000 +0100 @@ -41,7 +41,7 @@ while not line.endswith('\n'): line += read_next_char() if line == 'quit\n': - print "are you sure?" + print("are you sure?") if read_next_char() != 'y': continue # ignore the command process_command(line) @@ -124,14 +124,14 @@ from greenlet import greenlet def test1(): - print 12 + print(12) gr2.switch() - print 34 + print(34) def test2(): - print 56 + print(56) gr1.switch() - print 78 + print(78) gr1 = greenlet(test1) gr2 = greenlet(test2) @@ -199,10 +199,10 @@ def test1(x, y): z = gr2.switch(x+y) - print z + print(z) def test2(u): - print u + print(u) gr1.switch(42) gr1 = greenlet(test1) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/greenlet-0.4.12/greenlet.c new/greenlet-0.4.13/greenlet.c --- old/greenlet-0.4.12/greenlet.c 2017-02-01 20:43:08.000000000 +0100 +++ new/greenlet-0.4.13/greenlet.c 2017-12-06 19:25:34.000000000 +0100 @@ -460,9 +460,15 @@ PyThreadState* tstate = PyThreadState_GET(); current->recursion_depth = tstate->recursion_depth; current->top_frame = tstate->frame; +#if PY_VERSION_HEX >= 0x030700A3 + current->exc_type = tstate->exc_state.exc_type; + current->exc_value = tstate->exc_state.exc_value; + current->exc_traceback = tstate->exc_state.exc_traceback; +#else current->exc_type = tstate->exc_type; current->exc_value = tstate->exc_value; current->exc_traceback = tstate->exc_traceback; +#endif } err = slp_switch(); if (err < 0) { /* error */ @@ -482,11 +488,17 @@ tstate->recursion_depth = target->recursion_depth; tstate->frame = target->top_frame; target->top_frame = NULL; +#if PY_VERSION_HEX >= 0x030700A3 + tstate->exc_state.exc_type = target->exc_type; + tstate->exc_state.exc_value = target->exc_value; + tstate->exc_state.exc_traceback = target->exc_traceback; +#else tstate->exc_type = target->exc_type; - target->exc_type = NULL; tstate->exc_value = target->exc_value; - target->exc_value = NULL; tstate->exc_traceback = target->exc_traceback; +#endif + target->exc_type = NULL; + target->exc_value = NULL; target->exc_traceback = NULL; assert(ts_origin == NULL); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/greenlet-0.4.12/greenlet.h new/greenlet-0.4.13/greenlet.h --- old/greenlet-0.4.12/greenlet.h 2017-02-01 20:45:11.000000000 +0100 +++ new/greenlet-0.4.13/greenlet.h 2018-01-31 22:13:50.000000000 +0100 @@ -11,7 +11,7 @@ extern "C" { #endif -#define GREENLET_VERSION "0.4.12" +#define GREENLET_VERSION "0.4.13" typedef struct _greenlet { PyObject_HEAD diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/greenlet-0.4.12/platform/switch_x64_msvc.h new/greenlet-0.4.13/platform/switch_x64_msvc.h --- old/greenlet-0.4.12/platform/switch_x64_msvc.h 2016-12-11 00:52:06.000000000 +0100 +++ new/greenlet-0.4.13/platform/switch_x64_msvc.h 2018-01-29 07:12:31.000000000 +0100 @@ -22,7 +22,10 @@ * Initial final version after lots of iterations for i386. */ +/* Avoid alloca redefined warning on mingw64 */ +#ifndef alloca #define alloca _alloca +#endif #define STACK_REFPLUS 1 #define STACK_MAGIC 0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/greenlet-0.4.12/setup.py new/greenlet-0.4.13/setup.py --- old/greenlet-0.4.12/setup.py 2017-02-01 20:44:16.000000000 +0100 +++ new/greenlet-0.4.13/setup.py 2018-01-31 22:13:38.000000000 +0100 @@ -70,7 +70,7 @@ setup( name="greenlet", - version='0.4.12', + version='0.4.13', description='Lightweight in-process concurrent programming', long_description=readfile("README.rst"), maintainer="Alexey Borzenkov", @@ -100,6 +100,7 @@ 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', 'Operating System :: OS Independent', 'Topic :: Software Development :: Libraries :: Python Modules'], **setuptools_args) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/greenlet-0.4.12/slp_platformselect.h new/greenlet-0.4.13/slp_platformselect.h --- old/greenlet-0.4.12/slp_platformselect.h 2016-12-11 00:52:06.000000000 +0100 +++ new/greenlet-0.4.13/slp_platformselect.h 2018-01-29 07:12:31.000000000 +0100 @@ -4,7 +4,7 @@ #if defined(MS_WIN32) && !defined(MS_WIN64) && defined(_M_IX86) && defined(_MSC_VER) #include "platform/switch_x86_msvc.h" /* MS Visual Studio on X86 */ -#elif defined(MS_WIN64) && defined(_M_X64) && defined(_MSC_VER) +#elif defined(MS_WIN64) && defined(_M_X64) && defined(_MSC_VER) || defined(__MINGW64__) #include "platform/switch_x64_msvc.h" /* MS Visual Studio on X64 */ #elif defined(__GNUC__) && defined(__amd64__) && defined(__ILP32__) #include "platform/switch_x32_unix.h" /* gcc on amd64 with x32 ABI */ ++++++ greenlet-ppc64le.patch ++++++ >From d32e64abf2443ada592f6a1e5d74bee35db0f221 Mon Sep 17 00:00:00 2001 From: "Laszlo Boszormenyi (GCS)" <[email protected]> Date: Sat, 9 Sep 2017 07:57:16 +0000 Subject: [PATCH] Don't clobber 'r2' register on ppc64el It was invalid even before, now GCC 7 no longer accept this. --- platform/switch_ppc64_linux.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/switch_ppc64_linux.h b/platform/switch_ppc64_linux.h index 0f20756..cd7d748 100644 --- a/platform/switch_ppc64_linux.h +++ b/platform/switch_ppc64_linux.h @@ -56,7 +56,7 @@ #define ALTIVEC_REGS #endif -#define REGS_TO_SAVE "r2", "r14", "r15", "r16", "r17", "r18", "r19", "r20", \ +#define REGS_TO_SAVE "r14", "r15", "r16", "r17", "r18", "r19", "r20", \ "r21", "r22", "r23", "r24", "r25", "r26", "r27", "r28", "r29", "r31", \ "fr14", "fr15", "fr16", "fr17", "fr18", "fr19", "fr20", "fr21", \ "fr22", "fr23", "fr24", "fr25", "fr26", "fr27", "fr28", "fr29", \
