summaryrefslogtreecommitdiff
path: root/dev-python/multiprocess
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-12 19:09:37 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-12 19:09:37 -0500
commitb590c8d7572b727d565cc0b8ff660d43569845de (patch)
tree06f7a4102ea4e845df8b66660f252920d52952f9 /dev-python/multiprocess
parent24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff)
downloadbaldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz
baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz
baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip
Adding metadata
Diffstat (limited to 'dev-python/multiprocess')
-rw-r--r--dev-python/multiprocess/Manifest1
-rw-r--r--dev-python/multiprocess/files/multiprocess-0.70.17-wheel-tag.patch65
-rw-r--r--dev-python/multiprocess/metadata.xml9
-rw-r--r--dev-python/multiprocess/multiprocess-0.70.19.ebuild49
4 files changed, 124 insertions, 0 deletions
diff --git a/dev-python/multiprocess/Manifest b/dev-python/multiprocess/Manifest
new file mode 100644
index 000000000000..34c0beab5478
--- /dev/null
+++ b/dev-python/multiprocess/Manifest
@@ -0,0 +1 @@
+DIST multiprocess-0.70.19.tar.gz 2079989 BLAKE2B 7095ebb3cf86804536b2343ec262c4b898b0324c4f4d8b46c71cc0578fde8581b81fc559d67fb5ee439d198a87dc0fbcd4c47bd0d090a930ef2712deed515d0e SHA512 12cf70ebcfe22e2997f4744e2250caa29c92c26f696cf79c7a71bc5cf12b03fe94af45b95a065311cd367032795b4d19f39bdd7bf1022c7604db666509c33bfc
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/metadata.xml b/dev-python/multiprocess/metadata.xml
new file mode 100644
index 000000000000..31493193c995
--- /dev/null
+++ b/dev-python/multiprocess/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>tupone@gentoo.org</email>
+ <name>Tupone Alfredo</name>
+ </maintainer>
+ <origin>baldeagleos-repo</origin>
+</pkgmetadata>
diff --git a/dev-python/multiprocess/multiprocess-0.70.19.ebuild b/dev-python/multiprocess/multiprocess-0.70.19.ebuild
new file mode 100644
index 000000000000..371ee762672d
--- /dev/null
+++ b/dev-python/multiprocess/multiprocess-0.70.19.ebuild
@@ -0,0 +1,49 @@
+# Copyright 2023-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{13..14} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Better multiprocessing and multithreading in Python"
+HOMEPAGE="
+ https://github.com/uqfoundation/multiprocess/
+ https://pypi.org/project/multiprocess/
+"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ >=dev-python/dill-0.4.1[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ test? (
+ dev-python/test[${PYTHON_USEDEP}]
+ )
+"
+
+distutils_enable_tests unittest
+
+src_prepare() {
+ local PATCHES=(
+ # https://github.com/uqfoundation/multiprocess/pull/197
+ "${FILESDIR}/${PN}-0.70.17-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() {
+ cd "${BUILD_DIR}/install$(python_get_sitedir)" || die
+ eunittest
+}