pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/py-cython py-cython: updated to 0.28



details:   https://anonhg.NetBSD.org/pkgsrc/rev/205d4cee73d0
branches:  trunk
changeset: 377363:205d4cee73d0
user:      adam <adam%pkgsrc.org@localhost>
date:      Thu Mar 15 09:30:18 2018 +0000

description:
py-cython: updated to 0.28

0.28:
Cdef classes can now multiply inherit from ordinary Python classes.
Type inference is now supported for Pythran compiled NumPy expressions.
The const modifier can be applied to memoryview declarations to allow read-only buffers as input.
C code in the docstring of a cdef extern block is copied verbatimly into the generated file. Patch by Jeroen Demeyer.
When compiling with gcc, the module init function is now tuned for small code size instead of whatever compile flags were provided externally. Cython now also disables some code intensive 
optimisations in that function to further reduce the code size.
Decorating an async coroutine with @cython.iterable_coroutine changes its type at compile time to make it iterable. While this is not strictly in line with PEP-492, it improves the interoperability 
with old-style coroutines that use yield from instead of await.
The IPython magic has preliminary support for JupyterLab.
The new TSS C-API in CPython 3.7 is supported and has been backported. Patch by Naotoshi Seo.
Cython knows the new Py_tss_t type defined in PEP-539 and automatically initialises variables declared with that type to Py_tss_NEEDS_INIT, a value which cannot be used outside of static assignments.
The set methods .remove() and .discard() are optimised. Patch by Antoine Pitrou.
dict.pop() is optimised. Original patch by Antoine Pitrou.
Iteration over sets and frozensets is optimised.
Safe integer loops (< range(2^30)) are automatically optimised into C loops.
alist.extend([a,b,c]) is optimised into sequential list.append() calls for short literal sequences.
Calls to builtin methods that are not specifically optimised into C-API calls now use a cache that avoids repeated lookups of the underlying C function.
Single argument function calls can avoid the argument tuple creation in some cases.
Some redundant extension type checks are avoided.
Formatting C enum values in f-strings is faster, as well as some other special cases.
String formatting with the ?%? operator is optimised into f-strings in simple cases.
Subscripting (item access) is faster in some cases.
Some bytearray operations have been optimised similar to bytes.
Some PEP-484/526 container type declarations are now considered for loop optimisations.
Indexing into memoryview slices with view[i][j] is now optimised into view[i, j].
Python compatible cython.* types can now be mixed with type declarations in Cython syntax.
Name lookups in the module and in classes are faster.
Python attribute lookups on extension types without instance dict are faster.
Some missing signals were added to libc/signal.pxd. Patch by Jeroen Demeyer.
The warning about repeated extern declarations is now visible by default.
The exception handling of the function types used by CPython?s type slot functions was corrected to match the de-facto standard behaviour, so that code that uses them directly benefits from automatic 
and correct exception propagation. Patch by Jeroen Demeyer.
Defining the macro CYTHON_NO_PYINIT_EXPORT will prevent the module init function from being exported as symbol, e.g. when linking modules statically in an embedding setup. Patch by AraHaan.

diffstat:

 devel/py-cython/Makefile |   6 ++----
 devel/py-cython/PLIST    |   4 +++-
 devel/py-cython/distinfo |  10 +++++-----
 3 files changed, 10 insertions(+), 10 deletions(-)

diffs (63 lines):

diff -r 178b15b54bc5 -r 205d4cee73d0 devel/py-cython/Makefile
--- a/devel/py-cython/Makefile  Thu Mar 15 09:29:09 2018 +0000
+++ b/devel/py-cython/Makefile  Thu Mar 15 09:30:18 2018 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.41 2017/11/06 10:12:29 adam Exp $
+# $NetBSD: Makefile,v 1.42 2018/03/15 09:30:18 adam Exp $
 
-DISTNAME=      Cython-0.27.3
+DISTNAME=      Cython-0.28
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=    lang python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=c/cython/}
@@ -10,8 +10,6 @@
 COMMENT=       C-Extensions for Python
 LICENSE=       apache-1.1
 
-USE_LANGUAGES= c
-
 PLIST_VARS=    cygdb
 
 REPLACE_PYTHON+=       Cython/Build/Cythonize.py
diff -r 178b15b54bc5 -r 205d4cee73d0 devel/py-cython/PLIST
--- a/devel/py-cython/PLIST     Thu Mar 15 09:29:09 2018 +0000
+++ b/devel/py-cython/PLIST     Thu Mar 15 09:30:18 2018 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.22 2017/09/30 09:53:23 adam Exp $
+@comment $NetBSD: PLIST,v 1.23 2018/03/15 09:30:18 adam Exp $
 bin/cygdb${PYVERSSUFFIX}
 bin/cython${PYVERSSUFFIX}
 bin/cythonize${PYVERSSUFFIX}
@@ -90,6 +90,7 @@
 ${PYSITELIB}/Cython/Compiler/FusedNode.py
 ${PYSITELIB}/Cython/Compiler/FusedNode.pyc
 ${PYSITELIB}/Cython/Compiler/FusedNode.pyo
+${PYSITELIB}/Cython/Compiler/FusedNode.so
 ${PYSITELIB}/Cython/Compiler/Future.py
 ${PYSITELIB}/Cython/Compiler/Future.pyc
 ${PYSITELIB}/Cython/Compiler/Future.pyo
@@ -445,6 +446,7 @@
 ${PYSITELIB}/Cython/StringIOTree.py
 ${PYSITELIB}/Cython/StringIOTree.pyc
 ${PYSITELIB}/Cython/StringIOTree.pyo
+${PYSITELIB}/Cython/StringIOTree.so
 ${PYSITELIB}/Cython/Tempita/__init__.py
 ${PYSITELIB}/Cython/Tempita/__init__.pyc
 ${PYSITELIB}/Cython/Tempita/__init__.pyo
diff -r 178b15b54bc5 -r 205d4cee73d0 devel/py-cython/distinfo
--- a/devel/py-cython/distinfo  Thu Mar 15 09:29:09 2018 +0000
+++ b/devel/py-cython/distinfo  Thu Mar 15 09:30:18 2018 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.33 2017/11/06 10:12:29 adam Exp $
+$NetBSD: distinfo,v 1.34 2018/03/15 09:30:18 adam Exp $
 
-SHA1 (Cython-0.27.3.tar.gz) = 688aa815301dd9e710cd847528de31099f3b52c4
-RMD160 (Cython-0.27.3.tar.gz) = c6fa763137e0c000beff0898e3af0f6c23c9d9bc
-SHA512 (Cython-0.27.3.tar.gz) = 3c91d3be063cea4a03420a4ef2d9485453d5aa8f1a605d6157b2456b71ab53601c27a5df9cb5337ac14345b09fc86063d1cc613abe9bcbb0e8257f93181a79cf
-Size (Cython-0.27.3.tar.gz) = 1776789 bytes
+SHA1 (Cython-0.28.tar.gz) = 4303ea0e18f9b1c07082a246edee1de0e310e69a
+RMD160 (Cython-0.28.tar.gz) = ef74ec7c90e68f828d7f59551b35059954e6375d
+SHA512 (Cython-0.28.tar.gz) = 5194a1bba34087ef6c09d7e85a8faedf99c4b3e49363b3c1c8032f8f58fdff6481f392d1e3c542f5f4277c07d9d3a9852c39b54859fe3af1ef4e809dab4a063b
+Size (Cython-0.28.tar.gz) = 1796177 bytes
 SHA1 (patch-ac) = d0e06dd9e4b5a34d0614ec17f51c129eb7724323
 SHA1 (patch-runtests.py) = 788ff593da9ce447af368957f1a8be562e2d40da



Home | Main Index | Thread Index | Old Index