Accepting request 1107857 from devel:languages:python

- update to version 3.0.2:
  * Bugs fixed
    + Using None as default value for arguments annotated as int could
      crash Cython. (Github issue :issue:`5643`)
    + Default values of fused types that include complex could
      generate invalid C code with -DCYTHON_CCOMPLEX=0. (Github issue
      :issue:`5644`)
    + Using C++ enum class types in extension type method signatures
      could generate invalid C code. (Github issue :issue:`5637`)
- changes from version 3.0.1:
  * Features added
    + The error messages regarding exception declarations were
      improved in order to give better help about possible reasons and
      fixes. (Github issue :issue:`5547`)
  * Bugs fixed
    + Memory view types in Python argument annotations no longer
      accept None. They now require an explicit Optional[] or a None
      default value in order to allow None to be passed. This was an
      oversight in the 3.0.0 release and is a BACKWARDS INCOMPATIBLE
      change. However, since it only applies to code using Python
      syntax, it probably only applies to newly written code that was
      written for Cython 3.0 and can easily be adapted. In most cases,
      we expect that this change will avoid bugs in user code rather
      than produce problems. (Github issue :issue:`5612`)
    + nogil functions using parallel code could freeze when called
      with the GIL held. (Github issues :issue:`5564`, :issue:`5573`)
    + Relative cimports could end up searching globally and find the
      same package installed elsewhere, potentially in another
      version. (Github issue :issue:`5511`)
    + Attribute lookups on known standard library modules could
      accidentally search in the module namespace instead. (Github
      issue :issue:`5536`)
    + Using constructed C++ default arguments could generate invalid
      C++ code. (Github issue :issue:`5553`)
    + libcpp.memory.make_unique() was lacking C++ exception
      handling. (Github issue :issue:`5560`)
    + Some non-public and deprecated CAPI usages were replaced by
      public (and thus more future proof) API code.
    + Many issues with the Limited API support were resolved. Patches
      by Lisandro Dalcin et al. (Github issues :issue:`5549`,
      :issue:`5550`, :issue:`5556`, :issue:`5605`, :issue:`5617`)
    + Some C compiler warnings were resolved. Patches by Matti Picus
      et al. (Github issues :issue:`5557`, :issue:`5555`)
    + Large Python integers are now stored in hex instead of decimal
      strings to work around security limits in Python and generally
      speed up their Python object creation.
    + NULL could not be used as default for fused type pointer
      arguments. (Github issue :issue:`5554`)
    + C functions that return pointer types now return NULL as default
      exception value. Previously, calling code wasn't aware of this
      and always tested for raised exceptions. (Github issue
      :issue:`5554`)
    + Untyped literal default arguments in fused functions could
      generate invalid C code. (Github issue :issue:`5614`)
    + C variables declared as const could generate invalid C code when
      used in closures, generator expressions, ctuples, etc. (Github
      issues :issue:`5558`, :issue:`5333`)
    + Enums could not refer to previously defined enums in their
      definition. (Github issue :issue:`5602`)
    + The Python conversion code for anonymous C enums conflicted with
      regular int conversion. (Github issue :issue:`5623`)
    + Using memory views for property methods (and other special
      methods) could lead to refcounting problems. (Github issue
      :issue:`5571`)
    + Star-imports could generate code that tried to assign to
      constant C macros like PY_SSIZE_T_MAX and PY_SSIZE_T_MIN. Patch
      by Philipp Wagner. (Github issue :issue:`5562`)
    + CYTHON_USE_TYPE_SPECS can now be (explicitly) enabled in PyPy.
    + The template parameter "delimeters" in the Tempita Template
      class was corrected to "delimiters". The old spelling is still
      available in the main template API but now issues a
      DeprecationWarning. (Github issue :issue:`5608`)
    + The cython --version output is now less likely to reach both
      stdout and stderr. Patch by Eli Schwartz. (Github issue
      :issue:`5504`)
    + The sdist was missing the Shadow.pyi stub file.

OBS-URL: https://build.opensuse.org/request/show/1107857
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Cython?expand=0&rev=74
This commit is contained in:
Ana Guerrero 2023-08-30 08:18:07 +00:00 committed by Git OBS Bridge
commit b53fae658f
4 changed files with 88 additions and 7 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:350b18f9673e63101dbbfcf774ee2f57c20ac4636d255741d76ca79016b1bd82
size 2691719

BIN
Cython-3.0.2.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,84 @@
-------------------------------------------------------------------
Sun Aug 27 21:37:49 UTC 2023 - Arun Persaud <arun@gmx.de>
- update to version 3.0.2:
* Bugs fixed
+ Using None as default value for arguments annotated as int could
crash Cython. (Github issue :issue:`5643`)
+ Default values of fused types that include complex could
generate invalid C code with -DCYTHON_CCOMPLEX=0. (Github issue
:issue:`5644`)
+ Using C++ enum class types in extension type method signatures
could generate invalid C code. (Github issue :issue:`5637`)
- changes from version 3.0.1:
* Features added
+ The error messages regarding exception declarations were
improved in order to give better help about possible reasons and
fixes. (Github issue :issue:`5547`)
* Bugs fixed
+ Memory view types in Python argument annotations no longer
accept None. They now require an explicit Optional[] or a None
default value in order to allow None to be passed. This was an
oversight in the 3.0.0 release and is a BACKWARDS INCOMPATIBLE
change. However, since it only applies to code using Python
syntax, it probably only applies to newly written code that was
written for Cython 3.0 and can easily be adapted. In most cases,
we expect that this change will avoid bugs in user code rather
than produce problems. (Github issue :issue:`5612`)
+ nogil functions using parallel code could freeze when called
with the GIL held. (Github issues :issue:`5564`, :issue:`5573`)
+ Relative cimports could end up searching globally and find the
same package installed elsewhere, potentially in another
version. (Github issue :issue:`5511`)
+ Attribute lookups on known standard library modules could
accidentally search in the module namespace instead. (Github
issue :issue:`5536`)
+ Using constructed C++ default arguments could generate invalid
C++ code. (Github issue :issue:`5553`)
+ libcpp.memory.make_unique() was lacking C++ exception
handling. (Github issue :issue:`5560`)
+ Some non-public and deprecated CAPI usages were replaced by
public (and thus more future proof) API code.
+ Many issues with the Limited API support were resolved. Patches
by Lisandro Dalcin et al. (Github issues :issue:`5549`,
:issue:`5550`, :issue:`5556`, :issue:`5605`, :issue:`5617`)
+ Some C compiler warnings were resolved. Patches by Matti Picus
et al. (Github issues :issue:`5557`, :issue:`5555`)
+ Large Python integers are now stored in hex instead of decimal
strings to work around security limits in Python and generally
speed up their Python object creation.
+ NULL could not be used as default for fused type pointer
arguments. (Github issue :issue:`5554`)
+ C functions that return pointer types now return NULL as default
exception value. Previously, calling code wasn't aware of this
and always tested for raised exceptions. (Github issue
:issue:`5554`)
+ Untyped literal default arguments in fused functions could
generate invalid C code. (Github issue :issue:`5614`)
+ C variables declared as const could generate invalid C code when
used in closures, generator expressions, ctuples, etc. (Github
issues :issue:`5558`, :issue:`5333`)
+ Enums could not refer to previously defined enums in their
definition. (Github issue :issue:`5602`)
+ The Python conversion code for anonymous C enums conflicted with
regular int conversion. (Github issue :issue:`5623`)
+ Using memory views for property methods (and other special
methods) could lead to refcounting problems. (Github issue
:issue:`5571`)
+ Star-imports could generate code that tried to assign to
constant C macros like PY_SSIZE_T_MAX and PY_SSIZE_T_MIN. Patch
by Philipp Wagner. (Github issue :issue:`5562`)
+ CYTHON_USE_TYPE_SPECS can now be (explicitly) enabled in PyPy.
+ The template parameter "delimeters" in the Tempita Template
class was corrected to "delimiters". The old spelling is still
available in the main template API but now issues a
DeprecationWarning. (Github issue :issue:`5608`)
+ The cython --version output is now less likely to reach both
stdout and stderr. Patch by Eli Schwartz. (Github issue
:issue:`5504`)
+ The sdist was missing the Shadow.pyi stub file.
-------------------------------------------------------------------
Wed Jul 19 12:23:38 UTC 2023 - Matej Cepl <mcepl@suse.com>

View File

@ -19,7 +19,7 @@
%bcond_with test
%{?sle15_python_module_pythons}
Name: python-Cython
Version: 3.0.0
Version: 3.0.2
Release: 0
Summary: The Cython compiler for writing C extensions for the Python language
License: Apache-2.0
@ -33,12 +33,12 @@ BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: python-rpm-macros
Conflicts: python-Cython < 3
Provides: python-Cython3 = 3.0.0
Obsoletes: python-Cython3 <= 3.0.0
Requires: python-devel
Requires(post): update-alternatives
Requires(postun):update-alternatives
Conflicts: python-Cython < 3
Provides: python-Cython3 = %{version}
Obsoletes: python-Cython3 <= %{version}
%python_subpackages
%description