diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-06-09 19:00:20 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-06-09 19:00:20 +0000 |
| commit | a38e29fa3d1d73aa80df8b62ff1dd7ddf8967a99 (patch) | |
| tree | 401c101fc6ec81a5d9c74b0caa3b714dc767b39e /dev-python | |
| parent | d040dfeee4aeee655599ab9091f1fb756b21c23d (diff) | |
| download | baldeagleos-repo-a38e29fa3d1d73aa80df8b62ff1dd7ddf8967a99.tar.gz baldeagleos-repo-a38e29fa3d1d73aa80df8b62ff1dd7ddf8967a99.tar.xz baldeagleos-repo-a38e29fa3d1d73aa80df8b62ff1dd7ddf8967a99.zip | |
Adding metadata
Diffstat (limited to 'dev-python')
23 files changed, 231 insertions, 620 deletions
diff --git a/dev-python/concurrent-log-handler/Manifest b/dev-python/concurrent-log-handler/Manifest index 80143625fc66..a8830439642c 100644 --- a/dev-python/concurrent-log-handler/Manifest +++ b/dev-python/concurrent-log-handler/Manifest @@ -1,3 +1,5 @@ DIST concurrent-log-handler-0.9.26.gh.tar.gz 55150 BLAKE2B 785df170666e8c9538109808109116a57e30677b64f967097890d053ad232943976917925364f0cbf0fb828ff83f384ef847da857ba3621c65d27269af772be6 SHA512 59dd009712445115634e854c9f3738dc0f3893d8bb150b5edfcc0705e00e84fd2515720ad33f82687f60d9855709f69ba838af3729bed2bd0d5759fb604e216e +DIST concurrent-log-handler-0.9.27.gh.tar.gz 61126 BLAKE2B e59fd510d30acee09bcf257fd0dcb9295b81cb7a6dcfa11176cd4e6c685820aaa39abda8eb59dad6eba03c661c391bff8aa189337717d7720ce958f16bf2717a SHA512 2285f78eb8fa3c178709ad215e2b5afe0d8939ea1d81b1f85a5f7936deaf5d8361fa5f86315f333f49a9bc06b355ca5b65794aa1aa2e3961c3de4cdb1db64610 EBUILD concurrent-log-handler-0.9.26.ebuild 678 BLAKE2B 0eed4893824b30256a5e19bdf049a62e0fd7ed951a508aac810d79aa47ef5334162a6f6bca6de27196193bfe8e96b7f85e1585b0e4f731dc2b8cadb45bed85de SHA512 7e26a618bd8e67cde38af4b09d14caa8f270e20ae2f9a13374ce8b29c97cc8f76a99d42c123e3bc0631b5c4d62520dc63f123ab8de5984528db17d7da3be0e9a +EBUILD concurrent-log-handler-0.9.27.ebuild 721 BLAKE2B d736cf5b9d420ba304102d292520ae776026ad1e3d0ed5bb521aad1aad2ed964c3386f65415dc60bca8fa8cf3e908d289b8950a32c1bddd3b3863b37c627d8a6 SHA512 d16746877a5696510a910af29886878901fbf09b8c391f6fcd0eba2b8dd721faf9b85d54b89991d50846e70c42d292fa729ebd86017caed37f7d81e0c8f9dc58 MISC metadata.xml 505 BLAKE2B dad218de3b8ccad3a14150386a121035cfcd6860ef5870e826aa4b94265c89ec5938c3805df79d39c9908e6d48b8e667e28b355a17f77e70dfc25a1f6c25f00b SHA512 662034c51f1da4c2e13698592dadf1f6575f0ffc4f3d111af8d0d08a58fc05d4316b62ea140503d42fd9c1833da9f1b7aacf2d611d4befab0d266c705e192bf9 diff --git a/dev-python/concurrent-log-handler/concurrent-log-handler-0.9.27.ebuild b/dev-python/concurrent-log-handler/concurrent-log-handler-0.9.27.ebuild new file mode 100644 index 000000000000..023640118a2c --- /dev/null +++ b/dev-python/concurrent-log-handler/concurrent-log-handler-0.9.27.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{9,10,11,12,13} ) + +inherit distutils-r1 + +DESCRIPTION="Python logging handler allowing safe concurrent write to the same log file" +HOMEPAGE="https://github.com/Preston-Landers/concurrent-log-handler" +SRC_URI="https://github.com/Preston-Landers/${PN}/archive/${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=">=dev-python/portalocker-1.6.0[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND}" +BDEPEND=" + test? ( + dev-python/pytest-mock[${PYTHON_USEDEP}] + dev-python/pytest-sugar[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest diff --git a/dev-python/cython/Manifest b/dev-python/cython/Manifest index 039364074ee9..d4948a094875 100644 --- a/dev-python/cython/Manifest +++ b/dev-python/cython/Manifest @@ -1,2 +1,3 @@ DIST cython-3.0.12.tar.gz 2757617 BLAKE2B 064549e36e03424065eab081b60e2761d198490cfd4d7836ea236b833ada3962e6ed42ba1710b33418f8a31ac282cdc156ceb544ee21be80ee34b7a3d3f6c7fb SHA512 c4e85596eeea444fae983d32ce8731cc5d0d612d1f96b998db3aa7946e8be151a7ea62c6df163d875111e306c870656b82a8468dd873cacf84c7bd5671a39bc3 DIST cython-3.1.1.tar.gz 3175446 BLAKE2B 4a75df724e313220321b05b7839bd406e5e923eb860337b7819c31152859396e5bda65a0a06ace196839bed729e28e51a1349c178e615ba58cf9bc80dc706b0d SHA512 5c64b5d280b234d93d02e91ab22567342350671c605df30a3ac7b41b64e0605eb0aef7bc721f68d35d6048085eaa392cb0a803df32ca902e51e2009c987d962e +DIST cython-3.1.2.tar.gz 3184825 BLAKE2B 8be6016f3e9a5a7db71fd1cab65424db1a1cd8e9d0118f01432964eb816135021f77542aff2b1f0fd2af8f657f952ebce2f420d7610ae37c6c6956f94e54a636 SHA512 c674027dae58377ea71d8d8b15601e6e0c80435807603251e685608218805fef2e6eac4bbebd3c50c319cd7da660ff9ce1a6daeb673eb40ce70bbfe7f0069600 diff --git a/dev-python/cython/cython-3.1.2.ebuild b/dev-python/cython/cython-3.1.2.ebuild new file mode 100644 index 000000000000..12768b4f916f --- /dev/null +++ b/dev-python/cython/cython-3.1.2.ebuild @@ -0,0 +1,129 @@ +# 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_FULLY_TESTED=( python3_{11..14} ) +PYTHON_TESTED=( python3_{9,10,11,12,13} pypy3 ) +PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" ) +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 test-full" +RESTRICT="!test? ( test )" + +BDEPEND=" + ${RDEPEND} + test? ( + test-full? ( + $(python_gen_cond_dep ' + dev-python/numpy[${PYTHON_USEDEP}] + ' "${PYTHON_FULLY_TESTED[@]}") + ) + ) +" + +PATCHES=( + "${FILESDIR}/${PN}-0.29.22-spawn-multiprocessing.patch" + "${FILESDIR}/${PN}-0.29.23-pythran-parallel-install.patch" +) + +distutils_enable_sphinx docs \ + dev-python/jinja2 \ + dev-python/sphinx-issues \ + dev-python/sphinx-tabs + +python_compile() { + # Python gets confused when it is in sys.path before build. + local -x PYTHONPATH= + + if use elibc_musl ; then + # Workaround for bug #925318 + local -x LDFLAGS="${LDFLAGS} -Wl,-z,stack-size=2097152" + fi + + distutils-r1_python_compile +} + +python_test() { + # PYTHON_TESTED controls whether we expect the testsuite to + # pass at all, while PYTHON_FULLY_TESTED allows skipping before + # numpy is ported (and possibly other deps in future). + 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 + + local testargs=( + -vv + -j "$(makeopts_jobs)" + --work-dir "${BUILD_DIR}"/tests + + --no-examples + --no-code-style + + # Fails to find embedded.c + --exclude 'embedded' + # coverage_installed_pkg needs dev-python/pip and doesn't like + # 'externally-managed' (bug #927995), but we don't really + # want automagic test dependencies at all, so just skip + # unimportant-for-us coverage tests entirely. + --exclude 'run.coverage*' + --exclude 'Cython.Coverage' + # Automagic on dev-python/python-tests, could add this in future + --exclude 'run.test_exceptions' + # TODO: Unpackaged dev-python/interpreters-pep-734 (interpreters_backport) + # This only shows up as a failure with >=3.13. + --exclude 'subinterpreters_threading_stress_test' + + # The fix for https://github.com/cython/cython/issues/6938 + # changes these tests s.t. they break with our build layout. + --exclude 'build.depfile*' + ) + + if [[ ${EPYTHON} == pypy3* ]] ; then + testargs+=( + # Recursion issue + --exclude 'run.if_else_expr' + --exclude 'run.test_patma*' + # Slight output difference (missing '<') + --exclude 'run.cpp_exception_ptr_just_handler' + + ) + fi + + # Keep test-full for numpy as it's large and doesn't pass tests itself + # on niche arches. + if ! use test-full || ! has "${EPYTHON/./_}" "${PYTHON_FULLY_TESTED[@]}"; then + testargs+=( + --exclude 'run.numpy*' + --exclude 'run.ufunc' + --exclude 'numpy*' + ) + fi + + "${PYTHON}" runtests.py "${testargs[@]}" || die "Tests fail with ${EPYTHON}" +} + +python_install_all() { + local DOCS=( CHANGES.rst README.rst ToDo.txt USAGE.txt ) + distutils-r1_python_install_all +} diff --git a/dev-python/cython/files/cython-3.1.0_rc1-rdma-core-hang.patch b/dev-python/cython/files/cython-3.1.0_rc1-rdma-core-hang.patch deleted file mode 100644 index 3561870b0453..000000000000 --- a/dev-python/cython/files/cython-3.1.0_rc1-rdma-core-hang.patch +++ /dev/null @@ -1,54 +0,0 @@ -From a0794ffb47c9f44be94b3cd8fe6c639766cbda26 Mon Sep 17 00:00:00 2001 -From: Stefan Behnel <stefan_ml@behnel.de> -Date: Sun, 4 May 2025 21:48:27 +0200 -Subject: [PATCH] Prevent infinite loop in type inference when a variable is - named like the type of its value (e.g. list += []). - -Closes https://github.com/cython/cython/issues/6835 ---- - Cython/Compiler/ExprNodes.py | 2 +- - tests/run/type_inference.pyx | 24 ++++++++++++++++++++++++ - 2 files changed, 25 insertions(+), 1 deletion(-) - -diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py -index a0413ab8d62..b02154a0b30 100644 ---- a/Cython/Compiler/ExprNodes.py -+++ b/Cython/Compiler/ExprNodes.py -@@ -2042,7 +2042,7 @@ def infer_type(self, env): - return self.inferred_type - return py_object_type - elif (self.entry.type.is_extension_type or self.entry.type.is_builtin_type) and \ -- self.name == self.entry.type.name: -+ not self.is_target and self.name == self.entry.type.name: - # Unfortunately the type attribute of type objects - # is used for the pointer to the type they represent. - return type_type -diff --git a/tests/run/type_inference.pyx b/tests/run/type_inference.pyx -index b746d05d9f3..226455dae0d 100644 ---- a/tests/run/type_inference.pyx -+++ b/tests/run/type_inference.pyx -@@ -883,3 +886,24 @@ def test_builtin_max(): - a = max(self.a, self.a) - assert typeof(a) == "Python object", typeof(a) - C().get_max() -+ -+ -+def variable_with_name_of_type(): -+ """ -+ >>> variable_with_name_of_type() -+ ([], 'abc') -+ """ -+ # Names like 'list.append' refer to the type and must be inferred as such, -+ # but a simple variable called 'list' is not the same and used to break type inference. -+ # See https://github.com/cython/cython/issues/6835 -+ rest_list = [] -+ list = [] # note: same name as type of value -+ list += rest_list -+ assert typeof(list) == 'list object', typeof(list) -+ -+ rest_str = "abc" -+ str = "" -+ str += rest_str -+ assert typeof(str) == 'str object', typeof(str) -+ -+ return list, str diff --git a/dev-python/gmpy2/gmpy2-2.2.1.ebuild b/dev-python/gmpy2/gmpy2-2.2.1.ebuild index ec8117acb34d..f4d00ee44013 100644 --- a/dev-python/gmpy2/gmpy2-2.2.1.ebuild +++ b/dev-python/gmpy2/gmpy2-2.2.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -6,7 +6,7 @@ EAPI=8 DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=setuptools PYPI_PN="gmpy2" -PYTHON_COMPAT=( python3_{9,10,11,12,13} ) +PYTHON_COMPAT=( python3_{11..14} ) inherit distutils-r1 pypi diff --git a/dev-python/jaconv/jaconv-0.4.0.ebuild b/dev-python/jaconv/jaconv-0.4.0.ebuild index 06f7f06042f6..4969d234a422 100644 --- a/dev-python/jaconv/jaconv-0.4.0.ebuild +++ b/dev-python/jaconv/jaconv-0.4.0.ebuild @@ -25,7 +25,7 @@ S="${WORKDIR}/${PN}-${MY_PV}" LICENSE="MIT" SLOT="0" -KEYWORDS="amd64" +KEYWORDS="amd64 ~arm64" distutils_enable_tests pytest diff --git a/dev-python/jschema-to-python/jschema-to-python-1.2.3-r1.ebuild b/dev-python/jschema-to-python/jschema-to-python-1.2.3-r1.ebuild index 76d10e97b112..dd2dcfafb3fa 100644 --- a/dev-python/jschema-to-python/jschema-to-python-1.2.3-r1.ebuild +++ b/dev-python/jschema-to-python/jschema-to-python-1.2.3-r1.ebuild @@ -1,9 +1,9 @@ -# Copyright 2021-2024 Gentoo Authors +# Copyright 2021-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -PYTHON_COMPAT=( python3_{9,10,11,12,13} ) +PYTHON_COMPAT=( python3_{11..14} ) DISTUTILS_USE_PEP517=setuptools inherit distutils-r1 pypi diff --git a/dev-python/jsonpickle/jsonpickle-4.1.1.ebuild b/dev-python/jsonpickle/jsonpickle-4.1.1.ebuild index 802a9f09cf35..9ab5bd1016fd 100644 --- a/dev-python/jsonpickle/jsonpickle-4.1.1.ebuild +++ b/dev-python/jsonpickle/jsonpickle-4.1.1.ebuild @@ -4,8 +4,8 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9,10,11,12,13} ) - +PYTHON_FULLY_TESTED=( python3_{11..13} ) +PYTHON_COMPAT=( "${PYTHON_FULLY_TESTED[@]}" ) inherit distutils-r1 optfeature DESCRIPTION="Python library for serializing any arbitrary object graph into JSON" @@ -21,17 +21,22 @@ SRC_URI=" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~arm64 ~riscv ~x86 ~amd64-linux ~x86-linux" +IUSE="test-full" BDEPEND=" dev-python/setuptools-scm[${PYTHON_USEDEP}] test? ( dev-python/feedparser[${PYTHON_USEDEP}] - dev-python/gmpy2[${PYTHON_USEDEP}] dev-python/numpy[${PYTHON_USEDEP}] - dev-python/pandas[${PYTHON_USEDEP}] dev-python/simplejson[${PYTHON_USEDEP}] dev-python/sqlalchemy[${PYTHON_USEDEP}] dev-python/ujson[${PYTHON_USEDEP}] + test-full? ( + $(python_gen_cond_dep ' + dev-python/gmpy2[${PYTHON_USEDEP}] + dev-python/pandas[${PYTHON_USEDEP}] + ' "${PYTHON_FULLY_TESTED[@]}") + ) ) " @@ -49,10 +54,10 @@ python_test() { tests/bson_test.py ) - if ! has_version "dev-python/gmpy2[${PYTHON_USEDEP}]"; then + if ! use test-full || ! has_version "dev-python/gmpy2[${PYTHON_USEDEP}]"; then EPYTEST_IGNORE+=( jsonpickle/ext/gmpy.py ) fi - if ! has_version "dev-python/pandas[${PYTHON_USEDEP}]"; then + if ! use test-full || ! has_version "dev-python/pandas[${PYTHON_USEDEP}]"; then EPYTEST_IGNORE+=( jsonpickle/ext/pandas.py ) fi diff --git a/dev-python/jsonpickle/metadata.xml b/dev-python/jsonpickle/metadata.xml index 2b04277dbda9..af4b5ca7b5e0 100644 --- a/dev-python/jsonpickle/metadata.xml +++ b/dev-python/jsonpickle/metadata.xml @@ -8,6 +8,12 @@ <upstream> <remote-id type="cpe">cpe:/a:jsonpickle_project:jsonpickle</remote-id> </upstream> + <use> + <flag name="test-full"> + Run test suite in full via additional (large) test + dependencies, like dev-python/pandas. + </flag> + </use> <origin>gentoo-staging</origin> <stabilize-allarches/> </pkgmetadata>
\ No newline at end of file diff --git a/dev-python/langdetect/Manifest b/dev-python/langdetect/Manifest index d12ab8aeaca8..a11d7c268c91 100644 --- a/dev-python/langdetect/Manifest +++ b/dev-python/langdetect/Manifest @@ -1,3 +1 @@ DIST langdetect-1.0.9.tar.gz 981474 BLAKE2B ea8a9c3f16a2987c080742473bff4f2c1503f53fb3c2b40b0b1d6212bb6133ea22dce7864ffcfb8968c3a46b157d45cb3e2cf6f84bdbed0266cc716a853b032c SHA512 7558d674c47b080c79e43a00a25d2c7f77188cf60bea2cecb3bebb803d75e1aa42b43c74bd26ea1b541f4cb927421908882cbec01a91f0913984217e71ccc8db -EBUILD langdetect-1.0.9.ebuild 494 BLAKE2B 9cd8a2a93a8d45bf51fe2324402b175d641762ea591fcb99459427f977a95eccffa6ca4777ca4df39814eea6eac62711567faa654456d32f79023a4685804504 SHA512 d973b85ba1a44389a4275f02a779a93a005f7c2e096467b94b072862e4984d5b42cf33f9821ac68aa5b85b12c98983a90b96049989d8c84497969174b6bb838e -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 new file mode 100644 index 000000000000..637368d2f237 --- /dev/null +++ b/dev-python/langdetect/files/langdetect-1.0.9-explicit-config.patch @@ -0,0 +1,13 @@ +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 56733bbffc48..99577c43fc3e 100644 --- a/dev-python/langdetect/langdetect-1.0.9.ebuild +++ b/dev-python/langdetect/langdetect-1.0.9.ebuild @@ -1,9 +1,9 @@ -# Copyright 2022 Gentoo Authors +# Copyright 2022-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) +PYTHON_COMPAT=( python3_{9,10,11,12,13} ) DISTUTILS_USE_PEP517=setuptools inherit distutils-r1 pypi @@ -19,4 +19,6 @@ 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 020e07f2a3dd..c0f74ac187e2 100644 --- a/dev-python/langdetect/metadata.xml +++ b/dev-python/langdetect/metadata.xml @@ -2,11 +2,9 @@ <!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> <pkgmetadata> <maintainer type="person"> - <email>marcin.deranek@slonko.net</email> - <name>Marcin Deranek</name> + <email>pastalian46@gmail.com</email> + <name>Takuya Wakazono</name> </maintainer> - <upstream> - <bugs-to>https://github.com/Mimino666/langdetect/issues</bugs-to> - </upstream> - <origin>slonko-overlay</origin> + + <origin>gentoo-guru-overlay</origin> </pkgmetadata>
\ No newline at end of file diff --git a/dev-python/mpmath/mpmath-1.4.0_alpha5-r1.ebuild b/dev-python/mpmath/mpmath-1.4.0_alpha5-r1.ebuild index 55c1384489af..fa543209a3b3 100644 --- a/dev-python/mpmath/mpmath-1.4.0_alpha5-r1.ebuild +++ b/dev-python/mpmath/mpmath-1.4.0_alpha5-r1.ebuild @@ -4,8 +4,8 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) - +PYTHON_FULLY_TESTED=( pypy3_11 python3_{11..13} ) +PYTHON_COMPAT=( "${PYTHON_FULLY_TESTED[@]}" ) inherit distutils-r1 optfeature pypi DESCRIPTION="Python library for arbitrary-precision floating-point arithmetic" @@ -33,7 +33,9 @@ BDEPEND=" dev-python/gmpy2[${PYTHON_USEDEP}] ' 'python3*') test-full? ( - dev-python/matplotlib[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/matplotlib[${PYTHON_USEDEP}] + ' "${PYTHON_FULLY_TESTED[@]}") ) ) " @@ -48,11 +50,14 @@ PATCHES=( ) python_test() { - local EPYTEST_DESELECT=() - - # CLI crashes otherwise, sigh (not a regression) - # https://github.com/mpmath/mpmath/issues/907 - > "${HOME}/.python_history" || die + local EPYTEST_DESELECT=( + # Slow and often needs a re-run to pass + mpmath/tests/test_cli.py::test_bare_console_bare_division + mpmath/tests/test_cli.py::test_bare_console_no_bare_division + mpmath/tests/test_cli.py::test_bare_console_pretty + mpmath/tests/test_cli.py::test_bare_console_without_ipython + mpmath/tests/test_cli.py::test_bare_console_wrap_floats + ) local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 epytest -p rerunfailures --reruns=5 -p timeout diff --git a/dev-python/pycountry/pycountry-24.6.1.ebuild b/dev-python/pycountry/pycountry-24.6.1.ebuild index 86cff727ee84..11d356beee39 100644 --- a/dev-python/pycountry/pycountry-24.6.1.ebuild +++ b/dev-python/pycountry/pycountry-24.6.1.ebuild @@ -18,12 +18,6 @@ LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86" -BDEPEND=" - test? ( - dev-python/importlib-metadata[${PYTHON_USEDEP}] - ) -" - distutils_enable_tests pytest python_test() { diff --git a/dev-python/pydantic/pydantic-2.11.5.ebuild b/dev-python/pydantic/pydantic-2.11.5.ebuild index d7322ea41a41..64b1e39b8ae7 100644 --- a/dev-python/pydantic/pydantic-2.11.5.ebuild +++ b/dev-python/pydantic/pydantic-2.11.5.ebuild @@ -4,6 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=hatchling +# py3.14: https://github.com/pydantic/pydantic/issues/11613 PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) inherit distutils-r1 pypi diff --git a/dev-python/pykakasi/pykakasi-2.3.0.ebuild b/dev-python/pykakasi/pykakasi-2.3.0.ebuild index 77b820081ebf..3ad94a71af5c 100644 --- a/dev-python/pykakasi/pykakasi-2.3.0.ebuild +++ b/dev-python/pykakasi/pykakasi-2.3.0.ebuild @@ -16,7 +16,7 @@ HOMEPAGE=" LICENSE="GPL-3+" SLOT="0" -KEYWORDS="amd64" +KEYWORDS="amd64 ~arm64" RDEPEND=" dev-python/deprecated[${PYTHON_USEDEP}] diff --git a/dev-python/pyside/Manifest b/dev-python/pyside/Manifest index 0f665f659162..3c7d7540a153 100644 --- a/dev-python/pyside/Manifest +++ b/dev-python/pyside/Manifest @@ -1,3 +1,2 @@ -DIST pyside-setup-everywhere-src-6.8.2.tar.xz 16609596 BLAKE2B 7e4f12cf81d649e2d7e52ff31eedda55db29650230e5dac2a930d38827d7e43101309a601e0dc3ccebea0274f006f25c9a6be79baa3d0390526dbb8583920230 SHA512 cc522143974d08133d68d3259caa5127916534e16678693866d65965a546db98b5b1b07d92f7c0918b7c8fb10213d94ad50259b22cf9ebc2a63b985068d75452 DIST pyside-setup-everywhere-src-6.8.3.tar.xz 16611768 BLAKE2B 119696fc184c5caa450807dab6acae903a9a2b1e98b5c641659fdb77bfcb855e3a7cb8abb4fbc0d22c5df9312ce924599aff615e28bedd45b9ee30e88dee8b56 SHA512 a7d1bbd0edd8c42e6925bf880e5ee613391fb1d75f2880598577c49fe90d0c0b81907fd4cd3032ba665bcf70a6915e0ee1a8648c7012a28e598d5c7eb6da1bfe DIST pyside-setup-everywhere-src-6.9.1.tar.xz 16669448 BLAKE2B a98dc9bea7824f2b98becba83ce8cf6488d76fe85ef91e96c1d8b3b6f08fccc57f13116dfb55507e9fbf5d7a82f370418a103a616869fe17b233fff76de3996d SHA512 2069b2154618e49aeeae4ed53e377bf08f7d519aa955dfec0e10603cc5a58abbb32a502b3b4066d0a7cd3bf24b288130c9578d909734a064413578cd6aef7d33 diff --git a/dev-python/pyside/files/pyside-6.8.2-no-qtexampleicons.patch b/dev-python/pyside/files/pyside-6.8.2-no-qtexampleicons.patch deleted file mode 100644 index 29adbe25d479..000000000000 --- a/dev-python/pyside/files/pyside-6.8.2-no-qtexampleicons.patch +++ /dev/null @@ -1,10 +0,0 @@ -diff --git a/sources/pyside6/CMakeLists.txt b/sources/pyside6/CMakeLists.txt -index 2e4c701..6792258 100644 ---- a/sources/pyside6/CMakeLists.txt -+++ b/sources/pyside6/CMakeLists.txt -@@ -41,5 +41,3 @@ if(BUILD_TESTS) - endif() - - add_subdirectory(doc) -- --add_subdirectory(qtexampleicons) diff --git a/dev-python/pyside/pyside-6.8.2-r1.ebuild b/dev-python/pyside/pyside-6.8.2-r1.ebuild deleted file mode 100644 index aecebb8a2f77..000000000000 --- a/dev-python/pyside/pyside-6.8.2-r1.ebuild +++ /dev/null @@ -1,510 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -# NOTE: We combine here several PyPI packages, we do this because -# pyside can and does break if it is compiled with a different -# toolchain then was used to build shiboken. This bundling ensures -# that we always use the same toolchain for all components. - -EAPI=8 - -PYTHON_COMPAT=( python3_{9,10,11,12,13} ) -LLVM_COMPAT=( {16..19} ) -DISTUTILS_USE_PEP517=setuptools -DISTUTILS_EXT=1 - -inherit distutils-r1 llvm-r1 multiprocessing qmake-utils virtualx - -MY_PN=${PN}-setup-everywhere-src -MY_P=${MY_PN}-${PV} - -DESCRIPTION="Python bindings for the Qt framework" -HOMEPAGE="https://wiki.qt.io/PySide6" - -if [[ ${PV} == *.9999 ]]; then - inherit git-r3 - EGIT_REPO_URI=( - "https://code.qt.io/${PN}/${PN}-setup.git" - "https://github.com/qtproject/${PN}-${PN}-setup.git" - ) - EGIT_BRANCH=dev - [[ ${PV} == 6.*.9999 ]] && EGIT_BRANCH=${PV%.9999} -else - SRC_URI="https://download.qt.io/official_releases/QtForPython/${PN}6/PySide6-${PV}-src/${MY_P}.tar.xz" - S="${WORKDIR}/${MY_P}" - KEYWORDS="amd64 ~arm arm64 ~loong ~ppc64 ~riscv ~x86" -fi - -LICENSE="|| ( GPL-2 GPL-3 LGPL-3 )" -SLOT="6/${PV}" - -# If a flag enables multiple Qt modules, they should be ordered -# according to their dependencies, e.g. for 3d, 3DCore must be first. -# Widgets for various modules are handled as a special case later -declare -A QT_MODULES=( - ["3d"]="3DCore 3DRender 3DLogic 3DInput 3DAnimation 3DExtras" - ["bluetooth"]="Bluetooth" - ["charts"]="Charts" - ["+concurrent"]="Concurrent" - ["+core"]="Core" - ["+dbus"]="DBus" - ["designer"]="Designer" - ["+gui"]="Gui" - ["help"]="Help" - ["httpserver"]="HttpServer" - ["location"]="Location" - ["multimedia"]="Multimedia" # plus widgets - ["network-auth"]="NetworkAuth" - ["+network"]="Network" - ["nfc"]="Nfc" - ["+opengl"]="OpenGL" # plus widgets - ["pdfium"]="Pdf" # plus widgets - ["positioning"]="Positioning" - ["+printsupport"]="PrintSupport" - ["qml"]="Qml" - ["quick3d"]="Quick3D" - ["quick"]="Quick" # plus widgets - ["remoteobjects"]="RemoteObjects" - ["scxml"]="Scxml" - ["sensors"]="Sensors" - ["serialbus"]="SerialBus" - ["serialport"]="SerialPort" - ["spatialaudio"]="SpatialAudio" - ["+sql"]="Sql" - ["svg"]="Svg" # plus widgets - ["speech"]="TextToSpeech" - ["+testlib"]="Test" - ["uitools"]="UiTools" - ["webchannel"]="WebChannel" - ["webengine"]="WebEngineCore" # plus widgets and quick - ["websockets"]="WebSockets" - ["webview"]="WebView" - ["+widgets"]="Widgets" - ["+xml"]="Xml" -) - -# Manually reextract these requirements on version bumps by running the -# following one-liner from within "${S}": -# $ grep 'set.*_deps' PySide6/Qt*/CMakeLists.txt -declare -A QT_REQUIREMENTS=( - ["3d"]="gui network opengl" - ["bluetooth"]="core" - ["charts"]="core gui widgets" - ["concurrent"]="core" - ["dbus"]="core" - ["designer"]="widgets" - ["gles2-only"]="gui" - ["gui"]="core" - ["help"]="widgets" - ["httpserver"]="core concurrent network websockets" - ["location"]="core positioning" - ["multimedia"]="core gui network" - ["network-auth"]="network" - ["network"]="core" - ["nfc"]="core" - ["opengl"]="gui" - ["pdfium"]="core gui network" - ["positioning"]="core" - ["printsupport"]="widgets" - ["qml"]="network" - ["quick"]="gui network qml opengl" - ["quick3d"]="gui network qml quick" - ["remoteobjects"]="core network" - ["scxml"]="core" - ["sensors"]="core" - ["serialbus"]="core network serialport" - ["serialport"]="core" - ["spatialaudio"]="core gui network multimedia" - ["speech"]="core multimedia" - ["sql"]="widgets" - ["svg"]="gui" - ["testlib"]="widgets" - ["uitools"]="widgets" - ["webchannel"]="core" - ["webengine"]="core gui network printsupport quick webchannel" - ["websockets"]="network" - ["webview"]="gui quick webengine" - ["widgets"]="gui" - ["xml"]="core" -) - -IUSE="${!QT_MODULES[@]} debug doc gles2-only numpy test tools" -RESTRICT="!test? ( test )" - -# majority of QtQml tests require QtQuick support -REQUIRED_USE=" - test? ( - qml? ( quick ) - ) -" -for requirement in ${!QT_REQUIREMENTS[@]}; do - REQUIRED_USE+=" ${requirement}? ( ${QT_REQUIREMENTS[${requirement}]} ) " -done - -# Minimal supported version of Qt. -QT_PV="$(ver_cut 1-3)*:6" - -# WebEngine needs sound support, so enable either pulseaudio or alsa -RDEPEND=" - =dev-qt/qtbase-${QT_PV}[concurrent?,dbus?,gles2-only=,network?,opengl?,sql?,widgets?,xml?] - 3d? ( =dev-qt/qt3d-${QT_PV}[qml?,gles2-only=] ) - bluetooth? ( =dev-qt/qtconnectivity-${QT_PV}[bluetooth] ) - charts? ( =dev-qt/qtcharts-${QT_PV} ) - designer? ( =dev-qt/qttools-${QT_PV}[designer,widgets,gles2-only=] ) - gui? ( - =dev-qt/qtbase-${QT_PV}[gui,jpeg(+)] - x11-libs/libxkbcommon - ) - help? ( =dev-qt/qttools-${QT_PV}[assistant,gles2-only=] ) - httpserver? ( =dev-qt/qthttpserver-${QT_PV} ) - location? ( =dev-qt/qtlocation-${QT_PV} ) - multimedia? ( =dev-qt/qtmultimedia-${QT_PV}[widgets(+)?] ) - network? ( =dev-qt/qtbase-${QT_PV}[ssl] ) - network-auth? ( =dev-qt/qtnetworkauth-${QT_PV} ) - nfc? ( =dev-qt/qtconnectivity-${QT_PV}[nfc] ) - numpy? ( >=dev-python/numpy-2.1.3[${PYTHON_USEDEP}] ) - pdfium? ( =dev-qt/qtwebengine-${QT_PV}[pdfium(-),widgets?] ) - positioning? ( =dev-qt/qtpositioning-${QT_PV} ) - printsupport? ( =dev-qt/qtbase-${QT_PV}[gui,widgets] ) - qml? ( =dev-qt/qtdeclarative-${QT_PV}[opengl?,widgets?] ) - quick3d? ( =dev-qt/qtquick3d-${QT_PV}[opengl?] ) - remoteobjects? ( =dev-qt/qtremoteobjects-${QT_PV} ) - scxml? ( =dev-qt/qtscxml-${QT_PV} ) - sensors? ( =dev-qt/qtsensors-${QT_PV}[qml?] ) - speech? ( =dev-qt/qtspeech-${QT_PV} ) - serialbus? ( =dev-qt/qtserialbus-${QT_PV} ) - serialport? ( =dev-qt/qtserialport-${QT_PV} ) - svg? ( =dev-qt/qtsvg-${QT_PV} ) - testlib? ( =dev-qt/qtbase-${QT_PV}[gui] ) - tools? ( - =dev-qt/qtbase-${QT_PV} - =dev-qt/qtdeclarative-${QT_PV}[qmlls] - =dev-qt/qttools-${QT_PV}[assistant,designer,linguist] - dev-python/pkginfo[${PYTHON_USEDEP}] - ) - uitools? ( =dev-qt/qttools-${QT_PV}[gles2-only=,widgets] ) - webchannel? ( =dev-qt/qtwebchannel-${QT_PV} ) - webengine? ( || ( - =dev-qt/qtwebengine-${QT_PV}[alsa,widgets?] - =dev-qt/qtwebengine-${QT_PV}[pulseaudio,widgets?] - ) - ) - websockets? ( =dev-qt/qtwebsockets-${QT_PV} ) - webview? ( =dev-qt/qtwebview-${QT_PV} ) - !dev-python/pyside:0 - !dev-python/shiboken6 - !dev-python/pyside6-tools -" - -DEPEND="${RDEPEND} - $(llvm_gen_dep ' - llvm-core/clang:${LLVM_SLOT} - llvm-core/llvm:${LLVM_SLOT} - ') - dev-util/vulkan-headers - test? ( =dev-qt/qtbase-${QT_PV}[gui] ) -" # testlib is toggled by the gui flag on qtbase - -BDEPEND=" - dev-build/cmake - dev-python/distro[${PYTHON_USEDEP}] - <dev-python/wheel-0.46.0[${PYTHON_USEDEP}] - dev-util/patchelf - doc? ( - >=dev-libs/libxml2-2.6.32 - >=dev-libs/libxslt-1.1.19 - media-gfx/graphviz - dev-python/sphinx[${PYTHON_USEDEP}] - dev-python/myst-parser[${PYTHON_USEDEP}] - ) - numpy? ( dev-python/numpy[${PYTHON_USEDEP}] ) -" - -PATCHES=( - # Needs porting to newer wheel and setuptools - "${FILESDIR}/${PN}-6.8.2-quick-fix-build-wheel.patch" - # References files not present in our dev-qt/qtbase - "${FILESDIR}/${P}-no-qtexampleicons.patch" # TODO: remove in 6.8.3 -) - -# Build system duplicates system libraries. TODO: fix -QA_PREBUILT=( - "/usr/lib/python*/site-packages/PySide6/*" -) - -python_prepare_all() { - distutils-r1_python_prepare_all - - # Shiboken6 assumes Vulkan headers live under either "$VULKAN_SDK/include" - # or "$VK_SDK_PATH/include" rather than "${EPREFIX}/usr/include/vulkan". - sed -i -e "s~\bdetectVulkan(&headerPaths);~headerPaths.append(HeaderPath{QByteArrayLiteral(\"${EPREFIX}/usr/include/vulkan\"), HeaderType::System});~" \ - sources/shiboken6/ApiExtractor/clangparser/compilersupport.cpp || die - - # Shiboken6 assumes the "/usr/lib/clang/${CLANG_NEWEST_VERSION}/include/" - # subdirectory provides Clang builtin includes (e.g., "stddef.h") for the - # currently installed version of Clang, where ${CLANG_NEWEST_VERSION} is - # the largest version specifier that exists under the "/usr/lib/clang/" - # subdirectory. This assumption is false in edge cases, including when - # users downgrade from newer Clang versions but fail to remove those - # versions with "emerge --depclean". See also: - # https://github.com/leycec/raiagent/issues/85 - # - # Sadly, the clang-* family of functions exported by the "toolchain-funcs" - # eclass are defective, returning nonsensical placeholder strings if the - # end user has *NOT* explicitly configured their C++ compiler to be Clang. - # PySide6 does *NOT* care whether the end user has done so or not, as - # PySide6 unconditionally requires Clang in either case. See also: - # https://bugs.gentoo.org/619490 - sed -e \ - 's~(findClangBuiltInIncludesDir())~(QStringLiteral("'"${EPREFIX}"'/usr/lib/clang/'"${LLVM_SLOT}"'/include"))~' \ - -i sources/shiboken6/ApiExtractor/clangparser/compilersupport.cpp || die - - # blacklist.txt works like XFAIL - cat <<- EOF >> build_history/blacklist.txt || die - # segfaults with QOpenGLContext::create - [pysidetest::qapp_like_a_macro_test] - linux - # Tries to execute pip install - [pyside6-deploy::test_pyside6_deploy] - linux - [pyside6-android-deploy::test_pyside6_android_deploy] - linux - EOF - - if ! use numpy; then - cat <<- EOF >> build_history/blacklist.txt || die - # Requires numpy support to pass - [sample::array_numpy] - linux - [sample::nontypetemplate] - linux - [QtGui::qpainter_test] - linux - EOF - fi -} - -python_configure_all() { - ENABLED_QT_MODULES=() - - # The order matters, dependencies must come first so process - # REQUIRED_USE and recursively enable modules - enable_qt_mod() { - local flag=${1} - local modules=${QT_MODULES[${flag}]} - if [[ -z ${modules} ]]; then - die "incorrect flag=${flag}, not registered" - fi - local dependencies=${QT_REQUIREMENTS[${flag//+}]} - if [[ -n ${dependencies} ]]; then - local depflag - for depflag in ${dependencies}; do - if use ${depflag}; then - if [[ -z ${QT_MODULES[${depflag}]} ]]; then - depflag=+${depflag} - fi - enable_qt_mod ${depflag} - else - die "${depflag} is required but not enabled" - fi - done - fi - if [[ "${ENABLED_QT_MODULES[*]}" != *${modules}* ]]; then - ENABLED_QT_MODULES+=( ${modules} ) - fi - } - # Enable specified qt modules - local flag - for flag in ${!QT_MODULES[@]}; do - if use ${flag//+}; then - enable_qt_mod ${flag} - fi - done - - # Special cases - if use widgets; then - use multimedia && ENABLED_QT_MODULES+=( MultimediaWidgets ) - use opengl && ENABLED_QT_MODULES+=( OpenGLWidgets ) - use pdfium && ENABLED_QT_MODULES+=( PdfWidgets ) - use quick && ENABLED_QT_MODULES+=( QuickWidgets ) - use svg && ENABLED_QT_MODULES+=( SvgWidgets ) - use webengine && ENABLED_QT_MODULES+=( WebEngineWidgets ) - fi - if use quick; then - use webengine && ENABLED_QT_MODULES+=( WebEngineQuick ) - use testlib && ENABLED_QT_MODULES+=( QuickTest ) - fi - - # Arguments listed in options.py - MAIN_DISTUTILS_ARGS=( - --cmake="${EPREFIX}/usr/bin/cmake" - --ignore-git - --limited-api=no - --module-subset="$(printf '%s,' "${ENABLED_QT_MODULES[@]}")" - --no-strip - --no-size-optimization - --openssl="${EPREFIX}/usr/bin/openssl" - --qt=$(ver_cut 1-3) - --qtpaths=$(qt6_get_bindir)/qtpaths - --verbose-build - --parallel=$(makeopts_jobs) - $(usex debug "--debug" "--relwithdebinfo") - $(usex doc "--build-docs" "--skip-docs") - $(usex numpy "--enable-numpy-support" "--disable-numpy-support") - $(usex test "--build-tests --use-xvfb" "") - $(usex tools "" "--no-qt-tools") - ) -} - -python_compile() { - DISTUTILS_ARGS=( - "${MAIN_DISTUTILS_ARGS[@]}" - --build-type=shiboken6 - ) - distutils-r1_python_compile - - # The build system uses its own build dir, find the name of this dir. - local pyside_build_dir=$(find "${BUILD_DIR}/build$((${#DISTUTILS_WHEELS[@]}-1))" -maxdepth 1 -type d -name 'qfp*-py*-qt*-*' -printf "%f\n") - export pyside_build_id=${pyside_build_dir#qfp$(usev debug d)-py${EPYTHON#python}-qt$(ver_cut 1-3)-} - - DISTUTILS_ARGS=( - "${MAIN_DISTUTILS_ARGS[@]}" - --reuse-build - --shiboken-target-path="${BUILD_DIR}/build$((${#DISTUTILS_WHEELS[@]}-1))/${pyside_build_dir}/install" - --build-type=shiboken6-generator - ) - distutils-r1_python_compile - # If no pyside modules enabled, build just shiboken - if [[ ${#ENABLED_QT_MODULES[@]} -gt 0 ]]; then - DISTUTILS_ARGS=( - "${MAIN_DISTUTILS_ARGS[@]}" - --reuse-build - --shiboken-target-path="${BUILD_DIR}/build$((${#DISTUTILS_WHEELS[@]}-1))/${pyside_build_dir}/install" - --build-type=pyside6 - ) - distutils-r1_python_compile - fi - - # Link libraries to the usual location for backwards compatibility - pushd "${BUILD_DIR}/install/$(python_get_sitedir)" >/dev/null || - die - mkdir -p "${BUILD_DIR}/install/usr/$(get_libdir)" || die - local lib - for lib in */*.cpython-*.so - do - local base=${lib##*/} - ln -s "${base}" "${lib%/*}/${base%%.*}-${EPYTHON}.so" || - die - done - for lib in */*.cpython-*.so.$(ver_cut 1-2) - do - local base=${lib##*/} - ln -s "${base}" "${lib%/*}/${base%%.*}-${EPYTHON}.so.$(ver_cut 1-2)" || - die - done - for lib in */*.so*; do - ln -s "../../$(python_get_sitedir)/${lib}" \ - "${BUILD_DIR}/install/usr/$(get_libdir)/${lib#*/}" || die - done - popd >/dev/null || die - - # Symlinks for compatibility with pypi wheels - local dir - if [[ -d ${BUILD_DIR}/install/$(python_get_sitedir)/PySide6 ]] - then - pushd "${BUILD_DIR}/install/$(python_get_sitedir)/PySide6" \ - >/dev/null || die - mkdir -p "${BUILD_DIR}/install/usr/share/PySide6" || die - for dir in doc glue typesystems; do - ln -s "../../../$(python_get_sitedir)/PySide6/${dir}" \ - "${BUILD_DIR}/install/usr/share/PySide6/${dir}" || - die - done - popd >/dev/null || die - fi - mkdir -p "${BUILD_DIR}/install/usr/include" - for dir in PySide6 shiboken6_generator; do - if [[ -d ${BUILD_DIR}/install/$(python_get_sitedir)/${dir}/include ]] - then - ln -s "../../$(python_get_sitedir)/${dir}/include" \ - "${BUILD_DIR}/install/usr/include/${dir//_generator}" || - die - fi - done - - # Install misc files from inner install dir - find "${BUILD_DIR}"/build*/${pyside_build_dir}/install -type f \ - -name libPySidePlugin.so -exec \ - mkdir -p "${BUILD_DIR}/install/$(qt6_get_plugindir)/designer/" \; \ - -exec \ - cp "{}" "${BUILD_DIR}/install/$(qt6_get_plugindir)/designer/" \; \ - || die - - for dir in cmake pkgconfig; do - find "${BUILD_DIR}"/build*/${pyside_build_dir}/install -type d -name ${dir} \ - -exec cp -r "{}" "${BUILD_DIR}/install/usr/lib/" \; \ - || die - done - - # Uniquify the pkgconfigs file for the current Python target, - # preserving an unversioned "shiboken6.pc" file arbitrarily - # associated with the last Python target. - if [[ -f ${BUILD_DIR}/install/usr/lib/pkgconfig/shiboken6.pc ]] - then - sed -e 's~prefix=.*~prefix=/usr~g' \ - -e 's~exec_prefix=.*~exec_prefix=${prefix}~g' \ - -e "s~libdir=.*~libdir=$(python_get_sitedir)/shiboken6~g" \ - -e "s~includedir=.*~includedir=$(python_get_sitedir)/shiboken6_generator/include~g" \ - -i "${BUILD_DIR}/install/usr/lib/pkgconfig/shiboken6.pc" || die - cp "${BUILD_DIR}/install/usr/lib/pkgconfig/"shiboken6{,-${EPYTHON}}.pc || die - fi - if [[ -f ${BUILD_DIR}/install/usr/lib/pkgconfig/pyside6.pc ]] - then - sed -e 's~^Requires: shiboken6$~&-'${EPYTHON}'~' \ - -e 's~prefix=.*~prefix=/usr~g' \ - -e 's~exec_prefix=.*~exec_prefix=${prefix}~g' \ - -e "s~libdir=.*~libdir=$(python_get_sitedir)/PySide6~g" \ - -e "s~includedir=.*~includedir=$(python_get_sitedir)/PySide6/include~g" \ - -e "s~typesystemdir=.*~typesystemdir=$(python_get_sitedir)/PySide6/typesystems~g" \ - -e "s~gluedir=.*~gluedir=$(python_get_sitedir)/PySide6/glue~g" \ - -e "s~pythonpath=.*~pythonpath=$(python_get_sitedir)~g" \ - -i "${BUILD_DIR}/install/usr/lib/pkgconfig/pyside6.pc" || die - cp "${BUILD_DIR}/install/usr/lib/pkgconfig/"pyside6{,-${EPYTHON}}.pc || die - fi - - sed \ - -e "s~/lib/libshiboken6\.cpython~/$(get_libdir)/libshiboken6\.cpython~g" \ - -e "s~/lib/libpyside6\.cpython~/$(get_libdir)/libpyside6\.cpython~g" \ - -e "s~/lib/libpyside6qml\.cpython~/$(get_libdir)/libpyside6qml\.cpython~g" \ - -e "s~libshiboken6\.cpython.*\.so\.$(ver_cut 1-3)~libshiboken6\${PYTHON_CONFIG_SUFFIX}\.so\.$(ver_cut 1-2)~g" \ - -e "s~libpyside6\.cpython.*\.so\.$(ver_cut 1-3)~libpyside6\${PYTHON_CONFIG_SUFFIX}\.so\.$(ver_cut 1-2)~g" \ - -e "s~libpyside6qml\.cpython.*\.so\.$(ver_cut 1-3)~libpyside6qml\${PYTHON_CONFIG_SUFFIX}\.so\.$(ver_cut 1-2)~g" \ - -e "s~libshiboken6\.cpython.*\.so\.$(ver_cut 1-2)~libshiboken6\${PYTHON_CONFIG_SUFFIX}\.so\.$(ver_cut 1-2)~g" \ - -e "s~libpyside6\.cpython.*\.so\.$(ver_cut 1-2)~libpyside6\${PYTHON_CONFIG_SUFFIX}\.so\.$(ver_cut 1-2)~g" \ - -e "s~libpyside6qml\.cpython.*\.so\.$(ver_cut 1-2)~libpyside6qml\${PYTHON_CONFIG_SUFFIX}\.so\.$(ver_cut 1-2)~g" \ - -i "${BUILD_DIR}/install/usr/lib/cmake/"*/*.cmake || die - local file - for file in "${BUILD_DIR}/install/usr/lib/cmake/"*/*.cpython-*.cmake - do - local base=${file##*/} - ln -s "${base}" "${file%/*}/${base%%.*}-${EPYTHON}.cmake" || - die - done -} - -python_test() { - # Otherwise it picks the last built directory breaking assumption for multi target builds - mkdir -p build_history/9999-99-99_999999/ || die - local pyside_build_dir=qfp$(usev debug d)-py${EPYTHON#python}-qt$(ver_cut 1-3)-${pyside_build_id} - echo "$(ls -d "${BUILD_DIR}"/build*/${pyside_build_dir}/build | sort -V | tail -n 1)" > build_history/9999-99-99_999999/build_dir.txt || die - echo "${pyside_build_dir}" >> build_history/9999-99-99_999999/build_dir.txt || die - - virtx ${EPYTHON} testrunner.py test --projects=shiboken6 $(usev core '--projects=pyside6') || - die "Tests failed with ${EPYTHON}" -} - -pkg_preinst() { - # Avoid symlinks being blocked by directories - rm -rf "${EROOT}/usr/include/"{PySide6,shiboken6} || die - rm -rf "${EROOT}/usr/share/PySide6" || die -} diff --git a/dev-python/sympy/metadata.xml b/dev-python/sympy/metadata.xml index 794bf8b7f3ed..3e73f38c8406 100644 --- a/dev-python/sympy/metadata.xml +++ b/dev-python/sympy/metadata.xml @@ -5,10 +5,6 @@ <email>grozin@gentoo.org</email> <name>Andrey Grozin</name> </maintainer> - <maintainer type="person"> - <email>sam@gentoo.org</email> - <name>Sam James</name> - </maintainer> <maintainer type="project"> <email>sci-mathematics@gentoo.org</email> <name>Gentoo Mathematics Project</name> diff --git a/dev-python/versioningit/versioningit-3.1.3.ebuild b/dev-python/versioningit/versioningit-3.1.3.ebuild index a1912e08eed3..7fc0b10dd5a3 100644 --- a/dev-python/versioningit/versioningit-3.1.3.ebuild +++ b/dev-python/versioningit/versioningit-3.1.3.ebuild @@ -4,7 +4,8 @@ EAPI=8 DISTUTILS_USE_PEP517=hatchling -PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) +PYTHON_FULLY_TESTED=( pypy3_11 python3_{11..13} ) +PYTHON_COMPAT=( "${PYTHON_FULLY_TESTED[@]}" ) inherit distutils-r1 pypi @@ -20,15 +21,14 @@ KEYWORDS="amd64 ~arm arm64 ~riscv ~x86" RDEPEND=" >=dev-python/packaging-17.1[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - <dev-python/tomli-3[${PYTHON_USEDEP}] - ' 3.10) dev-vcs/git " BDEPEND=" test? ( - dev-python/pydantic[${PYTHON_USEDEP}] dev-python/pytest-mock[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/pydantic[${PYTHON_USEDEP}] + ' "${PYTHON_FULLY_TESTED[@]}") ) " @@ -40,5 +40,13 @@ EPYTEST_IGNORE=( distutils_enable_tests pytest python_test() { + if ! has "${EPYTHON/./_}" "${PYTHON_FULLY_TESTED[@]}"; then + EPYTEST_IGNORE+=( + # Needs pydantic + test/test_methods/test_hg.py + test/test_methods/test_git.py + ) + fi + epytest -o addopts= } |
