summaryrefslogtreecommitdiff
path: root/dev-python
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2023-08-06 18:57:22 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2023-08-06 18:57:22 +0000
commit2a0a7842613c7b604b93722ec657df60efede78e (patch)
tree1ee2cf14d3e2b9acf11b043a31bb0570dc004d4c /dev-python
parentce06bfef04eb51813858eb7bbf0a90e63db7fb6a (diff)
downloadbaldeagleos-repo-2a0a7842613c7b604b93722ec657df60efede78e.tar.gz
baldeagleos-repo-2a0a7842613c7b604b93722ec657df60efede78e.tar.xz
baldeagleos-repo-2a0a7842613c7b604b93722ec657df60efede78e.zip
Adding metadata
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/adblock/adblock-0.6.0.ebuild33
-rw-r--r--dev-python/fastbencode/fastbencode-0.2.ebuild12
-rw-r--r--dev-python/fastbencode/files/fastbencode-0.2-py312.patch35
-rw-r--r--dev-python/frozenlist/frozenlist-1.4.0.ebuild23
-rw-r--r--dev-python/frozenlist/metadata.xml6
-rw-r--r--dev-python/hypothesis/Manifest1
-rw-r--r--dev-python/hypothesis/hypothesis-6.82.1.ebuild91
-rw-r--r--dev-python/jaraco-functools/Manifest1
-rw-r--r--dev-python/jaraco-functools/jaraco-functools-3.8.1.ebuild56
-rw-r--r--dev-python/jq/jq-1.4.1.ebuild3
-rw-r--r--dev-python/libarchive-c/Manifest1
-rw-r--r--dev-python/libarchive-c/libarchive-c-4.0-r1.ebuild36
-rw-r--r--dev-python/line_profiler/line_profiler-4.0.3.ebuild3
-rw-r--r--dev-python/mediafile/Manifest1
-rw-r--r--dev-python/mediafile/mediafile-0.11.0.ebuild31
-rw-r--r--dev-python/msgpack/msgpack-1.0.5.ebuild5
-rw-r--r--dev-python/multidict/metadata.xml6
-rw-r--r--dev-python/multidict/multidict-6.0.4-r1.ebuild (renamed from dev-python/multidict/multidict-6.0.4.ebuild)16
-rw-r--r--dev-python/plyr/Manifest2
-rw-r--r--dev-python/plyr/plyr-1.0.6-r1.ebuild6
-rw-r--r--dev-python/pyclipper/pyclipper-1.3.0_p4.ebuild4
-rw-r--r--dev-python/pydyf/Manifest1
-rw-r--r--dev-python/pydyf/pydyf-0.6.0.ebuild28
-rw-r--r--dev-python/pyproj/pyproj-3.6.0.ebuild3
-rw-r--r--dev-python/python-box/python-box-7.0.1.ebuild12
-rw-r--r--dev-python/shapely/shapely-2.0.1.ebuild2
-rw-r--r--dev-python/slixmpp/slixmpp-1.8.4.ebuild8
-rw-r--r--dev-python/slixmpp/slixmpp-9999.ebuild8
-rw-r--r--dev-python/thriftpy2/thriftpy2-0.4.16.ebuild3
-rw-r--r--dev-python/tinycss/tinycss-0.4-r1.ebuild4
-rw-r--r--dev-python/uvloop/uvloop-0.17.0.ebuild1
31 files changed, 313 insertions, 129 deletions
diff --git a/dev-python/adblock/adblock-0.6.0.ebuild b/dev-python/adblock/adblock-0.6.0.ebuild
index ee74511bd834..84b5cca747a3 100644
--- a/dev-python/adblock/adblock-0.6.0.ebuild
+++ b/dev-python/adblock/adblock-0.6.0.ebuild
@@ -67,7 +67,8 @@ CRATES="
windows_i686_gnu@0.36.1
windows_i686_msvc@0.36.1
windows_x86_64_gnu@0.36.1
- windows_x86_64_msvc@0.36.1"
+ windows_x86_64_msvc@0.36.1
+"
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=maturin
PYTHON_COMPAT=( python3_{7,8,9,10,11} )
@@ -78,13 +79,15 @@ HOMEPAGE="https://github.com/ArniDagur/python-adblock"
SRC_URI="
https://github.com/ArniDagur/python-adblock/archive/refs/tags/${PV}.tar.gz
-> ${P}.gh.tar.gz
- ${CARGO_CRATE_URIS}"
+ ${CARGO_CRATE_URIS}
+"
S="${WORKDIR}/python-${P}"
LICENSE="|| ( MIT Apache-2.0 )"
LICENSE+="
Apache-2.0 Apache-2.0-with-LLVM-exceptions MIT MPL-2.0
- Unicode-DFS-2016" # crates
+ Unicode-DFS-2016
+" # crates
SLOT="0"
KEYWORDS="amd64 ~arm64 ~x86"
@@ -98,16 +101,18 @@ PATCHES=(
"${FILESDIR}"/${P}-maturin-0.14.13.patch
)
-EPYTEST_IGNORE=(
- # not very meaningful here (e.g. validates changelog),
- # and needs the deprecated dev-python/toml
- tests/test_metadata.py
-)
-
-src_compile() {
- distutils-r1_src_compile
+python_test() {
+ local EPYTEST_DESELECT=(
+ # unimportant (for us) test that uses the dir that we delete below
+ # so pytest does not try to load it while lacking extensions
+ tests/test_typestubs.py::test_functions_and_methods_exist_in_rust
+ )
+ local EPYTEST_IGNORE=(
+ # not very meaningful here (e.g. validates changelog),
+ # and needs the deprecated dev-python/toml
+ tests/test_metadata.py
+ )
- # prevent pytest from using ./adblock that lack the built module
- # but the keep directory given tests check ./adblock/adblock.pyi
- rm adblock/__init__.py || die
+ rm -rf adblock || die
+ epytest
}
diff --git a/dev-python/fastbencode/fastbencode-0.2.ebuild b/dev-python/fastbencode/fastbencode-0.2.ebuild
index 1030b92e7ea0..d2f93014f7e8 100644
--- a/dev-python/fastbencode/fastbencode-0.2.ebuild
+++ b/dev-python/fastbencode/fastbencode-0.2.ebuild
@@ -11,7 +11,7 @@ inherit distutils-r1 pypi
DESCRIPTION="Implementation of bencode with optional fast C extensions"
HOMEPAGE="
- https://github.com/breezy-team/fastbencode
+ https://github.com/breezy-team/fastbencode/
https://pypi.org/project/fastbencode/
"
@@ -24,3 +24,13 @@ BDEPEND="
"
distutils_enable_tests unittest
+
+PATCHES=(
+ # https://github.com/breezy-team/fastbencode/commit/23e8cadcc81c6649d96742f235a98bd3047e5d8a
+ "${FILESDIR}"/${P}-py312.patch
+)
+
+python_test() {
+ cd fastbencode/tests || die
+ eunittest
+}
diff --git a/dev-python/fastbencode/files/fastbencode-0.2-py312.patch b/dev-python/fastbencode/files/fastbencode-0.2-py312.patch
new file mode 100644
index 000000000000..78c42c7b2fa7
--- /dev/null
+++ b/dev-python/fastbencode/files/fastbencode-0.2-py312.patch
@@ -0,0 +1,35 @@
+From 23e8cadcc81c6649d96742f235a98bd3047e5d8a Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Jelmer=20Vernoo=C4=B3?= <jelmer@jelmer.uk>
+Date: Tue, 11 Jul 2023 11:45:47 +0000
+Subject: [PATCH] Fix compatibility with python 3.12
+
+Fixes #23
+---
+ fastbencode/tests/test_bencode.py | 14 ++++++++++----
+ 1 file changed, 10 insertions(+), 4 deletions(-)
+
+diff --git a/fastbencode/tests/test_bencode.py b/fastbencode/tests/test_bencode.py
+index 50e8e06..61cd8b5 100644
+--- a/fastbencode/tests/test_bencode.py
++++ b/fastbencode/tests/test_bencode.py
+@@ -287,10 +287,16 @@ def test_list(self):
+
+ def test_list_deepnested(self):
+ import platform
+- if platform.python_implementation() == 'PyPy':
+- self.skipTest('recursion not an issue on pypy')
+- with RecursionLimit():
+- self._run_check_error(RuntimeError, (b"l" * 100) + (b"e" * 100))
++ if (platform.python_implementation() == 'PyPy'
++ or sys.version_info[:2] >= (3, 12)):
++ expected = []
++ for i in range(99):
++ expected = [expected]
++ self._check(expected, (b"l" * 100) + (b"e" * 100))
++ else:
++ with RecursionLimit():
++ self._run_check_error(
++ RuntimeError, (b"l" * 100) + (b"e" * 100))
+
+ def test_malformed_list(self):
+ self._run_check_error(ValueError, b'l')
diff --git a/dev-python/frozenlist/frozenlist-1.4.0.ebuild b/dev-python/frozenlist/frozenlist-1.4.0.ebuild
index 024a19cb9364..5101debdc48c 100644
--- a/dev-python/frozenlist/frozenlist-1.4.0.ebuild
+++ b/dev-python/frozenlist/frozenlist-1.4.0.ebuild
@@ -22,11 +22,14 @@ SRC_URI="
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+IUSE="+native-extensions"
BDEPEND="
- $(python_gen_cond_dep '
- dev-python/cython[${PYTHON_USEDEP}]
- ' 'python*')
+ native-extensions? (
+ $(python_gen_cond_dep '
+ dev-python/cython[${PYTHON_USEDEP}]
+ ' 'python*')
+ )
"
distutils_enable_tests pytest
@@ -36,10 +39,20 @@ src_prepare() {
distutils-r1_src_prepare
}
-python_configure() {
+python_compile() {
# pypy is not using the C extension
- if [[ ${EPYTHON} == python* ]]; then
+ if use native-extensions && [[ ${EPYTHON} == python* ]]; then
> .install-cython || die
emake cythonize
+ else
+ local -x FROZENLIST_NO_EXTENSIONS=1
fi
+
+ distutils-r1_python_compile
+}
+
+python_test() {
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ rm -rf frozenlist || die
+ epytest
}
diff --git a/dev-python/frozenlist/metadata.xml b/dev-python/frozenlist/metadata.xml
index 7ad11570cc7d..8934054b9081 100644
--- a/dev-python/frozenlist/metadata.xml
+++ b/dev-python/frozenlist/metadata.xml
@@ -5,5 +5,11 @@
<email>python@gentoo.org</email>
</maintainer>
+ <use>
+ <flag name="native-extensions">
+ Compile native C extensions (speedups, instead of using Python
+ fallback code).
+ </flag>
+ </use>
<origin>gentoo-staging</origin>
</pkgmetadata> \ No newline at end of file
diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest
index f28c3fb9bf3b..c1a3751a2ae4 100644
--- a/dev-python/hypothesis/Manifest
+++ b/dev-python/hypothesis/Manifest
@@ -2,3 +2,4 @@ DIST hypothesis-6.80.1.gh.tar.gz 9376526 BLAKE2B edb7012b17f1634745d81de74934424
DIST hypothesis-6.81.1.gh.tar.gz 9377813 BLAKE2B 6ba0d9bd8fd12d521909151c7bb04ea729df1adb4dc401359de7accf75cf78981c3e2dbda1c22cb05ca48d550f8a97d19deea86249ac056b5fc34fca20ffb2b7 SHA512 54d13f249fe02fdd99726304a87ca1fe174f47137006fe147ed2b47875136f2d77f24be0bb77e91a04edff8db2230563627c75e9d164adf859284e5ce873369d
DIST hypothesis-6.81.2.gh.tar.gz 9378154 BLAKE2B d4654e8de621af93fa6ab013bf45ea1c2e8b273f38cf0dddbe00853d197487acf2a9457a33e59fd59b9c5c7dca08a84867a835cdfa8e4a63181df5105889c360 SHA512 41f5e6b8382c08dd0e4285836a3f1308f6666d86387e10899c5ef8839598e097d31a5360cf7d47f2d30c287ad575787ecb44c236ad83c52202cf8895046c56a0
DIST hypothesis-6.82.0.gh.tar.gz 9378337 BLAKE2B fb99a499c7b850c4d81f01b99969d611ee8a39a1b1d1a5306b72999b1ca20d605fb42adbc090eedbe06359056d05860e2166be9f8f8001460ea61b398a432de6 SHA512 2f8b16c1a32340a3aa742627cbbc958cb06e8966b704bd389c8677d58fc3e76e6988705315d570daeb46975839b1c725f5f6a937ff1c326cbed144659ec44d05
+DIST hypothesis-6.82.1.gh.tar.gz 9378717 BLAKE2B 2127d101f5c477fa99abe07df09928d0be475dd052f8f121ec038488eb4b5b35508b09524ae06ae8fe41712724fbb50f8db4aa72472a7315cc3ad68b9000371e SHA512 3fb983b2246aaa9860694f07eee9fafb28f560b3ba105544d3d4345ba323543f194109b710c639e86287572ad5ed141c2edf6c89c0f4a71a003505a797effddc
diff --git a/dev-python/hypothesis/hypothesis-6.82.1.ebuild b/dev-python/hypothesis/hypothesis-6.82.1.ebuild
new file mode 100644
index 000000000000..45ac15b82e26
--- /dev/null
+++ b/dev-python/hypothesis/hypothesis-6.82.1.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+CLI_COMPAT=( python3_{10..12} )
+PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 )
+PYTHON_REQ_USE="threads(+),sqlite"
+
+inherit distutils-r1 multiprocessing optfeature
+
+TAG=hypothesis-python-${PV}
+MY_P=hypothesis-${TAG}
+DESCRIPTION="A library for property based testing"
+HOMEPAGE="
+ https://github.com/HypothesisWorks/hypothesis/
+ https://pypi.org/project/hypothesis/
+"
+SRC_URI="
+ https://github.com/HypothesisWorks/hypothesis/archive/${TAG}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+S="${WORKDIR}/${MY_P}/hypothesis-python"
+
+LICENSE="MPL-2.0"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+IUSE="cli"
+
+RDEPEND="
+ >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}]
+ >=dev-python/sortedcontainers-2.1.0[${PYTHON_USEDEP}]
+ $(python_gen_cond_dep '
+ >=dev-python/exceptiongroup-1.0.0_rc8[${PYTHON_USEDEP}]
+ ' 3.9 3.10)
+ cli? (
+ $(python_gen_cond_dep '
+ dev-python/black[${PYTHON_USEDEP}]
+ dev-python/click[${PYTHON_USEDEP}]
+ ' "${CLI_COMPAT[@]}")
+ )
+"
+BDEPEND="
+ test? (
+ dev-python/mock[${PYTHON_USEDEP}]
+ dev-python/pexpect[${PYTHON_USEDEP}]
+ dev-python/pytest-xdist[${PYTHON_USEDEP}]
+ !!<dev-python/requests-toolbelt-0.10.1
+ )
+"
+
+distutils_enable_tests pytest
+
+python_test() {
+ # subtests are broken by warnings from random plugins
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ local -x PYTEST_PLUGINS=xdist.plugin,pytest_forked,_hypothesis_pytestplugin
+ local -x HYPOTHESIS_NO_PLUGINS=1
+
+ # NB: paths need to be relative to pytest.ini,
+ # i.e. start with hypothesis-python/
+ local EPYTEST_DESELECT=()
+ case ${EPYTHON} in
+ pypy3)
+ EPYTEST_DESELECT+=(
+ # failing due to warnings from numpy/cython
+ hypothesis-python/tests/pytest/test_fixtures.py::test_given_plus_overridden_fixture
+ )
+ ;;
+ esac
+
+ epytest -o filterwarnings= -n "$(makeopts_jobs)" \
+ tests/cover tests/pytest tests/quality
+}
+
+python_install() {
+ distutils-r1_python_install
+ if ! use cli || ! has "${EPYTHON}" "${CLI_COMPAT[@]/_/.}"; then
+ rm -r "${ED}/usr/bin" "${D}$(python_get_scriptdir)" || die
+ fi
+}
+
+pkg_postinst() {
+ optfeature "datetime support" dev-python/pytz
+ optfeature "dateutil support" dev-python/python-dateutil
+ optfeature "numpy support" dev-python/numpy
+ optfeature "django support" dev-python/django dev-python/pytz
+ optfeature "pandas support" dev-python/pandas
+ optfeature "pytest support" dev-python/pytest
+}
diff --git a/dev-python/jaraco-functools/Manifest b/dev-python/jaraco-functools/Manifest
index 8bcef4e1bf8a..54226557c09d 100644
--- a/dev-python/jaraco-functools/Manifest
+++ b/dev-python/jaraco-functools/Manifest
@@ -1 +1,2 @@
DIST jaraco.functools-3.8.0.tar.gz 16251 BLAKE2B 15735a053b395173de2568d13d54d0a770477f72e138998abb67f24314d13ae1a008a2b373979dfb8b3b8955754758e07eb5981459b793ba4b6839e6aefbdda8 SHA512 923e94f54c46896d89db6b4a0c5d803996dc5caddd6a3ada66f943b58afd1750f5403d10de5ab87f93e57c3eab43806401f7c6b5a8265938793d45cba93df688
+DIST jaraco.functools-3.8.1.tar.gz 16210 BLAKE2B 2e49829c4eda4ba9228c8972b1971c1a42bb972e5a7f0ef9994313b4b07cb8395c0b0ccc15c5f285a6a224ad60dec65901742c5f162156c4be96257a9ef9f67c SHA512 0ffd8fc0e973b0ee957cbc074dcae790530c6a944a54ae36e3feee954a59765663b8a734e5c1d1e56975c958b47560eb1f23b510028fee6cf682aeaf175c9460
diff --git a/dev-python/jaraco-functools/jaraco-functools-3.8.1.ebuild b/dev-python/jaraco-functools/jaraco-functools-3.8.1.ebuild
new file mode 100644
index 000000000000..412f59d3a5b6
--- /dev/null
+++ b/dev-python/jaraco-functools/jaraco-functools-3.8.1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# please keep this ebuild at EAPI 7 -- sys-apps/portage dep
+EAPI=7
+
+DISTUTILS_USE_PEP517=flit
+PYPI_NO_NORMALIZE=1
+PYPI_PN=${PN/-/.}
+PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Additional functions used by other projects by developer jaraco"
+HOMEPAGE="
+ https://github.com/jaraco/jaraco.functools/
+ https://pypi.org/project/jaraco.functools/
+"
+
+LICENSE="MIT"
+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"
+
+RDEPEND="
+ >=dev-python/more-itertools-0.12.0-r1[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ test? (
+ dev-python/jaraco-classes[${PYTHON_USEDEP}]
+ )
+"
+
+distutils_enable_tests pytest
+
+src_configure() {
+ grep -q 'build-backend = "setuptools' pyproject.toml ||
+ die "Upstream changed build-backend, recheck"
+ # write a custom pyproject.toml to ease setuptools bootstrap
+ cat > pyproject.toml <<-EOF || die
+ [build-system]
+ requires = ["flit_core >=3.2,<4"]
+ build-backend = "flit_core.buildapi"
+
+ [project]
+ name = "jaraco.functools"
+ version = "${PV}"
+ description = "Functools like those found in stdlib"
+ EOF
+}
+
+python_install() {
+ distutils-r1_python_install
+ # rename to workaround a bug in pkg_resources
+ # https://bugs.gentoo.org/834522
+ mv "${D}$(python_get_sitedir)"/jaraco{_,.}functools-${PV}.dist-info || die
+}
diff --git a/dev-python/jq/jq-1.4.1.ebuild b/dev-python/jq/jq-1.4.1.ebuild
index 3763b3c01f15..5464aa91f1f3 100644
--- a/dev-python/jq/jq-1.4.1.ebuild
+++ b/dev-python/jq/jq-1.4.1.ebuild
@@ -25,8 +25,9 @@ LICENSE="BSD-2"
SLOT="0"
KEYWORDS="amd64 x86"
+# cython<3: https://bugs.gentoo.org/898684
BDEPEND="
- dev-python/cython[${PYTHON_USEDEP}]
+ <dev-python/cython-3[${PYTHON_USEDEP}]
"
distutils_enable_tests pytest
diff --git a/dev-python/libarchive-c/Manifest b/dev-python/libarchive-c/Manifest
index 985483415fed..f7d764a464da 100644
--- a/dev-python/libarchive-c/Manifest
+++ b/dev-python/libarchive-c/Manifest
@@ -1,2 +1 @@
-DIST python-libarchive-c-4.0.gh.tar.gz 47727 BLAKE2B 87f8cfb0adf080b11df85d065fbcc38bf5682592882b3a8a8077e5cfb590cc10a05b98c98a2be41570aa59d06899b2e47815183e563007b1077717cdaa79a21c SHA512 1544713802789859ffa9a0d8f4e490f720bbd4d589aae8899d0d1fb6780f2cde0db96f3023c1c32eacea07ea325ac180797aebdb0e8e37093af53807f2e5c812
DIST python-libarchive-c-5.0.gh.tar.gz 48751 BLAKE2B 2ab737c7493c202ba9a1ad57e1066aad12ea984bfa0e63115f59491ea14b3bd1d46d2bb20f033bf5bae64a6badf73b641183f63cc79c9f0e6141792a35521dc4 SHA512 df4758f4b7207fe77ae650aa78c302e9e2a0c7ba81fbeae70af8cb37789a056bc420acd73c1d5baec7b0e93a47fd3e5130db8e43c983f4723366f75a58823f75
diff --git a/dev-python/libarchive-c/libarchive-c-4.0-r1.ebuild b/dev-python/libarchive-c/libarchive-c-4.0-r1.ebuild
deleted file mode 100644
index 6463d73dba02..000000000000
--- a/dev-python/libarchive-c/libarchive-c-4.0-r1.ebuild
+++ /dev/null
@@ -1,36 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{7,8,9,10,11} )
-
-inherit distutils-r1
-
-MY_P=python-libarchive-c-${PV}
-DESCRIPTION="A Python interface to libarchive"
-HOMEPAGE="
- https://github.com/Changaco/python-libarchive-c/
- https://pypi.org/project/libarchive-c/
-"
-SRC_URI="
- https://github.com/Changaco/python-libarchive-c/archive/${PV}.tar.gz
- -> ${MY_P}.gh.tar.gz
-"
-S=${WORKDIR}/${MY_P}
-
-LICENSE="CC0-1.0"
-SLOT="0"
-KEYWORDS="amd64 ~arm ~arm64 ~ia64 ~ppc64 x86"
-
-RDEPEND="
- app-arch/libarchive
-"
-BDEPEND="
- test? (
- dev-python/mock[${PYTHON_USEDEP}]
- )
-"
-
-distutils_enable_tests pytest
diff --git a/dev-python/line_profiler/line_profiler-4.0.3.ebuild b/dev-python/line_profiler/line_profiler-4.0.3.ebuild
index d8248d74771d..cb7264de11af 100644
--- a/dev-python/line_profiler/line_profiler-4.0.3.ebuild
+++ b/dev-python/line_profiler/line_profiler-4.0.3.ebuild
@@ -26,8 +26,9 @@ KEYWORDS="~amd64 ~x86"
RDEPEND="
dev-python/ipython[${PYTHON_USEDEP}]
"
+# <cython-3: https://bugs.gentoo.org/911735
BDEPEND="
- dev-python/cython[${PYTHON_USEDEP}]
+ <dev-python/cython-3[${PYTHON_USEDEP}]
test? (
dev-python/coverage[${PYTHON_USEDEP}]
dev-python/ubelt[${PYTHON_USEDEP}]
diff --git a/dev-python/mediafile/Manifest b/dev-python/mediafile/Manifest
index 42df249b89e0..ee03b22a0ce5 100644
--- a/dev-python/mediafile/Manifest
+++ b/dev-python/mediafile/Manifest
@@ -1,2 +1 @@
-DIST mediafile-0.11.0.gh.tar.gz 568718 BLAKE2B 3815af2985312d5464158ae3aaecd23eadf53bec4f6b66247014dd5c3768262d33d0d6b7234d69d6169de77d2f8d9fab2c005c75e2774a53951451b08511971e SHA512 2e4f11995a8d83dcbfe6aa01f5162db0f01851bb93e8ad9ffc50afca703edd6a23c4f5a3b94d2fd6e07285534d081f78ea384d04b3858eefa58216e415a8498b
DIST mediafile-0.12.0.gh.tar.gz 568721 BLAKE2B 659ba62622a85786073b3ecc09cf0d09b16fb1ae832e1b62ef40546745bc271d33587efb12ef70fb7306fd2bb419db1b5b11bfc886048f46f956162d9f01e76e SHA512 a89d683154f71214f018cdee28c0faffa0a3ffeda20798cb135a711d9449b742186b5715858dce9ab06908e7d2c0f09a17f038adcd05369c185cd25b59146dbe
diff --git a/dev-python/mediafile/mediafile-0.11.0.ebuild b/dev-python/mediafile/mediafile-0.11.0.ebuild
deleted file mode 100644
index e98a6bda2a3b..000000000000
--- a/dev-python/mediafile/mediafile-0.11.0.ebuild
+++ /dev/null
@@ -1,31 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=flit
-PYTHON_COMPAT=( python3_{7,8,9,10,11} )
-
-inherit distutils-r1
-
-DESCRIPTION="Read and write audio files' tags in Python"
-HOMEPAGE="
- https://github.com/beetbox/mediafile/
- https://pypi.org/project/mediafile/
-"
-SRC_URI="
- https://github.com/beetbox/mediafile/archive/v${PV}.tar.gz
- -> ${P}.gh.tar.gz
-"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="amd64 ~x86"
-
-RDEPEND="
- >=dev-python/six-1.9.0[${PYTHON_USEDEP}]
- >=media-libs/mutagen-1.46.0[${PYTHON_USEDEP}]
-"
-
-distutils_enable_sphinx docs
-distutils_enable_tests unittest
diff --git a/dev-python/msgpack/msgpack-1.0.5.ebuild b/dev-python/msgpack/msgpack-1.0.5.ebuild
index fa531b3dc921..4b1d17e9283b 100644
--- a/dev-python/msgpack/msgpack-1.0.5.ebuild
+++ b/dev-python/msgpack/msgpack-1.0.5.ebuild
@@ -42,3 +42,8 @@ python_prepare_all() {
distutils-r1_python_prepare_all
}
+
+python_test() {
+ rm -rf msgpack || die
+ epytest
+}
diff --git a/dev-python/multidict/metadata.xml b/dev-python/multidict/metadata.xml
index 7216aa3854f1..a8f3b05befde 100644
--- a/dev-python/multidict/metadata.xml
+++ b/dev-python/multidict/metadata.xml
@@ -10,5 +10,11 @@
<name>Python</name>
</maintainer>
+ <use>
+ <flag name="native-extensions">
+ Compile native C extensions (speedups, instead of using Python
+ fallback code).
+ </flag>
+ </use>
<origin>gentoo-staging</origin>
</pkgmetadata> \ No newline at end of file
diff --git a/dev-python/multidict/multidict-6.0.4.ebuild b/dev-python/multidict/multidict-6.0.4-r1.ebuild
index 5098f9b33a75..2c61d6281834 100644
--- a/dev-python/multidict/multidict-6.0.4.ebuild
+++ b/dev-python/multidict/multidict-6.0.4-r1.ebuild
@@ -22,6 +22,7 @@ SRC_URI="
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos"
+IUSE="+native-extensions"
distutils_enable_sphinx docs --no-autodoc
distutils_enable_tests pytest
@@ -32,3 +33,18 @@ python_prepare_all() {
distutils-r1_python_prepare_all
}
+
+python_compile() {
+ # the C extension segfaults on py3.12
+ # https://github.com/aio-libs/multidict/issues/868
+ if ! use native-extensions || [[ ${EPYTHON} == python3.12 ]]; then
+ local -x MULTIDICT_NO_EXTENSIONS=1
+ fi
+
+ distutils-r1_python_compile
+}
+
+python_test() {
+ rm -rf multidict || die
+ epytest
+}
diff --git a/dev-python/plyr/Manifest b/dev-python/plyr/Manifest
index 3ee06dbd0d8f..bd04cbe3a715 100644
--- a/dev-python/plyr/Manifest
+++ b/dev-python/plyr/Manifest
@@ -1 +1 @@
-DIST python-glyr-1.0.6.tar.gz 42952 BLAKE2B fd95ef9fd01788c6f6526eabb77cc2c93bd28324066cfb1a4be70a5990bb1599e57e40d607f926a7216c582389e9763bdc92fbd411cdeef52aa86e1ba6138c83 SHA512 c4b04b1379116048f78c3ce5f9d30c92fd0d7198bfda456891d3012d115b86a5970595d9b4bc1d43028e87c9d467c35a7d02c7f3a9f4670dae8a17c22d1ab58a
+DIST python-glyr-1.0.6.gh.tar.gz 42952 BLAKE2B fd95ef9fd01788c6f6526eabb77cc2c93bd28324066cfb1a4be70a5990bb1599e57e40d607f926a7216c582389e9763bdc92fbd411cdeef52aa86e1ba6138c83 SHA512 c4b04b1379116048f78c3ce5f9d30c92fd0d7198bfda456891d3012d115b86a5970595d9b4bc1d43028e87c9d467c35a7d02c7f3a9f4670dae8a17c22d1ab58a
diff --git a/dev-python/plyr/plyr-1.0.6-r1.ebuild b/dev-python/plyr/plyr-1.0.6-r1.ebuild
index d57911e72539..c93b0cf4a82e 100644
--- a/dev-python/plyr/plyr-1.0.6-r1.ebuild
+++ b/dev-python/plyr/plyr-1.0.6-r1.ebuild
@@ -19,7 +19,8 @@ HOMEPAGE="
https://pypi.org/project/plyr/
"
SRC_URI="
- https://github.com/sahib/${MY_PN}/archive/${PV}.tar.gz -> ${MY_P}.tar.gz
+ https://github.com/sahib/${MY_PN}/archive/${PV}.tar.gz
+ -> ${MY_P}.gh.tar.gz
"
S="${WORKDIR}/${MY_P}"
@@ -33,8 +34,9 @@ DEPEND="
RDEPEND="
${DEPEND}
"
+# <cython-3: https://bugs.gentoo.org/898696
BDEPEND="
- dev-python/cython[${PYTHON_USEDEP}]
+ <dev-python/cython-3[${PYTHON_USEDEP}]
"
distutils_enable_sphinx docs/source
diff --git a/dev-python/pyclipper/pyclipper-1.3.0_p4.ebuild b/dev-python/pyclipper/pyclipper-1.3.0_p4.ebuild
index 7514d1bf4ba9..8578fa68d357 100644
--- a/dev-python/pyclipper/pyclipper-1.3.0_p4.ebuild
+++ b/dev-python/pyclipper/pyclipper-1.3.0_p4.ebuild
@@ -24,10 +24,10 @@ S=${WORKDIR}/${MY_P}
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ~arm arm64 ~loong ~ppc64 ~riscv x86"
-IUSE=""
+# <cython-3: https://bugs.gentoo.org/898698
BDEPEND="
- dev-python/cython[${PYTHON_USEDEP}]
+ <dev-python/cython-3[${PYTHON_USEDEP}]
dev-python/setuptools-scm[${PYTHON_USEDEP}]
"
diff --git a/dev-python/pydyf/Manifest b/dev-python/pydyf/Manifest
index a00496e7a639..74dd6d3af7f7 100644
--- a/dev-python/pydyf/Manifest
+++ b/dev-python/pydyf/Manifest
@@ -1,2 +1 @@
-DIST pydyf-0.6.0.tar.gz 16027 BLAKE2B 8dcbcb0cdd6f27aae53d74c1f60646bda17b05862d3fcdfdf18d459fd0f419f9418488bddf210f29cca945adba3670b41d67d958ebff031934db57ab954ab554 SHA512 2819aab7b9e72abd02b8658923b595fe0775f341a829b732e1448c02a4aeb8538a7eb5d42307499e255e240c00f8a991687f42122348bcc39e6660c8c27e4f85
DIST pydyf-0.7.0.tar.gz 16186 BLAKE2B 8dec96ba9d263ed503f1b13c8cfc6eafbd66c7d1cc080b5a18476c93063c0099c46c3362bbeeb71a796fbfdadbd2007c9858b21053464adc243a7d1f7a2f9a54 SHA512 cfc58170b57684cbf5233ca48798881a980af0b3e3fdc8da91c5932affee0365f1e9d535df1f983e0f16c6e612ec5048c91d236bf69b6fae46c7e59f6c2388d0
diff --git a/dev-python/pydyf/pydyf-0.6.0.ebuild b/dev-python/pydyf/pydyf-0.6.0.ebuild
deleted file mode 100644
index 0dde48ae66ad..000000000000
--- a/dev-python/pydyf/pydyf-0.6.0.ebuild
+++ /dev/null
@@ -1,28 +0,0 @@
-# Copyright 2021-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=flit
-PYTHON_COMPAT=( python3_{7,8,9,10,11} )
-
-inherit distutils-r1 pypi
-
-DESCRIPTION="A low-level PDF generator"
-HOMEPAGE="
- https://pypi.org/project/pydyf/
- https://github.com/CourtBouillon/pydyf/
-"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="amd64 ~x86"
-
-BDEPEND="
- test? (
- app-text/ghostscript-gpl
- dev-python/pillow[${PYTHON_USEDEP}]
- )
-"
-
-distutils_enable_tests pytest
diff --git a/dev-python/pyproj/pyproj-3.6.0.ebuild b/dev-python/pyproj/pyproj-3.6.0.ebuild
index 37190059425f..a0c0088c29ed 100644
--- a/dev-python/pyproj/pyproj-3.6.0.ebuild
+++ b/dev-python/pyproj/pyproj-3.6.0.ebuild
@@ -30,8 +30,9 @@ RDEPEND="
dev-python/certifi[${PYTHON_USEDEP}]
${DEPEND}
"
+# <cython-3: https://bugs.gentoo.org/911736
BDEPEND="
- dev-python/cython[${PYTHON_USEDEP}]
+ <dev-python/cython-3[${PYTHON_USEDEP}]
test? (
dev-python/numpy[${PYTHON_USEDEP}]
dev-python/pandas[${PYTHON_USEDEP}]
diff --git a/dev-python/python-box/python-box-7.0.1.ebuild b/dev-python/python-box/python-box-7.0.1.ebuild
index 0ad78dfa9525..49cc6026b762 100644
--- a/dev-python/python-box/python-box-7.0.1.ebuild
+++ b/dev-python/python-box/python-box-7.0.1.ebuild
@@ -38,3 +38,15 @@ BDEPEND="
"
distutils_enable_tests pytest
+
+python_test() {
+ local EPYTEST_DESELECT=(
+ # looks like broken tests
+ # https://github.com/cdgriffith/Box/issues/257
+ test/test_box.py::TestBox::test_box_kwargs_should_not_be_included
+ test/test_box.py::TestBox::test_box_namespace
+ )
+
+ rm -rf box || die
+ epytest
+}
diff --git a/dev-python/shapely/shapely-2.0.1.ebuild b/dev-python/shapely/shapely-2.0.1.ebuild
index 5c8c48c27b6a..f3cca7a7b937 100644
--- a/dev-python/shapely/shapely-2.0.1.ebuild
+++ b/dev-python/shapely/shapely-2.0.1.ebuild
@@ -32,8 +32,10 @@ RDEPEND="
${DEPEND}
dev-python/numpy[${PYTHON_USEDEP}]
"
+# <cython-3: https://bugs.gentoo.org/898708
BDEPEND="
${DEPEND}
+ <dev-python/cython-3[${PYTHON_USEDEP}]
>=dev-python/cython-0.29.32[${PYTHON_USEDEP}]
dev-python/packaging[${PYTHON_USEDEP}]
"
diff --git a/dev-python/slixmpp/slixmpp-1.8.4.ebuild b/dev-python/slixmpp/slixmpp-1.8.4.ebuild
index a9eb95f0daa5..1089aaf0cc86 100644
--- a/dev-python/slixmpp/slixmpp-1.8.4.ebuild
+++ b/dev-python/slixmpp/slixmpp-1.8.4.ebuild
@@ -34,5 +34,13 @@ RDEPEND="
dev-python/pyasn1[${PYTHON_USEDEP}]
${DEPEND}
"
+BDEPEND="
+ dev-python/cython[${PYTHON_USEDEP}]
+"
distutils_enable_tests unittest
+
+python_test() {
+ rm -rf slixmpp || die
+ eunittest
+}
diff --git a/dev-python/slixmpp/slixmpp-9999.ebuild b/dev-python/slixmpp/slixmpp-9999.ebuild
index 715100a3576a..6a94e48cb686 100644
--- a/dev-python/slixmpp/slixmpp-9999.ebuild
+++ b/dev-python/slixmpp/slixmpp-9999.ebuild
@@ -33,5 +33,13 @@ RDEPEND="
dev-python/pyasn1[${PYTHON_USEDEP}]
${DEPEND}
"
+BDEPEND="
+ dev-python/cython[${PYTHON_USEDEP}]
+"
distutils_enable_tests unittest
+
+python_test() {
+ rm -rf slixmpp || die
+ eunittest
+}
diff --git a/dev-python/thriftpy2/thriftpy2-0.4.16.ebuild b/dev-python/thriftpy2/thriftpy2-0.4.16.ebuild
index 952be029eb92..a9b82d60cc76 100644
--- a/dev-python/thriftpy2/thriftpy2-0.4.16.ebuild
+++ b/dev-python/thriftpy2/thriftpy2-0.4.16.ebuild
@@ -27,8 +27,9 @@ RDEPEND="
dev-python/ply[${PYTHON_USEDEP}]
dev-python/six[${PYTHON_USEDEP}]
"
+# <cython-3: https://bugs.gentoo.org/898722
BDEPEND="
- dev-python/cython[${PYTHON_USEDEP}]
+ <dev-python/cython-3[${PYTHON_USEDEP}]
test? (
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
dev-python/tornado[${PYTHON_USEDEP}]
diff --git a/dev-python/tinycss/tinycss-0.4-r1.ebuild b/dev-python/tinycss/tinycss-0.4-r1.ebuild
index 1adbb6197cc2..f10b0b0bd7d3 100644
--- a/dev-python/tinycss/tinycss-0.4-r1.ebuild
+++ b/dev-python/tinycss/tinycss-0.4-r1.ebuild
@@ -38,6 +38,6 @@ python_prepare_all() {
}
python_test() {
- export TINYCSS_SKIP_SPEEDUPS_TESTS=1
- epytest ${PN}/tests/test_*.py
+ rm -rf tinycss || die
+ epytest --pyargs tinycss
}
diff --git a/dev-python/uvloop/uvloop-0.17.0.ebuild b/dev-python/uvloop/uvloop-0.17.0.ebuild
index 132894b2b6c1..f191064f6455 100644
--- a/dev-python/uvloop/uvloop-0.17.0.ebuild
+++ b/dev-python/uvloop/uvloop-0.17.0.ebuild
@@ -27,6 +27,7 @@ RDEPEND="
${DEPEND}
"
BDEPEND="
+ <dev-python/cython-3[${PYTHON_USEDEP}]
>=dev-python/cython-0.29.32[${PYTHON_USEDEP}]
test? (
dev-python/aiohttp[${PYTHON_USEDEP}]