From 7c01b6e534254354e1c86f50602192ab8459864c0d35e6e325eaf650df8a9b61 Mon Sep 17 00:00:00 2001 From: Todd R Date: Wed, 26 Oct 2016 03:52:21 +0000 Subject: [PATCH 01/12] Accepting request 437366 from home:TheBlackCat:branches:devel:languages:python update to version 0.25 OBS-URL: https://build.opensuse.org/request/show/437366 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cython?expand=0&rev=68 --- Cython-0.23.4.tar.gz | 3 - Cython-0.25.tar.gz | 3 + python-Cython-c++11.patch | 11 ---- python-Cython.changes | 130 ++++++++++++++++++++++++++++++++++++++ python-Cython.spec | 8 +-- 5 files changed, 136 insertions(+), 19 deletions(-) delete mode 100644 Cython-0.23.4.tar.gz create mode 100644 Cython-0.25.tar.gz delete mode 100644 python-Cython-c++11.patch diff --git a/Cython-0.23.4.tar.gz b/Cython-0.23.4.tar.gz deleted file mode 100644 index e7e4b38..0000000 --- a/Cython-0.23.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fec42fecee35d6cc02887f1eef4e4952c97402ed2800bfe41bbd9ed1a0730d8e -size 1628326 diff --git a/Cython-0.25.tar.gz b/Cython-0.25.tar.gz new file mode 100644 index 0000000..51332c0 --- /dev/null +++ b/Cython-0.25.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c651eeec6bdcb57de59527e8765c9d2c4970c56bf96731893df66dda17aba46b +size 1701330 diff --git a/python-Cython-c++11.patch b/python-Cython-c++11.patch deleted file mode 100644 index 42f61da..0000000 --- a/python-Cython-c++11.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- Cython/Compiler/PyrexTypes.py.orig 2016-01-28 12:06:29.060198431 +0000 -+++ Cython/Compiler/PyrexTypes.py 2016-01-28 12:07:24.296842892 +0000 -@@ -1930,7 +1930,7 @@ - #define __Pyx_CIMAG(z) ((z).imag) - #endif - --#if (defined(_WIN32) || defined(__clang__)) && defined(__cplusplus) && CYTHON_CCOMPLEX -+#if defined(__cplusplus) && (defined(_WIN32) || defined(__clang__) || __cplusplus >= 201103L) && CYTHON_CCOMPLEX - #define __Pyx_SET_CREAL(z,x) ((z).real(x)) - #define __Pyx_SET_CIMAG(z,y) ((z).imag(y)) - #else diff --git a/python-Cython.changes b/python-Cython.changes index 83c5652..2f187db 100644 --- a/python-Cython.changes +++ b/python-Cython.changes @@ -1,3 +1,133 @@ +------------------------------------------------------------------- +Wed Oct 26 01:36:12 UTC 2016 - toddrme2178@gmail.com + +- update to version 0.25: + + Features added + * def/cpdef methods of cdef classes benefit from Cython's internal function + implementation, which enables introspection and line profiling for them. + Implementation sponsored by Turbostream (www.turbostream-cfd.com). + * The distutils extension ``Cython.Distutils.build_ext`` has now been updated + to use cythonize which properly handles dependencies. The old extension can + still be found in ``Cython.Distutils.old_build_ext`` and is now deprecated. + * Calls to Python functions are faster, following the recent "FastCall" + optimisations that Victor Stinner implemented for CPython 3.6. + See https://bugs.python.org/issue27128 and related issues. + * The new METH_FASTCALL calling convention for PyCFunctions is supported + in CPython 3.6. See https://bugs.python.org/issue27810 + * C++ classes can now have typedef members. STL containers updated with + value_type. + * Support for bazel using a the pyx_library rule in //Tools:rules.bzl. + * Initial support for using Cython modules in Pyston. Patch by Daetalus. + * Dynamic Python attributes are allowed on cdef classes if an attribute + ``cdef dict __dict__`` is declared in the class. Patch by empyrical. + * Cython implemented C++ classes can make direct calls to base class methods. + Patch by empyrical. + * New directive ``cython.no_gc`` to fully disable GC for a cdef class. + Patch by Claudio Freire. + * Buffer variables are no longer excluded from ``locals()``. + Patch by da-woods. + * Building f-strings is faster, especially when formatting C integers. + * for-loop iteration over "std::string". + * ``libc/math.pxd`` provides ``e`` and ``pi`` as alias constants to simplify + usage as a drop-in replacement for Python's math module. + * Speed up cython.inline(). + * Binary lshift operations with small constant Python integers are faster. + * Some integer operations on Python long objects are faster in Python 2.7. + * Support for the C++ ``typeid`` operator. + + Significant Bugs fixed + * Division of complex numbers avoids overflow by using Smith's method. + * Some function signatures in ``libc.math`` and ``numpy.pxd`` were incorrect. + Pach by Michael Seifert. + + Other changes + * The "%%cython" IPython/jupyter magic now defaults to the language level of + the current jupyter kernel. The language level can be set explicitly with + "%%cython -2" or "%%cython -3". +- update to version 0.24.1: + * IPython cell magic was lacking a good way to enable Python 3 code + semantics. It can now be used as "%%cython -3". + * Follow a recent change in PEP 492 and CPython 3.5.1 that now + requires the __aiter__() method of asynchronous iterators to be a + simple def method instead of an async def method. + * Coroutines and generators were lacking the __module__ special + attribute. + * C++ std::complex values failed to auto-convert from and to Python + complex objects. + * Namespaced C++ types could not be used as memory view types due to + lack of name mangling. Patch by Ivan Smirnov. + * Assignments between identical C++ types that were declared with + differently typedefed template types could fail. + * Rebuilds could fail to evaluate dependency timestamps in C++ + mode. Patch by Ian Henriksen. + * Macros defined in the distutils compiler option do not require + values anymore. Patch by Ian Henriksen. + * Minor fixes for MSVC, Cygwin and PyPy. +- specfile: + * changed to https for source url + * updated source url to files.pythonhosted.org +- update to version 0.24: + * Features added + + PEP 498: Literal String Formatting (f-strings). Original patch + by Jelle Zijlstra. https://www.python.org/dev/peps/pep-0498/ + + PEP 515: Underscores as visual separators in number + literals. https://www.python.org/dev/peps/pep-0515/ + + Parser was adapted to some minor syntax changes in Py3.6, + e.g. https://bugs.python.org/issue9232 + + The embedded C code comments that show the original source code + can be discarded with the new directive + emit_code_comments=False. + + Cpdef enums are now first-class iterable, callable types in + Python. + + Ctuples can now be declared in pure Python code. + + Posix declarations for DLL loading and stdio extensions were + added. Patch by Lars Buitinck. + + The Py2-only builtins unicode(), xrange(), reduce() and long are + now also available in compile time DEF expressions when + compiling with Py3. + + Exception type tests have slightly lower overhead. This fixes + ticket 868. + + @property syntax fully supported in cdef classes, old syntax + deprecated. + + C++ classes can now be declared with default template + parameters. + * Bugs fixed + + C++ exceptions raised by overloaded C++ operators were not + always handled. Patch by Ian Henriksen. + + C string literals were previously always stored as non-const + global variables in the module. They are now stored as global + constants when possible, and otherwise as non-const C string + literals in the generated code that uses them. This improves + compatibility with strict C compiler options and prevents + non-const strings literals with the same content from being + incorrectly merged. + + Compile time evaluated str expressions (DEF) now behave in a + more useful way by turning into Unicode strings when compiling + under Python 3. This allows using them as intermediate values in + expressions. Previously, they always evaluated to bytes objects. + + isinf() declarations in libc/math.pxd and numpy/math.pxd now + reflect the actual tristate int return value instead of using + bint. + + Literal assignments to ctuples avoid Python tuple round-trips in + some more corner cases. + + Iteration over dict(...).items() failed to get optimised when + dict arguments included keyword arguments. + + cProfile now correctly profiles cpdef functions and methods. +- update to version 0.23.5: + * Compile errors and warnings in integer type conversion code. This + fixes ticket 877. Patches by Christian Neukirchen, Nikolaus Rath, + Ian Henriksen. + * Reference leak when "*args" argument was reassigned in closures. + * Truth-testing Unicode strings could waste time and memory in + Py3.3+. + * Return values of async functions could be ignored and replaced by + None. + * Compiler crash in CPython 3.6. + * Fix prange() to behave identically to range(). The end condition + was miscalculated when the range was not exactly divisible by the + step. + * Optimised all(genexpr)/any(genexpr) calls could warn about unused + code. This fixes ticket 876. +- Remove unneeded python-Cython-c++11.patch + ------------------------------------------------------------------- Mon Feb 1 10:30:06 UTC 2016 - toddrme2178@gmail.com diff --git a/python-Cython.spec b/python-Cython.spec index a0744c8..849e7d4 100644 --- a/python-Cython.spec +++ b/python-Cython.spec @@ -17,7 +17,7 @@ Name: python-Cython -Version: 0.23.4 +Version: 0.25 Release: 0 Url: http://www.cython.org Summary: The Cython compiler for writing C extensions for the Python language @@ -25,7 +25,6 @@ License: Apache-2.0 Group: Development/Languages/Python Source: http://pypi.python.org/packages/source/C/Cython/Cython-%{version}.tar.gz Source1: python-Cython-rpmlintrc -Patch1: python-Cython-c++11.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: fdupes BuildRequires: gcc-c++ @@ -58,7 +57,6 @@ code. %prep %setup -q -n Cython-%{version} -%patch1 # Fix non-executable scripts sed -i "s|^#!.*||" Cython/Debugger/{libpython,Cygdb}.py cython.py # Fix EOL encoding @@ -75,8 +73,6 @@ mkdir -p %{buildroot}%{_sysconfdir}/alternatives for p in cython cythonize cygdb ; do mv %{buildroot}%{_bindir}/$p %{buildroot}%{_bindir}/$p-%{py_ver} ln -s -f %{_sysconfdir}/alternatives/$p %{buildroot}%{_bindir}/$p - # create a dummy target for /etc/alternatives/$p - touch %{buildroot}%{_sysconfdir}/alternatives/$p done %fdupes -s %{buildroot}%{python_sitearch} %{buildroot}%{_docdir} @@ -100,7 +96,9 @@ sed -i.SLES11.SP4.bak -e 's/const char/char/' ./tests/run/cpdef_extern_func.pyx #mv ./tests/run/cpdef_extern_func.pyx ./tests/run/cpdef_extern_func.pyx.TNT.txt #sleep 60 %endif +%ifarch x86_64 python runtests.py -vv +%endif %files %defattr(-,root,root,-) From eb5cea46bacf919275156dc2ca67b4541d989521f84a91f9915552575982846f Mon Sep 17 00:00:00 2001 From: Todd R Date: Wed, 26 Oct 2016 14:55:40 +0000 Subject: [PATCH 02/12] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cython?expand=0&rev=69 --- python-Cython.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-Cython.spec b/python-Cython.spec index 849e7d4..f295124 100644 --- a/python-Cython.spec +++ b/python-Cython.spec @@ -23,7 +23,7 @@ Url: http://www.cython.org Summary: The Cython compiler for writing C extensions for the Python language License: Apache-2.0 Group: Development/Languages/Python -Source: http://pypi.python.org/packages/source/C/Cython/Cython-%{version}.tar.gz +Source: https://files.pythonhosted.org/packages/source/C/Cython/Cython-%{version}.tar.gz Source1: python-Cython-rpmlintrc BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: fdupes From 34fb6d92845aa2eb26a9058b507fddbdd690a8aebb4567f02af1cbea9bcc9816 Mon Sep 17 00:00:00 2001 From: Todd R Date: Wed, 26 Oct 2016 14:55:56 +0000 Subject: [PATCH 03/12] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cython?expand=0&rev=70 --- python-Cython.changes | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python-Cython.changes b/python-Cython.changes index 2f187db..4538106 100644 --- a/python-Cython.changes +++ b/python-Cython.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Oct 26 14:55:49 UTC 2016 - toddrme2178@gmail.com + +- Fix source URL. + ------------------------------------------------------------------- Wed Oct 26 01:36:12 UTC 2016 - toddrme2178@gmail.com From ecd2f532986a379def9ce6186d134dc6f14c2d14408ad0b7e372eadfb0814535 Mon Sep 17 00:00:00 2001 From: Todd R Date: Fri, 28 Oct 2016 12:41:38 +0000 Subject: [PATCH 04/12] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cython?expand=0&rev=71 --- Cython-0.25.1.tar.gz | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 Cython-0.25.1.tar.gz diff --git a/Cython-0.25.1.tar.gz b/Cython-0.25.1.tar.gz new file mode 100644 index 0000000..85f084a --- /dev/null +++ b/Cython-0.25.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e0941455769335ec5afb17dee36dc3833b7edc2ae20a8ed5806c58215e4b6669 +size 1701919 From 521fcba4f13ab88129d2ba0324286b17634e3e8db51d516452b0da16e6fecb2e Mon Sep 17 00:00:00 2001 From: Todd R Date: Fri, 28 Oct 2016 12:41:46 +0000 Subject: [PATCH 05/12] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cython?expand=0&rev=72 --- Cython-0.25.tar.gz | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 Cython-0.25.tar.gz diff --git a/Cython-0.25.tar.gz b/Cython-0.25.tar.gz deleted file mode 100644 index 51332c0..0000000 --- a/Cython-0.25.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c651eeec6bdcb57de59527e8765c9d2c4970c56bf96731893df66dda17aba46b -size 1701330 From 146da5fdd71f258bc791ab3783abfd2d0636d31ab1d2fe2eb4c13874bc650d68 Mon Sep 17 00:00:00 2001 From: Todd R Date: Fri, 28 Oct 2016 12:42:02 +0000 Subject: [PATCH 06/12] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cython?expand=0&rev=73 --- python-Cython.changes | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/python-Cython.changes b/python-Cython.changes index 4538106..78c58e5 100644 --- a/python-Cython.changes +++ b/python-Cython.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Fri Oct 28 12:40:24 UTC 2016 - toddrme2178@gmail.com + +- Update to version 0.25.1 + + Bugs fixed + * Fixes a bug with ``isinstance(o, Exception)`` (Github issue #1496). + * Fixes bug with ``cython.view.array`` missing utility code in some cases + (Github issue #1502). + + Other changes + * The distutils extension ``Cython.Distutils.build_ext`` has been reverted, + temporarily, to be ``old_build_ext`` to give projects time to migrate. + The new build_ext is available as ``new_build_ext``. + ------------------------------------------------------------------- Wed Oct 26 14:55:49 UTC 2016 - toddrme2178@gmail.com From 9ba2c48f9af22aca6dbe441f35c0e158fba2cb11e8cb37e9b032447cb98e23ea Mon Sep 17 00:00:00 2001 From: Todd R Date: Fri, 28 Oct 2016 12:42:09 +0000 Subject: [PATCH 07/12] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cython?expand=0&rev=74 --- python-Cython.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-Cython.spec b/python-Cython.spec index f295124..7f8aee1 100644 --- a/python-Cython.spec +++ b/python-Cython.spec @@ -17,7 +17,7 @@ Name: python-Cython -Version: 0.25 +Version: 0.25.1 Release: 0 Url: http://www.cython.org Summary: The Cython compiler for writing C extensions for the Python language From e98449099b10540c588a2108fd8a0476b484c7d0eb1d435ce3d32b22ada51dff Mon Sep 17 00:00:00 2001 From: Todd R Date: Fri, 28 Oct 2016 12:43:58 +0000 Subject: [PATCH 08/12] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cython?expand=0&rev=75 --- Cython-0.25.tar.gz | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 Cython-0.25.tar.gz diff --git a/Cython-0.25.tar.gz b/Cython-0.25.tar.gz new file mode 100644 index 0000000..51332c0 --- /dev/null +++ b/Cython-0.25.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c651eeec6bdcb57de59527e8765c9d2c4970c56bf96731893df66dda17aba46b +size 1701330 From 8a5f6adc1080d067087f9850a400aa7964074192bcd1e307b53979e1e7b8ecb9 Mon Sep 17 00:00:00 2001 From: Todd R Date: Fri, 28 Oct 2016 12:44:04 +0000 Subject: [PATCH 09/12] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cython?expand=0&rev=76 --- Cython-0.25.1.tar.gz | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 Cython-0.25.1.tar.gz diff --git a/Cython-0.25.1.tar.gz b/Cython-0.25.1.tar.gz deleted file mode 100644 index 85f084a..0000000 --- a/Cython-0.25.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e0941455769335ec5afb17dee36dc3833b7edc2ae20a8ed5806c58215e4b6669 -size 1701919 From 3aba650e1ec7ca6b31250500787646991caf899e21b847bd4659cdcb044a0127 Mon Sep 17 00:00:00 2001 From: Todd R Date: Fri, 28 Oct 2016 12:44:13 +0000 Subject: [PATCH 10/12] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cython?expand=0&rev=77 --- python-Cython.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-Cython.spec b/python-Cython.spec index 7f8aee1..f295124 100644 --- a/python-Cython.spec +++ b/python-Cython.spec @@ -17,7 +17,7 @@ Name: python-Cython -Version: 0.25.1 +Version: 0.25 Release: 0 Url: http://www.cython.org Summary: The Cython compiler for writing C extensions for the Python language From 5a56a41baa3c2286a66b1796b563a0c7a5133f87cc5904992a6c9de01f187fe6 Mon Sep 17 00:00:00 2001 From: Todd R Date: Fri, 28 Oct 2016 12:44:21 +0000 Subject: [PATCH 11/12] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cython?expand=0&rev=78 --- python-Cython.changes | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/python-Cython.changes b/python-Cython.changes index 78c58e5..4538106 100644 --- a/python-Cython.changes +++ b/python-Cython.changes @@ -1,16 +1,3 @@ -------------------------------------------------------------------- -Fri Oct 28 12:40:24 UTC 2016 - toddrme2178@gmail.com - -- Update to version 0.25.1 - + Bugs fixed - * Fixes a bug with ``isinstance(o, Exception)`` (Github issue #1496). - * Fixes bug with ``cython.view.array`` missing utility code in some cases - (Github issue #1502). - + Other changes - * The distutils extension ``Cython.Distutils.build_ext`` has been reverted, - temporarily, to be ``old_build_ext`` to give projects time to migrate. - The new build_ext is available as ``new_build_ext``. - ------------------------------------------------------------------- Wed Oct 26 14:55:49 UTC 2016 - toddrme2178@gmail.com From 40181cd7caa107409bf26afa16a82ef7863039cba43565007f889923a7646c99 Mon Sep 17 00:00:00 2001 From: Todd R Date: Fri, 28 Oct 2016 12:50:21 +0000 Subject: [PATCH 12/12] Accepting request 437639 from home:TheBlackCat:branches:devel:languages:python Update to version 0.25.1 Fixes build errors in other packages that resulted from 0.25. OBS-URL: https://build.opensuse.org/request/show/437639 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cython?expand=0&rev=79 --- Cython-0.25.1.tar.gz | 3 +++ Cython-0.25.tar.gz | 3 --- python-Cython.changes | 13 +++++++++++++ python-Cython.spec | 2 +- 4 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 Cython-0.25.1.tar.gz delete mode 100644 Cython-0.25.tar.gz diff --git a/Cython-0.25.1.tar.gz b/Cython-0.25.1.tar.gz new file mode 100644 index 0000000..85f084a --- /dev/null +++ b/Cython-0.25.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e0941455769335ec5afb17dee36dc3833b7edc2ae20a8ed5806c58215e4b6669 +size 1701919 diff --git a/Cython-0.25.tar.gz b/Cython-0.25.tar.gz deleted file mode 100644 index 51332c0..0000000 --- a/Cython-0.25.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c651eeec6bdcb57de59527e8765c9d2c4970c56bf96731893df66dda17aba46b -size 1701330 diff --git a/python-Cython.changes b/python-Cython.changes index 4538106..78c58e5 100644 --- a/python-Cython.changes +++ b/python-Cython.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Fri Oct 28 12:40:24 UTC 2016 - toddrme2178@gmail.com + +- Update to version 0.25.1 + + Bugs fixed + * Fixes a bug with ``isinstance(o, Exception)`` (Github issue #1496). + * Fixes bug with ``cython.view.array`` missing utility code in some cases + (Github issue #1502). + + Other changes + * The distutils extension ``Cython.Distutils.build_ext`` has been reverted, + temporarily, to be ``old_build_ext`` to give projects time to migrate. + The new build_ext is available as ``new_build_ext``. + ------------------------------------------------------------------- Wed Oct 26 14:55:49 UTC 2016 - toddrme2178@gmail.com diff --git a/python-Cython.spec b/python-Cython.spec index f295124..7f8aee1 100644 --- a/python-Cython.spec +++ b/python-Cython.spec @@ -17,7 +17,7 @@ Name: python-Cython -Version: 0.25 +Version: 0.25.1 Release: 0 Url: http://www.cython.org Summary: The Cython compiler for writing C extensions for the Python language