pkgsrc/devel/py-cython/distinfo

10 lines
629 B
Text
Raw Normal View History

2019-12-11 21:20:23 +01:00
$NetBSD: distinfo,v 1.54 2019/12/11 20:20:23 adam Exp $
SHA1 (Cython-0.29.14.tar.gz) = f86f2dddde3cc7499cb47d48c0ab98026493d5a8
RMD160 (Cython-0.29.14.tar.gz) = 5c056cdded1fa2626705be3d1fcb289a9a72bd34
SHA512 (Cython-0.29.14.tar.gz) = 50e9a11593e44539a14fd505427dfcbbc3783585d079eb2314832f6852e415a151130e6ee3aa790c3e3ae5b77e64cf920e62d55b57fc1157e535286b170775df
Size (Cython-0.29.14.tar.gz) = 2053456 bytes
2019-12-11 21:20:23 +01:00
SHA1 (patch-Cython_Distutils_old__build__ext.py) = 2bc705192923cc2f40f7c173625b056caa08f666
Update to 0.21: 0.21 (2014-09-10) ================= Features added -------------- * C (cdef) functions allow inner Python functions. * Enums can now be declared as cpdef to export their values to the module's Python namespace. Cpdef enums in pxd files export their values to their own module, iff it exists. * Allow @staticmethod decorator to declare static cdef methods. This is especially useful for declaring "constructors" for cdef classes that can take non-Python arguments. * Taking a ``char*`` from a temporary Python string object is safer in more cases and can be done inside of non-trivial expressions, including arguments of a function call. A compile time error is raised only when such a pointer is assigned to a variable and would thus exceed the lifetime of the string itself. * Generators have new properties ``__name__`` and ``__qualname__`` that provide the plain/qualified name of the generator function (following CPython 3.5). See http://bugs.python.org/issue21205 * The ``inline`` function modifier is available as a decorator ``@cython.inline`` in pure mode. * When cygdb is run in a virtualenv, it enables the same virtualenv inside of the debugger. Patch by Marc Abramowitz. * PEP 465: dedicated infix operator for matrix multiplication (A @ B). * HTML output of annotated code uses Pygments for code highlighting and generally received a major overhaul by Matthias Bussonier. * IPython magic support is now available directly from Cython with the command "%load_ext cython". Cython code can directly be executed in a cell when marked with "%%cython". Code analysis is available with "%%cython -a". Patch by Martín Gaitán. * Simple support for declaring Python object types in Python signature annotations. Currently requires setting the compiler directive ``annotation_typing=True``. * New directive ``use_switch`` (defaults to True) to optionally disable the optimization of chained if statement to C switch statements. * Defines dynamic_cast et al. in ``libcpp.cast`` and C++ heap data structure operations in ``libcpp.algorithm``. * Shipped header declarations in ``posix.*`` were extended to cover more of the POSIX API. Patches by Lars Buitinck and Mark Peek. Optimizations ------------- * Simple calls to C implemented Python functions/methods are faster. This also speeds up many operations on builtins that Cython cannot otherwise optimise. * The "and"/"or" operators try to avoid unnecessary coercions of their arguments. They now evaluate the truth value of each argument independently and only coerce the final result of the whole expression to the target type (e.g. the type on the left side of an assignment). This also avoids reference counting overhead for Python values during evaluation and generally improves the code flow in the generated C code. * The Python expression "2 ** N" is optimised into bit shifting. See http://bugs.python.org/issue21420 * Cascaded assignments (a = b = ...) try to minimise the number of type coercions. * Calls to ``slice()`` are translated to a straight C-API call. Bugs fixed ---------- * Crash when assigning memory views from ternary conditional expressions. * Nested C++ templates could lead to unseparated ">>" characters being generated into the C++ declarations, which older C++ compilers could not parse. * Sending SIGINT (Ctrl-C) during parallel cythonize() builds could hang the child processes. * No longer ignore local setup.cfg files for distutils in pyximport. Patch by Martin Teichmann. * Taking a ``char*`` from an indexed Python string generated unsafe reference counting code. * Set literals now create all of their items before trying to add them to the set, following the behaviour in CPython. This makes a difference in the rare case that the item creation has side effects and some items are not hashable (or if hashing them has side effects, too). * Cython no longer generates the cross product of C functions for code that uses memory views of fused types in function signatures (e.g. ``cdef func(floating[:] a, floating[:] b)``). This is considered the expected behaviour by most users and was previously inconsistent with other structured types like C arrays. Code that really wants all type combinations can create the same fused memoryview type under different names and use those in the signature to make it clear which types are independent. * Names that were unknown at compile time were looked up as builtins at runtime but not as global module names. Trying both lookups helps with globals() manipulation. * Fixed stl container conversion for typedef element types. * ``obj.pop(x)`` truncated large C integer values of x to ``Py_ssize_t``. * ``__init__.pyc`` is recognised as marking a package directory (in addition to .py, .pyx and .pxd). * Syntax highlighting in ``cython-mode.el`` for Emacs no longer incorrectly highlights keywords found as part of longer names. * Correctly handle ``from cython.submodule cimport name``. * Fix infinite recursion when using super with cpdef methods. * No-args ``dir()`` was not guaranteed to return a sorted list. Other changes ------------- * The header line in the generated C files no longer contains the timestamp but only the Cython version that wrote it. This was changed to make builds more reproducible. * Removed support for CPython 2.4, 2.5 and 3.1. * The licensing implications on the generated code were clarified to avoid legal constraints for users.
2014-09-14 19:44:49 +02:00
SHA1 (patch-ac) = d0e06dd9e4b5a34d0614ec17f51c129eb7724323
py-cython: updated to 0.29 0.29: Features added -------------- PEP-489 multi-phase module initialisation has been enabled again. Module reloads in other subinterpreters raise an exception to prevent corruption of the static module state. A set of mypy compatible PEP-484 declarations were added for Cython’s C data types to integrate with static analysers in typed Python code. They are available in the Cython/Shadow.pyi module and describe the types in the special cython module that can be used for typing in Python code. Memoryviews are supported in PEP-484/526 style type declarations. @cython.nogil is supported as a C-function decorator in Python code. Raising exceptions from nogil code will automatically acquire the GIL, instead of requiring an explicit with gil block. C++ functions can now be declared as potentially raising both C++ and Python exceptions, so that Cython can handle both correctly. cython.inline() supports a direct language_level keyword argument that was previously only available via a directive. A new language level name 3str was added that mostly corresponds to language level 3, but keeps unprefixed string literals as type ‘str’ in both Py2 and Py3, and the builtin ‘str’ type unchanged. This will become the default in the next Cython release and is meant to help user code a) transition more easily to this new default and b) migrate to Python 3 source code semantics without making support for Python 2.x difficult. In CPython 3.6 and later, looking up globals in the module dict is almost as fast as looking up C globals. For a Python subclass of an extension type, repeated method calls to non-overridden cpdef methods can avoid the attribute lookup in Py3.6+, which makes them 4x faster. (In-)equality comparisons of objects to integer literals are faster. Some internal and 1-argument method calls are faster. Modules that cimport many external extension types from other Cython modules execute less import requests during module initialisation. Constant tuples and slices are deduplicated and only created once per module. The coverage plugin considers more C file extensions such as .cc and .cxx. The cythonize command accepts compile time variable values (as set by DEF) through the new -E option. pyximport can import from namespace packages. Some missing numpy and CPython C-API declarations were added. Declarations for the pylifecycle C-API functions were added in a new .pxd file cpython.pylifecycle. The Pythran support was updated to work with the latest Pythran 0.8.7 %a is included in the string formatting types that are optimised into f-strings. In this case, it is also automatically mapped to %r in Python 2.x. New C macro CYTHON_HEX_VERSION to access Cython’s version in the same style as PY_HEX_VERSION. Constants in libc.math are now declared as const to simplify their handling. An additional check_size clause was added to the ctypedef class name specification to allow suppressing warnings when importing modules with backwards-compatible PyTypeObject size changes. Bugs fixed ---------- The exception handling in generators and coroutines under CPython 3.7 was adapted to the newly introduced exception stack. Users of Cython 0.28 who want to support Python 3.7 are encouraged to upgrade to 0.29 to avoid potentially incorrect error reporting and tracebacks. Crash when importing a module under Stackless Python that was built for CPython. 2-value slicing of typed sequences failed if the start or stop index was None. Multiplied string literals lost their factor when they are part of another constant expression (e.g. ‘x’ * 10 + ‘y’ => ‘xy’). String formatting with the ‘%’ operator didn’t call the special __rmod__() method if the right side is a string subclass that implements it. The directive language_level=3 did not apply to the first token in the source file. Overriding cpdef methods did not work in Python subclasses with slots. Note that this can have a performance impact on calls from Cython code. Fix declarations of builtin or C types using strings in pure python mode. Generator expressions and lambdas failed to compile in @cfunc functions. Global names with const types were not excluded from star-import assignments which could lead to invalid C code. Several internal function signatures were fixed that lead to warnings in gcc-8. The numpy helper functions set_array_base() and get_array_base() were adapted to the current numpy C-API recommendations. Some NumPy related code was updated to avoid deprecated API usage. Several C++ STL declarations were extended and corrected. C lines of the module init function were unconditionally not reported in exception stack traces. When PEP-489 support is enabled, reloading the module overwrote any static module state. It now raises an exception instead, given that reloading is not actually supported. Object-returning, C++ exception throwing functions were not checking that the return value was non-null. The source file encoding detection could get confused if the c_string_encoding directive appeared within the first two lines. Cython generated modules no longer emit a warning during import when the size of the NumPy array type is larger than what was found at compile time. Instead, this is assumed to be a backwards compatible change on NumPy side. Other changes ------------- Cython now emits a warning when no language_level (2, 3 or ‘3str’) is set explicitly, neither as a cythonize() option nor as a compiler directive. This is meant to prepare the transition of the default language level from currently Py2 to Py3, since that is what most new users will expect these days. The future default will, however, not enforce unicode literals, because this has proven a major obstacle in the support for both Python 2.x and 3.x. The next major release is intended to make this change, so that it will parse all code that does not request a specific language level as Python 3 code, but with str literals. The language level 2 will continue to be supported for an indefinite time. The documentation was restructured, cleaned up and examples are now tested. The NumPy tutorial was also rewritten to simplify the running example. Cython compiles less of its own modules at build time to reduce the installed package size to about half of its previous size. This makes the compiler slightly slower, by about 5-7%.
2018-10-15 10:21:03 +02:00
SHA1 (patch-runtests.py) = d08d3d8e17d6b75a3067f295d3d3eb63ffe97b48