From 13ff1f1bb7cd600edfadb3bc5fde4d28dae4ce70a59b1d731239c96d05689f6e Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 18 Mar 2024 10:57:29 +0000 Subject: [PATCH] =?UTF-8?q?-=20update=20to=203.0.9:=20=20=20*=20Assigning?= =?UTF-8?q?=20const=20values=20to=20non-const=20variables=20now=20issues?= =?UTF-8?q?=20a=20=20=20=20=20warning.=20=20=20*=20Using=20noexcept=20on?= =?UTF-8?q?=20a=20function=20returning=20Python=20objects=20now=20=20=20?= =?UTF-8?q?=20=20issues=20a=20warning.=20=20=20*=20Some=20C-API=20usage=20?= =?UTF-8?q?was=20updated=20for=20the=20upcoming=20CPython=203.13.=20=20=20?= =?UTF-8?q?=20=20Patches=20by=20Victor=20Stinner=20et=20al.=20=20=20*=20Th?= =?UTF-8?q?e=20deprecated=20Py=5FUNICODE=20type=20is=20no=20longer=20used,?= =?UTF-8?q?=20unless=20=20=20=20=20required=20by=20user=20code.=20=20=20*?= =?UTF-8?q?=20std::string.replace()=20declarations=20were=20added=20to=20?= =?UTF-8?q?=20=20=20=20libcpp.string.=20Patch=20by=20Kieran=20Geary.=20=20?= =?UTF-8?q?=20*=20Cython=20generates=20incorrect=20(but=20harmless)=20self?= =?UTF-8?q?-casts=20when=20=20=20=20=20directly=20calling=20final=20method?= =?UTF-8?q?s=20of=20subtypes.=20=20Lacking=20a=20better=20=20=20=20=20solu?= =?UTF-8?q?tion,=20the=20errors=20that=20recent=20gcc=20versions=20produce?= =?UTF-8?q?=20have=20=20=20=20=20been=20silenced=20for=20the=20time=20bein?= =?UTF-8?q?g.=20Original=20patch=20by=20Micha=C5=82=20=20=20=20=20G=C3=B3r?= =?UTF-8?q?ny.=20=20=20*=20Unused=20variable=20warnings=20about=20clineno?= =?UTF-8?q?=20were=20fixed=20when=20C=20=20=20=20=20lines=20in=20traceback?= =?UTF-8?q?s=20are=20disabled.=20=20=20*=20Subclass=20deallocation=20of=20?= =?UTF-8?q?extern=20classes=20could=20crash=20if=20the=20=20=20=20=20base?= =?UTF-8?q?=20class=20uses=20GC.=20Original=20patch=20by=20Jason=20Fried.?= =?UTF-8?q?=20=20=20*=20Type=20checks=20for=20Python=20memoryview=20could?= =?UTF-8?q?=20use=20an=20invalid=20C=20=20=20=20=20function.=20Patch=20by?= =?UTF-8?q?=20Xenia=20Lu.=20=20=20*=20Calling=20final=20fused=20functions?= =?UTF-8?q?=20could=20generate=20invalid=20C=20code.=20=20=20*=20Declaring?= =?UTF-8?q?=20extern=20enums=20multiple=20times=20could=20generate=20inval?= =?UTF-8?q?id=20=20=20=20=20C=20code.=20=20=20*=20pyximport=20used=20relat?= =?UTF-8?q?ive=20paths=20incorrectly.=20Patch=20by=20Stefano=20=20=20=20?= =?UTF-8?q?=20Rivera.=20=20=20*=20Running=20Cython=20with=20globbing=20cha?= =?UTF-8?q?racters=20([]*=3F)=20in=20the=20module=20=20=20=20=20search=20p?= =?UTF-8?q?ath=20could=20fail.=20=20=20*=20Literal=20strings=20that=20incl?= =?UTF-8?q?ude=20braces=20could=20change=20the=20C=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cython?expand=0&rev=196 --- Cython-3.0.8.tar.gz | 3 --- Cython-3.0.9.tar.gz | 3 +++ python-Cython.changes | 37 +++++++++++++++++++++++++++++++++++++ python-Cython.spec | 4 ++-- 4 files changed, 42 insertions(+), 5 deletions(-) delete mode 100644 Cython-3.0.8.tar.gz create mode 100644 Cython-3.0.9.tar.gz diff --git a/Cython-3.0.8.tar.gz b/Cython-3.0.8.tar.gz deleted file mode 100644 index f0558c8..0000000 --- a/Cython-3.0.8.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8333423d8fd5765e7cceea3a9985dd1e0a5dfeb2734629e1a2ed2d6233d39de6 -size 2744096 diff --git a/Cython-3.0.9.tar.gz b/Cython-3.0.9.tar.gz new file mode 100644 index 0000000..fe09766 --- /dev/null +++ b/Cython-3.0.9.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a2d354f059d1f055d34cfaa62c5b68bc78ac2ceab6407148d47fb508cf3ba4f3 +size 2748462 diff --git a/python-Cython.changes b/python-Cython.changes index b4c2f3f..7ce5996 100644 --- a/python-Cython.changes +++ b/python-Cython.changes @@ -1,3 +1,40 @@ +------------------------------------------------------------------- +Mon Mar 18 10:56:20 UTC 2024 - Dirk Müller + +- update to 3.0.9: + * Assigning const values to non-const variables now issues a + warning. + * Using noexcept on a function returning Python objects now + issues a warning. + * Some C-API usage was updated for the upcoming CPython 3.13. + Patches by Victor Stinner et al. + * The deprecated Py_UNICODE type is no longer used, unless + required by user code. + * std::string.replace() declarations were added to + libcpp.string. Patch by Kieran Geary. + * Cython generates incorrect (but harmless) self-casts when + directly calling final methods of subtypes. Lacking a better + solution, the errors that recent gcc versions produce have + been silenced for the time being. Original patch by Michał + Górny. + * Unused variable warnings about clineno were fixed when C + lines in tracebacks are disabled. + * Subclass deallocation of extern classes could crash if the + base class uses GC. Original patch by Jason Fried. + * Type checks for Python memoryview could use an invalid C + function. Patch by Xenia Lu. + * Calling final fused functions could generate invalid C code. + * Declaring extern enums multiple times could generate invalid + C code. + * pyximport used relative paths incorrectly. Patch by Stefano + Rivera. + * Running Cython with globbing characters ([]*?) in the module + search path could fail. + * Literal strings that include braces could change the C code + indentation. + * The "enum class not importable" warning is now only issued + once per enum type. + ------------------------------------------------------------------- Sun Jan 14 15:30:24 UTC 2024 - Dirk Müller diff --git a/python-Cython.spec b/python-Cython.spec index 2ed1c78..d49ba7b 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.8 +Version: 3.0.9 Release: 0 Summary: The Cython compiler for writing C extensions for the Python language License: Apache-2.0 @@ -36,7 +36,7 @@ BuildRequires: gcc-c++ BuildRequires: python-rpm-macros Requires: python-devel Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(postun): update-alternatives Conflicts: python-Cython < 3 Provides: python-Cython3 = %{version} Obsoletes: python-Cython3 < %{version}