summaryrefslogtreecommitdiff
path: root/dev-python
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/clang-python/Manifest1
-rw-r--r--dev-python/clang-python/clang-python-20.0.0_pre20241009.ebuild53
-rw-r--r--dev-python/lit/Manifest1
-rw-r--r--dev-python/lit/lit-20.0.0_pre20241009.ebuild45
-rw-r--r--dev-python/markupsafe/markupsafe-3.0.1.ebuild5
-rw-r--r--dev-python/multiprocess/files/multiprocess-0.70.17-wheel-tag.patch65
-rw-r--r--dev-python/multiprocess/multiprocess-0.70.17-r1.ebuild (renamed from dev-python/multiprocess/multiprocess-0.70.17.ebuild)19
-rw-r--r--dev-python/setproctitle/setproctitle-1.3.3.ebuild2
-rw-r--r--dev-python/zope-hookable/Manifest1
-rw-r--r--dev-python/zope-hookable/zope-hookable-6.0.ebuild45
10 files changed, 189 insertions, 48 deletions
diff --git a/dev-python/clang-python/Manifest b/dev-python/clang-python/Manifest
index 313d6bb898a9..840b7c21a102 100644
--- a/dev-python/clang-python/Manifest
+++ b/dev-python/clang-python/Manifest
@@ -10,3 +10,4 @@ DIST llvm-project-19.1.1.src.tar.xz 141244648 BLAKE2B 7c9250f99c8e5ae2097e89269e
DIST llvm-project-19.1.1.src.tar.xz.sig 438 BLAKE2B 6967194abf6939291abc716f862a46ea7c5e195b98eebc26928a57dbd5034f82a8ecb5b7cc1b7c2428168309308b19df1c7db828703e80d3f7bf578e3542874d SHA512 07bb7bffb2b035417d702ca47be9d5759250f1a2cd57606855027d458ceb972a293b45d3d93bcda195588986acbb5eace60524f4aecdc0da7aeb3a8414c37c31
DIST llvm-project-b837c9e289dab93c7f8a06876e3f70b6864f40ab.tar.gz 219631219 BLAKE2B d8a5d7de537ad91e94fc85dc0f624eba92f31cab2a345706250a66ad424fff151d5b86c430d993a35fd938095774411080cee4cab47a8258af348743dc145b56 SHA512 fe23f72b73553e3755af335a2a2a2225eafdcf2ed93191c9f4ac7bcf7b5b5391f73c2dccbb082279e0c7389a8f12b889a8d061389785cf9219ca861a8d4b41cc
DIST llvm-project-cde7b30268a85a3e7900a31534a97e7eb4de9236.tar.gz 219048549 BLAKE2B 53bdfea814b2cdf60bfdd27f6135b9f9d5156bdc78d22a361214399c5101b6fafaaefb9109377c1d977c67ebcb1feed69d6aaee0f2e38881480d68ac8be9b3d9 SHA512 0def6da5c2443753f37ba40a893b41dd5c7676b7be57102a5a6e820fe4fe235cad1da9a1c0eff1abc4c4ed5cc188522cae23afeddeee1876ea8ffde5c4f33b9f
+DIST llvm-project-fb2960aad93f6c02e0ea8de0568c0aef8896eee8.tar.gz 219704020 BLAKE2B 91f7226d7c6dcfa82c6b892ec0a80b47b5abd435c39996d8a6e0611355d434a86eb42bd5dce849dcc9a2f0ed2ae9844e5672f45283984ad10c7c12c62c82d47b SHA512 f0b56a4ab532aaf4bb841aac4e2faf63f213f3cd71d24555b46805406502805e6cc46cb0aae0fbf5f49ddec99da801ab8e54410a9bd8a7bcb0e9fb13619c30bf
diff --git a/dev-python/clang-python/clang-python-20.0.0_pre20241009.ebuild b/dev-python/clang-python/clang-python-20.0.0_pre20241009.ebuild
new file mode 100644
index 000000000000..0cb38ead605a
--- /dev/null
+++ b/dev-python/clang-python/clang-python-20.0.0_pre20241009.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9,10,11,12,13} )
+inherit llvm.org python-r1
+
+DESCRIPTION="Python bindings for sys-devel/clang"
+HOMEPAGE="https://llvm.org/"
+
+LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA"
+SLOT="0"
+IUSE="test"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+# The module is opening libclang.so directly, and doing some blasphemy
+# on top of it.
+DEPEND="
+ >=sys-devel/clang-${PV}:*
+ !sys-devel/llvm:0[clang(-),python(-)]
+ !sys-devel/clang:0[python(-)]
+"
+RDEPEND="
+ ${DEPEND}
+ ${PYTHON_DEPS}
+"
+BDEPEND="
+ ${PYTHON_DEPS}
+ test? (
+ sys-devel/clang:${LLVM_MAJOR}
+ )
+"
+
+LLVM_COMPONENTS=( clang/bindings/python )
+llvm.org_set_globals
+
+python_test() {
+ # tests rely on results from a specific clang version, so override
+ # the search path
+ local -x CLANG_LIBRARY_PATH=${BROOT}/usr/lib/llvm/${LLVM_MAJOR}/$(get_libdir)
+ local -x CLANG_NO_DEFAULT_CONFIG=1
+ "${EPYTHON}" -m unittest discover -v || die "Tests fail with ${EPYTHON}"
+}
+
+src_test() {
+ python_foreach_impl python_test
+}
+
+src_install() {
+ python_foreach_impl python_domodule clang
+}
diff --git a/dev-python/lit/Manifest b/dev-python/lit/Manifest
index 313d6bb898a9..840b7c21a102 100644
--- a/dev-python/lit/Manifest
+++ b/dev-python/lit/Manifest
@@ -10,3 +10,4 @@ DIST llvm-project-19.1.1.src.tar.xz 141244648 BLAKE2B 7c9250f99c8e5ae2097e89269e
DIST llvm-project-19.1.1.src.tar.xz.sig 438 BLAKE2B 6967194abf6939291abc716f862a46ea7c5e195b98eebc26928a57dbd5034f82a8ecb5b7cc1b7c2428168309308b19df1c7db828703e80d3f7bf578e3542874d SHA512 07bb7bffb2b035417d702ca47be9d5759250f1a2cd57606855027d458ceb972a293b45d3d93bcda195588986acbb5eace60524f4aecdc0da7aeb3a8414c37c31
DIST llvm-project-b837c9e289dab93c7f8a06876e3f70b6864f40ab.tar.gz 219631219 BLAKE2B d8a5d7de537ad91e94fc85dc0f624eba92f31cab2a345706250a66ad424fff151d5b86c430d993a35fd938095774411080cee4cab47a8258af348743dc145b56 SHA512 fe23f72b73553e3755af335a2a2a2225eafdcf2ed93191c9f4ac7bcf7b5b5391f73c2dccbb082279e0c7389a8f12b889a8d061389785cf9219ca861a8d4b41cc
DIST llvm-project-cde7b30268a85a3e7900a31534a97e7eb4de9236.tar.gz 219048549 BLAKE2B 53bdfea814b2cdf60bfdd27f6135b9f9d5156bdc78d22a361214399c5101b6fafaaefb9109377c1d977c67ebcb1feed69d6aaee0f2e38881480d68ac8be9b3d9 SHA512 0def6da5c2443753f37ba40a893b41dd5c7676b7be57102a5a6e820fe4fe235cad1da9a1c0eff1abc4c4ed5cc188522cae23afeddeee1876ea8ffde5c4f33b9f
+DIST llvm-project-fb2960aad93f6c02e0ea8de0568c0aef8896eee8.tar.gz 219704020 BLAKE2B 91f7226d7c6dcfa82c6b892ec0a80b47b5abd435c39996d8a6e0611355d434a86eb42bd5dce849dcc9a2f0ed2ae9844e5672f45283984ad10c7c12c62c82d47b SHA512 f0b56a4ab532aaf4bb841aac4e2faf63f213f3cd71d24555b46805406502805e6cc46cb0aae0fbf5f49ddec99da801ab8e54410a9bd8a7bcb0e9fb13619c30bf
diff --git a/dev-python/lit/lit-20.0.0_pre20241009.ebuild b/dev-python/lit/lit-20.0.0_pre20241009.ebuild
new file mode 100644
index 000000000000..ab099932bcf2
--- /dev/null
+++ b/dev-python/lit/lit-20.0.0_pre20241009.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9,10,11,12,13} )
+
+inherit distutils-r1 llvm.org
+
+DESCRIPTION="A stand-alone install of the LLVM suite testing tool"
+HOMEPAGE="https://llvm.org/"
+
+LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA"
+SLOT="0"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+# Tests require 'FileCheck' and 'not' utilities (from llvm)
+BDEPEND="
+ test? (
+ dev-python/psutil[${PYTHON_USEDEP}]
+ sys-devel/llvm
+ )
+"
+
+LLVM_COMPONENTS=( llvm/utils/lit )
+llvm.org_set_globals
+
+# TODO: move the manpage generation here (from sys-devel/llvm)
+
+src_prepare() {
+ # flaky test
+ # https://github.com/llvm/llvm-project/issues/72022
+ rm tests/progress-bar.py || die
+
+ cd "${WORKDIR}" || die
+ distutils-r1_src_prepare
+}
+
+python_test() {
+ local -x LIT_PRESERVES_TMP=1
+ local litflags=$(get_lit_flags)
+ ./lit.py ${litflags//;/ } tests || die
+}
diff --git a/dev-python/markupsafe/markupsafe-3.0.1.ebuild b/dev-python/markupsafe/markupsafe-3.0.1.ebuild
index a23173e62b98..03a5c6f0e64f 100644
--- a/dev-python/markupsafe/markupsafe-3.0.1.ebuild
+++ b/dev-python/markupsafe/markupsafe-3.0.1.ebuild
@@ -23,6 +23,11 @@ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv
distutils_enable_tests pytest
+python_compile() {
+ local -x CIBUILDWHEEL=1
+ distutils-r1_python_compile
+}
+
python_test() {
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
epytest
diff --git a/dev-python/multiprocess/files/multiprocess-0.70.17-wheel-tag.patch b/dev-python/multiprocess/files/multiprocess-0.70.17-wheel-tag.patch
new file mode 100644
index 000000000000..5f834c829af5
--- /dev/null
+++ b/dev-python/multiprocess/files/multiprocess-0.70.17-wheel-tag.patch
@@ -0,0 +1,65 @@
+From 6008b92ab778f845b8425f215e0e78d4238b7693 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
+Date: Wed, 9 Oct 2024 09:47:07 +0200
+Subject: [PATCH] enforce correct python tags for pure wheels from setup.py
+
+Enforce correct python tags for pure Python wheels directly from
+`setup.py`. This should be more reliable than the current approach.
+While at it, switch to correct tags for each platforms -- CPython
+uses "cp" (which unlike "py" is not accepted for PyPy), and PyPy can use
+pure "pp" without platform specifiers (since no extensions are
+installed).
+
+Fixes #196
+---
+ pyproject.toml | 1 +
+ setup.py | 10 ++++++++++
+ 2 files changed, 11 insertions(+)
+
+diff --git a/pyproject.toml b/pyproject.toml
+index 5d64e77..38dd6b7 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -1,6 +1,7 @@
+ [build-system]
+ # Further build requirements come from setup.py via the PEP 517 interface
+ requires = [
++ "packaging",
+ "setuptools>=42",
+ ]
+ build-backend = "setuptools.build_meta"
+diff --git a/setup.py b/setup.py
+index aeefecb..5dbca89 100644
+--- a/setup.py
++++ b/setup.py
+@@ -221,6 +221,7 @@ def has_ext_modules(foo):
+
+ def run_setup(with_extensions=True):
+ extensions = []
++ options = {}
+ if with_extensions:
+ extensions = [
+ Extension(
+@@ -232,6 +233,14 @@ def run_setup(with_extensions=True):
+ depends=glob.glob('%s/*.h' % srcdir) + ['setup.py'],
+ ),
+ ]
++ else:
++ import packaging.tags
++
++ tag_name = packaging.tags.interpreter_name()
++ tag_version = packaging.tags.interpreter_version()
++ options['bdist_wheel'] = {
++ 'python_tag':tag_name+tag_version,
++ }
+ packages = find_packages(
+ where=pkgdir,
+ exclude=['ez_setup', 'examples', 'doc',],
+@@ -276,6 +285,7 @@ def run_setup(with_extensions=True):
+ packages=packages,
+ package_dir={'': pkgdir},
+ ext_modules=extensions,
++ options=options,
+ )
+ # add dependencies
+ depend = [dill_version]
diff --git a/dev-python/multiprocess/multiprocess-0.70.17.ebuild b/dev-python/multiprocess/multiprocess-0.70.17-r1.ebuild
index 6635ce296e01..55e2021d94f4 100644
--- a/dev-python/multiprocess/multiprocess-0.70.17.ebuild
+++ b/dev-python/multiprocess/multiprocess-0.70.17-r1.ebuild
@@ -4,7 +4,7 @@
EAPI=8
DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{9,10,11,12,13} )
+PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 )
inherit distutils-r1 pypi
@@ -29,6 +29,21 @@ BDEPEND="
)
"
+distutils_enable_tests unittest
+
+src_prepare() {
+ local PATCHES=(
+ # https://github.com/uqfoundation/multiprocess/pull/197
+ "${FILESDIR}/${P}-wheel-tag.patch"
+ )
+
+ distutils-r1_src_prepare
+
+ # https://github.com/uqfoundation/multiprocess/issues/196
+ sed -i -e '/python-tag/d' setup.cfg || die
+}
+
python_test() {
- "${EPYTHON}" py${EPYTHON#python}/multiprocess/tests/__main__.py -v || die
+ cd "${BUILD_DIR}/install$(python_get_sitedir)" || die
+ eunittest
}
diff --git a/dev-python/setproctitle/setproctitle-1.3.3.ebuild b/dev-python/setproctitle/setproctitle-1.3.3.ebuild
index 75e6a5b49ea7..60d13d4182cc 100644
--- a/dev-python/setproctitle/setproctitle-1.3.3.ebuild
+++ b/dev-python/setproctitle/setproctitle-1.3.3.ebuild
@@ -3,6 +3,8 @@
EAPI=8
+# The package has a fallback implementation which is a noop but warns
+# if the extensions weren't built, so we always build them.
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 )
diff --git a/dev-python/zope-hookable/Manifest b/dev-python/zope-hookable/Manifest
index c04aa7de129d..6844c77727c0 100644
--- a/dev-python/zope-hookable/Manifest
+++ b/dev-python/zope-hookable/Manifest
@@ -1,2 +1 @@
-DIST zope.hookable-6.0.tar.gz 24013 BLAKE2B 808005d0993e22967bc7a73a7b8a26f2263dfc9f3f33d840495a233ea8686a5e700ee46cf0dad8e37aeebb0383ec51b15a4f98323daf4d6bb606fc1ab149f39e SHA512 33d1200a24fc664ed9c7942f71b003704fda21ac42f5acc24611838aa4e8096a27a5da01956ec824105d454a0580480ce8a262c8f5c4f24782ab11416d9fdafd
DIST zope_hookable-7.0.tar.gz 21392 BLAKE2B e6b2921f68be1f5156fede45db2a71e6394785bd5e0a4aff86a5cf943b790e0d26163391bd448739ad074e8b792b37334e48c05086268509d980035bac260066 SHA512 f927a0e15aef9adca72f25c21f2c374d6235d8e3abca9d5d9832e9c8d9b70accebfec2cac339ae360d142e69f69f920c7b2bdbbf230c975fe2c362887380a34d
diff --git a/dev-python/zope-hookable/zope-hookable-6.0.ebuild b/dev-python/zope-hookable/zope-hookable-6.0.ebuild
deleted file mode 100644
index a23124659038..000000000000
--- a/dev-python/zope-hookable/zope-hookable-6.0.ebuild
+++ /dev/null
@@ -1,45 +0,0 @@
-# Copyright 2022-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_EXT=1
-DISTUTILS_USE_PEP517=setuptools
-PYPI_NO_NORMALIZE=1
-PYPI_PN=${PN/-/.}
-PYTHON_COMPAT=( python3_{9,10,11,12,13} )
-
-inherit distutils-r1 pypi
-
-DESCRIPTION="Efficient creation of 'hookable' objects"
-HOMEPAGE="
- https://pypi.org/project/zope.hookable/
- https://github.com/zopefoundation/zope.hookable/
-"
-
-LICENSE="ZPL"
-SLOT="0"
-KEYWORDS="amd64 ~arm arm64 ~ppc64 ~riscv x86"
-
-BDEPEND="
- test? (
- dev-python/zope-testing[${PYTHON_USEDEP}]
- )
-"
-
-distutils_enable_tests unittest
-
-src_prepare() {
- # strip rdep specific to namespaces
- sed -i -e "/'setuptools'/d" setup.py || die
- distutils-r1_src_prepare
-}
-
-python_compile() {
- distutils-r1_python_compile
- find "${BUILD_DIR}" -name '*.pth' -delete || die
-}
-
-python_test() {
- eunittest -s "${BUILD_DIR}/install$(python_get_sitedir)/zope/hookable/tests"
-}