From fac0acb695f0ee17d0a8cd649d40775806e93174 Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Fri, 18 Apr 2025 15:18:01 +0000 Subject: Adding metadata --- dev-python/cython/cython-3.1.0_beta1-r1.ebuild | 79 ++++++++++++++++++++++ dev-python/cython/cython-3.1.0_beta1.ebuild | 76 --------------------- .../cython/files/cython-3.1.0_beta1-pypy3.patch | 36 ++++++++++ dev-python/langdetect/Manifest | 2 + .../files/langdetect-1.0.9-explicit-config.patch | 13 ---- dev-python/langdetect/langdetect-1.0.9.ebuild | 4 +- dev-python/langdetect/metadata.xml | 10 +-- dev-python/multidict/multidict-6.4.3.ebuild | 5 ++ 8 files changed, 129 insertions(+), 96 deletions(-) create mode 100644 dev-python/cython/cython-3.1.0_beta1-r1.ebuild delete mode 100644 dev-python/cython/cython-3.1.0_beta1.ebuild create mode 100644 dev-python/cython/files/cython-3.1.0_beta1-pypy3.patch delete mode 100644 dev-python/langdetect/files/langdetect-1.0.9-explicit-config.patch (limited to 'dev-python') diff --git a/dev-python/cython/cython-3.1.0_beta1-r1.ebuild b/dev-python/cython/cython-3.1.0_beta1-r1.ebuild new file mode 100644 index 000000000000..54fcd8230f1b --- /dev/null +++ b/dev-python/cython/cython-3.1.0_beta1-r1.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_TESTED=( python3_{9,10,11,12,13} ) +PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 multiprocessing pypi toolchain-funcs + +DESCRIPTION="A Python to C compiler" +HOMEPAGE=" + https://cython.org/ + https://github.com/cython/cython/ + https://pypi.org/project/Cython/ +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND=" + ${RDEPEND} + test? ( + $(python_gen_cond_dep ' + +Date: Sun, 6 Apr 2025 08:43:34 +0100 +Subject: [PATCH] Fix __Pyx_Owned_Py_None usage as actual function (GH-6782) + +In the tracing code, we are using it like a function (i.e. casting to void to mark it unused) so it has to be a function, not just a macro. + +Fixes https://github.com/cython/cython/issues/6781 +--- + Cython/Utility/TypeConversion.c | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/Cython/Utility/TypeConversion.c b/Cython/Utility/TypeConversion.c +index b86125699c7..e085fae8eb3 100644 +--- a/Cython/Utility/TypeConversion.c ++++ b/Cython/Utility/TypeConversion.c +@@ -103,7 +103,7 @@ static CYTHON_INLINE PyObject *__Pyx_XNewRef(PyObject *obj) { + #endif + } + +-#define __Pyx_Owned_Py_None(b) __Pyx_NewRef(Py_None) ++static CYTHON_INLINE PyObject *__Pyx_Owned_Py_None(int b); + static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b); + static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*); + static CYTHON_INLINE int __Pyx_PyObject_IsTrueAndDecref(PyObject*); +@@ -420,6 +420,10 @@ static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject* o) { + } + } + ++static CYTHON_INLINE PyObject *__Pyx_Owned_Py_None(int b) { ++ CYTHON_UNUSED_VAR(b); ++ return __Pyx_NewRef(Py_None); ++} + + static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b) { + return b ? __Pyx_NewRef(Py_True) : __Pyx_NewRef(Py_False); diff --git a/dev-python/langdetect/Manifest b/dev-python/langdetect/Manifest index a11d7c268c91..37a64204a00a 100644 --- a/dev-python/langdetect/Manifest +++ b/dev-python/langdetect/Manifest @@ -1 +1,3 @@ DIST langdetect-1.0.9.tar.gz 981474 BLAKE2B ea8a9c3f16a2987c080742473bff4f2c1503f53fb3c2b40b0b1d6212bb6133ea22dce7864ffcfb8968c3a46b157d45cb3e2cf6f84bdbed0266cc716a853b032c SHA512 7558d674c47b080c79e43a00a25d2c7f77188cf60bea2cecb3bebb803d75e1aa42b43c74bd26ea1b541f4cb927421908882cbec01a91f0913984217e71ccc8db +EBUILD langdetect-1.0.9.ebuild 494 BLAKE2B 9b3521c5721afa49a58e0c35267f7d82bb56bd7e1d6d3152be0d36cd220180a526cb20b90b1113fbf0fff4a512137570f0b3bcf864498b7b7cc00403cb61ca27 SHA512 16d311400bf84a5f04e15f3da4b68b2810e4b005009f4d03dc8a487176dfc294403c976c412c83dcfa8084a49ef7b7d5389b43fb2ba446ce107ce4595e3558c6 +MISC metadata.xml 457 BLAKE2B 630128a3e982b6d60cc7b9f74c79fcb5ee47a71a02c73a50af9da8cedb6fad8e20a7f74b881e5b25c6483b92c9edbd56552cd38b2d9cbfa8b3eb4530facea969 SHA512 674f4f5cd809c6c77bc14e0f5687fa972bef14bdfa0b3343c5d66b7163eef1906eb87d060c8288732f825de71dce291ad0b841a5f2f0dd230f957b5687e45d45 diff --git a/dev-python/langdetect/files/langdetect-1.0.9-explicit-config.patch b/dev-python/langdetect/files/langdetect-1.0.9-explicit-config.patch deleted file mode 100644 index 637368d2f237..000000000000 --- a/dev-python/langdetect/files/langdetect-1.0.9-explicit-config.patch +++ /dev/null @@ -1,13 +0,0 @@ -Fix "Package 'langdetect.profiles' is absent from the `packages` configuration." - ---- a/setup.py -+++ b/setup.py -@@ -18,7 +18,7 @@ setup( - author_email='michal.danilak@gmail.com', - url='https://github.com/Mimino666/langdetect', - keywords='language detection library', -- packages=['langdetect', 'langdetect.utils', 'langdetect.tests'], -+ packages=['langdetect', 'langdetect.utils', 'langdetect.tests', 'langdetect.profiles'], - include_package_data=True, - install_requires=['six'], - license='MIT', diff --git a/dev-python/langdetect/langdetect-1.0.9.ebuild b/dev-python/langdetect/langdetect-1.0.9.ebuild index eb2586280d80..56733bbffc48 100644 --- a/dev-python/langdetect/langdetect-1.0.9.ebuild +++ b/dev-python/langdetect/langdetect-1.0.9.ebuild @@ -1,4 +1,4 @@ -# Copyright 2022-2024 Gentoo Authors +# Copyright 2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -19,6 +19,4 @@ KEYWORDS="~amd64" RDEPEND="dev-python/six[${PYTHON_USEDEP}]" -PATCHES=( "${FILESDIR}/${P}-explicit-config.patch" ) - distutils_enable_tests unittest diff --git a/dev-python/langdetect/metadata.xml b/dev-python/langdetect/metadata.xml index c0f74ac187e2..020e07f2a3dd 100644 --- a/dev-python/langdetect/metadata.xml +++ b/dev-python/langdetect/metadata.xml @@ -2,9 +2,11 @@ - pastalian46@gmail.com - Takuya Wakazono + marcin.deranek@slonko.net + Marcin Deranek - - gentoo-guru-overlay + + https://github.com/Mimino666/langdetect/issues + + slonko-overlay \ No newline at end of file diff --git a/dev-python/multidict/multidict-6.4.3.ebuild b/dev-python/multidict/multidict-6.4.3.ebuild index 92008c121f69..83f92e0d85f3 100644 --- a/dev-python/multidict/multidict-6.4.3.ebuild +++ b/dev-python/multidict/multidict-6.4.3.ebuild @@ -29,6 +29,11 @@ RDEPEND=" >=dev-python/typing-extensions-4.1.0[${PYTHON_USEDEP}] ' 3.10) " +BDEPEND=" + test? ( + dev-python/objgraph[${PYTHON_USEDEP}] + ) +" distutils_enable_tests pytest -- cgit v1.3