commit:     4c93d2d273643692c04e91f0d3e26117fafffbed
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 10 17:39:23 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jan 10 21:11:50 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c93d2d2

dev-python/cython: Bump to 3.0.8

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/cython/Manifest            |  1 +
 dev-python/cython/cython-3.0.8.ebuild | 84 +++++++++++++++++++++++++++++++++++
 2 files changed, 85 insertions(+)

diff --git a/dev-python/cython/Manifest b/dev-python/cython/Manifest
index 3ce740b2691a..c1bc7c887f5b 100644
--- a/dev-python/cython/Manifest
+++ b/dev-python/cython/Manifest
@@ -6,3 +6,4 @@ DIST cython-3.0.4.gh.tar.gz 2754689 BLAKE2B 
5418b8c374565894deb07e7a3f2fe242e1ef
 DIST cython-3.0.5.gh.tar.gz 2756583 BLAKE2B 
d9b5af97933030fc1ac49677a5f3fd8194ba6e685dccd257f4ef4af206565ae2fa6f72c1268d8d0604b6fd6f2d8147c542501e8e319588bfdc4a7f40622976ff
 SHA512 
585d3fe810ace55278fcc6ea4508b3b5259320f92998cd688da787cd5f88ac5fc2467025f20da6d968969eb3296ae9c517136d24a4dbb475441271227968f6be
 DIST cython-3.0.6.gh.tar.gz 2759853 BLAKE2B 
fdcbb870418eebfb2e55e28f7223699fee4fb06d52f9f41db55b30fbe6ba6ee3de42af9bbdd8930d418ec790dec195546486ea45c370e2df122d6fada08d38cf
 SHA512 
f1d33775166d0b6541ea98bee5d4186fc6128aad788323224397c1f3ba0a058141ac84a8b3baa4885204dcbf0979141bc4b5316342003e96208952f040f31753
 DIST cython-3.0.7.gh.tar.gz 2761333 BLAKE2B 
f19f920726ee9001ecacd3f9a104ecb44ea2a26f40897e1a8856bc7fdc47b4c9b9386d72f4dabeba02a05412dab0d5ddc5de8167e08489ca31587240d6fcd135
 SHA512 
6d93cfb76265ffe11d4ba6ae2d4e88ce040c64a12b4acc8b236b4b282a82d2f0cc09abdd6149d6b4d0b6c86f182e1185e14ddd4241ebdda899f07524e9833f8e
+DIST cython-3.0.8.gh.tar.gz 2764668 BLAKE2B 
03202ea480fa398d2b0893cc96185467009c783cf4451fc5d1c09ec229398bc084276680ed2b64acf63253744f827427e03674be3e5985d5a2912d9f338c786a
 SHA512 
1070fc278401990595d177b0e6396bc1eba2ea8234a7c5bb26399b6b7284de7791ee5fa60ef74d06d0f4120b9c877bfd7703a7d701838f1634737526c614b860

diff --git a/dev-python/cython/cython-3.0.8.ebuild 
b/dev-python/cython/cython-3.0.8.ebuild
new file mode 100644
index 000000000000..32016adffce1
--- /dev/null
+++ b/dev-python/cython/cython-3.0.8.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2024 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_{10..12} )
+PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" pypy3 )
+PYTHON_REQ_USE="threads(+)"
+
+inherit distutils-r1 multiprocessing toolchain-funcs
+
+MY_P=${P/_rc/rc}
+DESCRIPTION="A Python to C compiler"
+HOMEPAGE="
+       https://cython.org/
+       https://github.com/cython/cython/
+       https://pypi.org/project/Cython/
+"
+SRC_URI="
+       https://github.com/cython/cython/archive/${PV/_rc/rc}.tar.gz
+               -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~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 '
+                       dev-python/numpy[${PYTHON_USEDEP}]
+               ' "${PYTHON_TESTED[@]}")
+       )
+"
+
+PATCHES=(
+       "${FILESDIR}/${PN}-0.29.22-spawn-multiprocessing.patch"
+       "${FILESDIR}/${PN}-0.29.23-test_exceptions-py310.patch"
+       "${FILESDIR}/${PN}-0.29.23-pythran-parallel-install.patch"
+)
+
+distutils_enable_sphinx docs \
+       dev-python/jinja \
+       dev-python/sphinx-issues \
+       dev-python/sphinx-tabs
+
+python_compile() {
+       # Python gets confused when it is in sys.path before build.
+       local -x PYTHONPATH=
+
+       distutils-r1_python_compile
+}
+
+python_test() {
+       if ! has "${EPYTHON/./_}" "${PYTHON_TESTED[@]}"; then
+               einfo "Skipping tests on ${EPYTHON} (xfail)"
+               return
+       fi
+
+       # Needed to avoid confusing cache tests
+       unset CYTHON_FORCE_REGEN
+
+       tc-export CC
+       # https://github.com/cython/cython/issues/1911
+       local -x CFLAGS="${CFLAGS} -fno-strict-overflow"
+       "${PYTHON}" runtests.py \
+               -vv \
+               -j "$(makeopts_jobs)" \
+               --work-dir "${BUILD_DIR}"/tests \
+               --no-examples \
+               --no-code-style \
+               || die "Tests fail with ${EPYTHON}"
+}
+
+python_install_all() {
+       local DOCS=( CHANGES.rst README.rst ToDo.txt USAGE.txt )
+       distutils-r1_python_install_all
+}

Reply via email to