From d6e027f033b5623f1cb68249de65de54612f942c05a047236c5e10277a4f60e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 29 Aug 2023 06:58:58 +0000 Subject: [PATCH 1/2] Accepting request 1106193 from home:apersaud:branches:devel:languages:python update to latest version OBS-URL: https://build.opensuse.org/request/show/1106193 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cython?expand=0&rev=178 --- Cython-3.0.0.tar.gz | 3 -- Cython-3.0.2.tar.gz | 3 ++ python-Cython.changes | 81 +++++++++++++++++++++++++++++++++++++++++++ python-Cython.spec | 8 ++--- 4 files changed, 88 insertions(+), 7 deletions(-) delete mode 100644 Cython-3.0.0.tar.gz create mode 100644 Cython-3.0.2.tar.gz diff --git a/Cython-3.0.0.tar.gz b/Cython-3.0.0.tar.gz deleted file mode 100644 index d10e437..0000000 --- a/Cython-3.0.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:350b18f9673e63101dbbfcf774ee2f57c20ac4636d255741d76ca79016b1bd82 -size 2691719 diff --git a/Cython-3.0.2.tar.gz b/Cython-3.0.2.tar.gz new file mode 100644 index 0000000..4d4c2b7 --- /dev/null +++ b/Cython-3.0.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9594818dca8bb22ae6580c5222da2bc5cc32334350bd2d294a00d8669bcc61b5 +size 2723546 diff --git a/python-Cython.changes b/python-Cython.changes index 05ecf9c..2379938 100644 --- a/python-Cython.changes +++ b/python-Cython.changes @@ -1,3 +1,84 @@ +------------------------------------------------------------------- +Sun Aug 27 21:37:49 UTC 2023 - Arun Persaud + +- 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 diff --git a/python-Cython.spec b/python-Cython.spec index 00b011e..8447044 100644 --- a/python-Cython.spec +++ b/python-Cython.spec @@ -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 = 3.0.0 +Obsoletes: python-Cython3 <= 3.0.0 %python_subpackages %description From 88b3f8546ef840f9786507c53f6e44b71abacb298372e13f4a2838fecc12c414 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 29 Aug 2023 07:00:33 +0000 Subject: [PATCH 2/2] provide the correct version OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cython?expand=0&rev=179 --- python-Cython.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python-Cython.spec b/python-Cython.spec index 8447044..400a798 100644 --- a/python-Cython.spec +++ b/python-Cython.spec @@ -37,8 +37,8 @@ Requires: python-devel Requires(post): update-alternatives Requires(postun):update-alternatives Conflicts: python-Cython < 3 -Provides: python-Cython3 = 3.0.0 -Obsoletes: python-Cython3 <= 3.0.0 +Provides: python-Cython3 = %{version} +Obsoletes: python-Cython3 <= %{version} %python_subpackages %description