diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-11-04 22:13:37 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-11-04 22:13:37 +0000 |
commit | 39ca6159b9ac903dc56818918d9f97bc831f0955 (patch) | |
tree | e9b34845be7f96bc244fd239f6dd8090096ce703 /dev-python | |
parent | bc968d15e7f24968eb69567c7f2fca470fdedacd (diff) |
gentoo auto-resync : 04:11:2023 - 22:13:37
Diffstat (limited to 'dev-python')
36 files changed, 471 insertions, 34 deletions
diff --git a/dev-python/Manifest.gz b/dev-python/Manifest.gz Binary files differindex cc2860cd3e49..309af7604cd9 100644 --- a/dev-python/Manifest.gz +++ b/dev-python/Manifest.gz diff --git a/dev-python/clang-python/Manifest b/dev-python/clang-python/Manifest index 8a19f52bab53..171291dd7b81 100644 --- a/dev-python/clang-python/Manifest +++ b/dev-python/clang-python/Manifest @@ -9,6 +9,7 @@ DIST llvm-project-17.0.3.src.tar.xz.sig 438 BLAKE2B 045e7ca82c8d9b3f182e4fa331ec DIST llvm-project-17.0.4.src.tar.xz 127828636 BLAKE2B bd91ef7f07e085b935500b056f75ab792d13e7f33825df36e85e7988f313a4f3fbb1b4c854615a5e437a97ad552838eb1be5098194f281ba1279330156dd6a38 SHA512 6703eede8013e7e5733fbd7b527757166d5698f52e239522fb320717430c88696309038501d22fe384b016b330bd92126a2c0ba88b0258c3f092801e3800b7a3 DIST llvm-project-17.0.4.src.tar.xz.sig 438 BLAKE2B e417c14d0af8c2f13eccec7a42d0e4d5a6a834d7a3d31061b9f56f7e880cd982c2b1e84322bcf8f6a3d3167519c31f16c7acb8fc725ab5b453f467a196ca2688 SHA512 4e79bb1d2b41289c092d4ec2759d7cfd4f12df8d107f9510aa9e2354691e7f878e3929b2b50e29fd6c65bd5a3aa13baf6b791847c1cd99817adbf59700cf2bdd DIST llvm-project-5d35273a32d239b7407338e13ed71b59174d6536.tar.gz 198787569 BLAKE2B 7f4f1eb490028e18826a6ebade649a682e433252ceab1f3dcd9e50c34f24e7ef108c3325ec209a4d4fa1ded8e09ebda4980cb9d8ddce8a0d517923d6c38b8f4a SHA512 4d263561fb12cc07a5e8f7ed2f8f22a3645aa959cf963a6a735a9bb93cfc2a51bf7e4d36b54e8425725029cfcfd868dfcc53af95d26d84be72be124d8c564271 +DIST llvm-project-83888a5404d46667647fe36d6fa510d075ed57ea.tar.gz 200867834 BLAKE2B 20f5afa071089852abfdcc316e5db77681afe0fdb189a515d7724a0abaf1c545f37ba4b946414c7b8afca62636107bd4e1c7c99d8ba6a514bb413b13f5f634b0 SHA512 4cd7680a227388382076d5735a97a379546f5bdde33272a5a3d317d98c2847e34917dd38a3cfb3f1f677f6d9a9b2163b29f89dd9c4b92506f5be34a3072e0509 DIST llvm-project-a7700985577694d6cc2498833f27b4fb5eeaf252.tar.gz 199221825 BLAKE2B 047ab7c0e80e1dbbe61ebd9aaae17166665a33b5cb50beec6da2cc19bec9a16777b82c157e74f88b0678d843b200f292d696a964211a8e532f128491dc39a6e4 SHA512 b747210d53402ae01238fa82195fa5c1c8d1c832d976bcc996ef657ac54dacb2fb19521c6f080151e6b1af8a49ddfe58979afaa00b3f1f72dc664ac79b99a8bb DIST llvm-project-e6e90840708099425b7b69dd053634ff25d4907f.tar.gz 199022115 BLAKE2B 442aff8f561f7c5834a36b7eb217fd2b984e58af9cbcf3e6495305f386a7651e73345bbe65133af4bffaf8cb209cfb9a94fb28756ffaaaae8f7d28ec253ccb78 SHA512 fa9c180f36f4c782208ae7baff1683ee466c70f7d021b21b9cb8a8fd0f2005c0b47889d8bb37f5fb984f6b2ec26c74df60490c7b51ac3d080830e6844e33e300 EBUILD clang-python-14.0.6.ebuild 956 BLAKE2B 0452806a0baf8641d44d86c91b95958fe3bdef74fe62c32e6cb90c90ee8718c61fe9649d2f9ac17b127d65c64cba9093adee742f455be720ca2bf558131cee05 SHA512 5179df9990802cfcedcd59b8a38a6198cdfddb511fb872872c2e4cfc95531f114acb6bb43395c74659c6b46a42da32213e8312e2ed71b6e317a7270a12cfa214 @@ -21,4 +22,5 @@ EBUILD clang-python-18.0.0.9999.ebuild 1170 BLAKE2B 90973d66df90d8a0bca727049d90 EBUILD clang-python-18.0.0_pre20231013.ebuild 1170 BLAKE2B 90973d66df90d8a0bca727049d90e2e0cd08d084d133ef6eae9a82eef22151a2a668f14b725ccf693092ff7bb42088696f5777454a84fb201278a56332b62cf1 SHA512 ab723719d9f4d2f2252c34626e7fc7631e72ccdcb8338d4072d9ce571dd55c51aba191b49c5f12fb252f78517e7358154273b89bc1fe7c39cd34070220a69085 EBUILD clang-python-18.0.0_pre20231019.ebuild 1170 BLAKE2B 90973d66df90d8a0bca727049d90e2e0cd08d084d133ef6eae9a82eef22151a2a668f14b725ccf693092ff7bb42088696f5777454a84fb201278a56332b62cf1 SHA512 ab723719d9f4d2f2252c34626e7fc7631e72ccdcb8338d4072d9ce571dd55c51aba191b49c5f12fb252f78517e7358154273b89bc1fe7c39cd34070220a69085 EBUILD clang-python-18.0.0_pre20231025.ebuild 1170 BLAKE2B 90973d66df90d8a0bca727049d90e2e0cd08d084d133ef6eae9a82eef22151a2a668f14b725ccf693092ff7bb42088696f5777454a84fb201278a56332b62cf1 SHA512 ab723719d9f4d2f2252c34626e7fc7631e72ccdcb8338d4072d9ce571dd55c51aba191b49c5f12fb252f78517e7358154273b89bc1fe7c39cd34070220a69085 +EBUILD clang-python-18.0.0_pre20231104.ebuild 1170 BLAKE2B 90973d66df90d8a0bca727049d90e2e0cd08d084d133ef6eae9a82eef22151a2a668f14b725ccf693092ff7bb42088696f5777454a84fb201278a56332b62cf1 SHA512 ab723719d9f4d2f2252c34626e7fc7631e72ccdcb8338d4072d9ce571dd55c51aba191b49c5f12fb252f78517e7358154273b89bc1fe7c39cd34070220a69085 MISC metadata.xml 299 BLAKE2B 2feead2cd1b35b3a43335ddd7711f8181b52bc63ee7166608914260c67528add5251349063afbef4f8cf0ec09b2cd4c3ffdd90f2c14ed60bb69ebc03888f6333 SHA512 cd745c54ab18d25bdaff18582105072574103a36cfe7c175ef740f266d00e9fc6f44c332904d23b911c939cf5bdf52973b388923099d8dd5dfef3c283b5cb685 diff --git a/dev-python/clang-python/clang-python-18.0.0_pre20231104.ebuild b/dev-python/clang-python/clang-python-18.0.0_pre20231104.ebuild new file mode 100644 index 000000000000..e1394f43bcd1 --- /dev/null +++ b/dev-python/clang-python/clang-python-18.0.0_pre20231104.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) +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 4ac69123d8c8..e9a7b24481ff 100644 --- a/dev-python/lit/Manifest +++ b/dev-python/lit/Manifest @@ -9,6 +9,7 @@ DIST llvm-project-17.0.3.src.tar.xz.sig 438 BLAKE2B 045e7ca82c8d9b3f182e4fa331ec DIST llvm-project-17.0.4.src.tar.xz 127828636 BLAKE2B bd91ef7f07e085b935500b056f75ab792d13e7f33825df36e85e7988f313a4f3fbb1b4c854615a5e437a97ad552838eb1be5098194f281ba1279330156dd6a38 SHA512 6703eede8013e7e5733fbd7b527757166d5698f52e239522fb320717430c88696309038501d22fe384b016b330bd92126a2c0ba88b0258c3f092801e3800b7a3 DIST llvm-project-17.0.4.src.tar.xz.sig 438 BLAKE2B e417c14d0af8c2f13eccec7a42d0e4d5a6a834d7a3d31061b9f56f7e880cd982c2b1e84322bcf8f6a3d3167519c31f16c7acb8fc725ab5b453f467a196ca2688 SHA512 4e79bb1d2b41289c092d4ec2759d7cfd4f12df8d107f9510aa9e2354691e7f878e3929b2b50e29fd6c65bd5a3aa13baf6b791847c1cd99817adbf59700cf2bdd DIST llvm-project-5d35273a32d239b7407338e13ed71b59174d6536.tar.gz 198787569 BLAKE2B 7f4f1eb490028e18826a6ebade649a682e433252ceab1f3dcd9e50c34f24e7ef108c3325ec209a4d4fa1ded8e09ebda4980cb9d8ddce8a0d517923d6c38b8f4a SHA512 4d263561fb12cc07a5e8f7ed2f8f22a3645aa959cf963a6a735a9bb93cfc2a51bf7e4d36b54e8425725029cfcfd868dfcc53af95d26d84be72be124d8c564271 +DIST llvm-project-83888a5404d46667647fe36d6fa510d075ed57ea.tar.gz 200867834 BLAKE2B 20f5afa071089852abfdcc316e5db77681afe0fdb189a515d7724a0abaf1c545f37ba4b946414c7b8afca62636107bd4e1c7c99d8ba6a514bb413b13f5f634b0 SHA512 4cd7680a227388382076d5735a97a379546f5bdde33272a5a3d317d98c2847e34917dd38a3cfb3f1f677f6d9a9b2163b29f89dd9c4b92506f5be34a3072e0509 DIST llvm-project-a7700985577694d6cc2498833f27b4fb5eeaf252.tar.gz 199221825 BLAKE2B 047ab7c0e80e1dbbe61ebd9aaae17166665a33b5cb50beec6da2cc19bec9a16777b82c157e74f88b0678d843b200f292d696a964211a8e532f128491dc39a6e4 SHA512 b747210d53402ae01238fa82195fa5c1c8d1c832d976bcc996ef657ac54dacb2fb19521c6f080151e6b1af8a49ddfe58979afaa00b3f1f72dc664ac79b99a8bb DIST llvm-project-e6e90840708099425b7b69dd053634ff25d4907f.tar.gz 199022115 BLAKE2B 442aff8f561f7c5834a36b7eb217fd2b984e58af9cbcf3e6495305f386a7651e73345bbe65133af4bffaf8cb209cfb9a94fb28756ffaaaae8f7d28ec253ccb78 SHA512 fa9c180f36f4c782208ae7baff1683ee466c70f7d021b21b9cb8a8fd0f2005c0b47889d8bb37f5fb984f6b2ec26c74df60490c7b51ac3d080830e6844e33e300 EBUILD lit-14.0.6.ebuild 914 BLAKE2B ff939004df0d10a698e942c99ecf3bb11fe8e0c035e3dfb0ac495f2368d83bb89cccb11de0878b3555c4047b8d0e4b969e5cec8aef8891aabf2d16a550696870 SHA512 7be9e5f983bffabf30c954e45ede8fb6b30013b84cbd50f66fa3a2185b0223b4ede7466d40376453283e9ca806da1ae80afe6e6fee001ede95b78226bcc7267d @@ -21,4 +22,5 @@ EBUILD lit-18.0.0.9999.ebuild 860 BLAKE2B 3a18f88ec42d005dd80b70d43ff143d82c5359 EBUILD lit-18.0.0_pre20231013.ebuild 860 BLAKE2B 3a18f88ec42d005dd80b70d43ff143d82c535984334af0cbe884e984e3b0241a68971b8ea61dcdeb0cba334b6e8c08197453640a9bf656ead44600409c9a85d1 SHA512 94898a012bdcff3cf76e471cca4fcd0d7e02df415c7f283bee874b17f26b3dc39d9db693690d84c655943ffcc8f708a0dad174ec3828c0526c319c16401f7061 EBUILD lit-18.0.0_pre20231019.ebuild 860 BLAKE2B 3a18f88ec42d005dd80b70d43ff143d82c535984334af0cbe884e984e3b0241a68971b8ea61dcdeb0cba334b6e8c08197453640a9bf656ead44600409c9a85d1 SHA512 94898a012bdcff3cf76e471cca4fcd0d7e02df415c7f283bee874b17f26b3dc39d9db693690d84c655943ffcc8f708a0dad174ec3828c0526c319c16401f7061 EBUILD lit-18.0.0_pre20231025.ebuild 860 BLAKE2B 3a18f88ec42d005dd80b70d43ff143d82c535984334af0cbe884e984e3b0241a68971b8ea61dcdeb0cba334b6e8c08197453640a9bf656ead44600409c9a85d1 SHA512 94898a012bdcff3cf76e471cca4fcd0d7e02df415c7f283bee874b17f26b3dc39d9db693690d84c655943ffcc8f708a0dad174ec3828c0526c319c16401f7061 +EBUILD lit-18.0.0_pre20231104.ebuild 860 BLAKE2B 3a18f88ec42d005dd80b70d43ff143d82c535984334af0cbe884e984e3b0241a68971b8ea61dcdeb0cba334b6e8c08197453640a9bf656ead44600409c9a85d1 SHA512 94898a012bdcff3cf76e471cca4fcd0d7e02df415c7f283bee874b17f26b3dc39d9db693690d84c655943ffcc8f708a0dad174ec3828c0526c319c16401f7061 MISC metadata.xml 340 BLAKE2B c9ca851e49b4ab48c015686e983ec988f60c34ed0af77abd7bc03d046002f79f74b9b463ecb97db89f2230c1593af7acdaf6651fc51fed4aa92a459d07aabf18 SHA512 3fe8262ce6b971364162fbdbac3b02bf02f0a64896c8a2564e2a2998bd6e6bc74463bf9104e3f4ffaa9f5c1a16c877fc864b8a4f056ca0022f741799bc00f217 diff --git a/dev-python/lit/lit-18.0.0_pre20231104.ebuild b/dev-python/lit/lit-18.0.0_pre20231104.ebuild new file mode 100644 index 000000000000..1689cd7b1ce2 --- /dev/null +++ b/dev-python/lit/lit-18.0.0_pre20231104.ebuild @@ -0,0 +1,41 @@ +# 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_{10..12} ) + +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() { + 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/spyder-kernels/Manifest b/dev-python/spyder-kernels/Manifest index 87a595e66530..6c2ab591b637 100644 --- a/dev-python/spyder-kernels/Manifest +++ b/dev-python/spyder-kernels/Manifest @@ -1,5 +1,5 @@ DIST spyder-kernels-2.4.4.tar.gz 98216 BLAKE2B f9f7c007f3c8f4365b84606e7473c169b525aad6d4ddccd6a72fc4d84f48b3fbf0272bd8f8e7f9cc7eb48df555e333f1b8ef0adc8c2f0b8d6df4ff9de35568f8 SHA512 826ced4928d8308e1a31790f0938e24ee8171b7e1f890a322bf652798991db4f3c2c270dd1b9cee44110ac85724043e4f80bc2adb54ad9f09f5414ee8bbd0a4a DIST spyder-kernels-3.0.0b2.tar.gz 236918 BLAKE2B 2a0083f8f48d11d66e49bb6736e8efd4fdfa1a4cac8e5a99d5ca473a90371084ff0e66c169850f36c1f77df54939c16336f1f7f6f0f5d7042525ecfde4b3b5a4 SHA512 8cd77b377056fdec07c68cc07960f4692ca3328a375891365ca0f59133a648a74b5cd75585398d53c1237ebee0a0fd4a01b6e7f24a8df93f107307511777fced -EBUILD spyder-kernels-2.4.4.ebuild 2146 BLAKE2B 0727649748ab7737bb5f48ac438f0bba46ccec3ae2a36ba55e4408baed524eea8255bfdae3686311ea76932d4b5b8e64aa3340bfd53b68369dd7835bac53fd7b SHA512 b8d8363f262b1c50baf9a88e610bbae5b1ce19ab7dcba3a47f5b852a00b3b88a622cb545a5f3729cb0f3e15882b5f0ba482223f155806c7ec8dc668b742c27c5 -EBUILD spyder-kernels-3.0.0_beta2.ebuild 2330 BLAKE2B 4c797de8a11a81e98d4e0cf9da56050ad15e78da5d744d9981786a55ef60b5d93cc08e44eae76cd8932c98612015f062d323c16a09ec3c29c437b7150fde9349 SHA512 19d23c3ccff4bdfdce72b09246cd4065ec19d6f3fb9584e8257f9f222fffb15dfb06b3482ad160d93744f190b79bbe1074b8a96362fbf7d0abc8f2646ee795a7 +EBUILD spyder-kernels-2.4.4.ebuild 2146 BLAKE2B 8cd1e32807a3f7bb501c22d63e37056c8702314dbafd333f0e26a49f8c59b56854321fdcd6d9f3411f84cff99e2451c0fc4b0f8784d15eaf0f0ceff6eddbf76f SHA512 faf39482065dd1486135e2a4ab8848c4639d0867db3410657d3d777bc1604830973af3bf3335d10e68d1df2c545dc9934c77c7cb8020e33a46bb99cf2d49b054 +EBUILD spyder-kernels-3.0.0_beta2.ebuild 2330 BLAKE2B aefaaec1d625ec0480b2caaa64499c76dc9380187acf4113dc04e2bcf4ca57d33047542eb5206589e14450a1f1947482c41f12b0b83f1b64bac6935d21113059 SHA512 293664857f91b34915c6bf5a1c6e7ebde419f3f3d23722395e22d142987b5e2bd9e068078ba895bf3dcb735b089697f7395b5aa3ed79f87e70a7b5ca3e688c5c MISC metadata.xml 545 BLAKE2B 52be79edfbfdd86e7f895c53d088399b649901b76c7b69cf6363dfba6954971ce75b14624c2fc4254810112e32721e215255d59035f70850e1c1073f9784e65b SHA512 62ad725aab52d7071ccd5297bd15fcdd5e02e97854fc412a43b5c97b7995c77661251994850616743ce39eee0d0673b3bd4189b00876ed6124bf1871f6fb100c diff --git a/dev-python/spyder-kernels/spyder-kernels-2.4.4.ebuild b/dev-python/spyder-kernels/spyder-kernels-2.4.4.ebuild index a56306e79b09..621de26a95b4 100644 --- a/dev-python/spyder-kernels/spyder-kernels-2.4.4.ebuild +++ b/dev-python/spyder-kernels/spyder-kernels-2.4.4.ebuild @@ -5,7 +5,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools PYPI_NO_NORMALIZE=1 -PYTHON_COMPAT=( python3_{10..11} ) +PYTHON_COMPAT=( python3_{10..12} ) inherit distutils-r1 pypi diff --git a/dev-python/spyder-kernels/spyder-kernels-3.0.0_beta2.ebuild b/dev-python/spyder-kernels/spyder-kernels-3.0.0_beta2.ebuild index 37b007a87efe..554a653c7ebf 100644 --- a/dev-python/spyder-kernels/spyder-kernels-3.0.0_beta2.ebuild +++ b/dev-python/spyder-kernels/spyder-kernels-3.0.0_beta2.ebuild @@ -5,7 +5,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools PYPI_NO_NORMALIZE=1 -PYTHON_COMPAT=( python3_{10..11} ) +PYTHON_COMPAT=( python3_{10..12} ) inherit distutils-r1 pypi diff --git a/dev-python/subprocess-tee/Manifest b/dev-python/subprocess-tee/Manifest index 210394c41efc..49146b21c830 100644 --- a/dev-python/subprocess-tee/Manifest +++ b/dev-python/subprocess-tee/Manifest @@ -1,3 +1,3 @@ DIST subprocess-tee-0.4.1.tar.gz 13599 BLAKE2B 779a8b5381155e8d524b6715ab9cc37f8e55565dd378a2d256648d56f018dc71860b0db2a50572a5e03fab7d2de5cd691be53c49c1aa79e756b4eb8a8d5878a5 SHA512 683813096c4bb78a4263075ba8590a926134ec92db5e2e72ed98ab1db9e231768adc15bb4273ba138f9a1b2a14ae4050d0b6acc76d483d0f3530f376ce8d9eee -EBUILD subprocess-tee-0.4.1.ebuild 910 BLAKE2B 93d8c0e938dc5ca61f9c457dc6c21762d0690cf4cb92c986efc7047bb97ecfe35b57e5ee26d2d982ef2b52c1d6b9dbda96ac67d8f3621ef5dbe31db8b7a72aef SHA512 8cf8c3eab35c68745de674e2fbe9ea2d4789671ce0e630a92e7686cb9108a09cd8741eb92ae728fea1f63d845022e3b64364daaa7d2b883d2847defab2b4654d +EBUILD subprocess-tee-0.4.1.ebuild 911 BLAKE2B b7f40a01c6d0c76abc0ebec827750cebd782620a0f03d4ebc75738f425c49281afab1fd46e62bbbdc2783b866154bc28e31eb5b184a4a037f7ccb3bf8334164b SHA512 00fa39ad86065ea7914afcc1f6fd4e97818570e8109c6b7803020a3841a0ec51e7f64eccb2734b219b1dff234171194a6c6c71afe084c4478ed744310170f82f MISC metadata.xml 733 BLAKE2B b18b79649744580db9298cb069dbf3b4c23d10983f012206199f6049752a5a232ed7068daad0716add206cfbf811d3c30e61c90d465e9f2a7f5c444f415d5dad SHA512 a3458edf61b355dc98f05602aa0a98c56d553567f85644ce5157f6a36f8947f8fb11971992305074c1d00a00e38481d4b34048ccf2312f51b477f33498cd792f diff --git a/dev-python/subprocess-tee/subprocess-tee-0.4.1.ebuild b/dev-python/subprocess-tee/subprocess-tee-0.4.1.ebuild index 66074e9ff463..50630e278d00 100644 --- a/dev-python/subprocess-tee/subprocess-tee-0.4.1.ebuild +++ b/dev-python/subprocess-tee/subprocess-tee-0.4.1.ebuild @@ -3,9 +3,9 @@ EAPI=8 -PYTHON_COMPAT=( python3_{9..11} ) DISTUTILS_USE_PEP517=setuptools PYPI_NO_NORMALIZE=1 +PYTHON_COMPAT=( python3_{10..12} ) inherit distutils-r1 pypi diff --git a/dev-python/tox/Manifest b/dev-python/tox/Manifest index 3512500a9734..5bcc39d5bb5a 100644 --- a/dev-python/tox/Manifest +++ b/dev-python/tox/Manifest @@ -1,5 +1,5 @@ DIST tox-3.28.0.gh.tar.gz 309472 BLAKE2B 9896411426f6aebb3efa468c01696ecc5f17ec3e67825672d0efc74c1b1468bc8b8d9c14b6177c181750ba4b9a5e77d616068dd83e21f5641acfc8e2a271cc1f SHA512 64816754e6800661bb564c5c7d21c4139522d540a04fafe3c4591d596072d48d1cbe0ee2abee9c8faf3d5007774f5371431b5a7a8f49912bc879c7b168aab2ca DIST tox-4.11.3.tar.gz 175528 BLAKE2B 521e26cf11127b51089e1f5c20ec73bfa2ec36fc098f03cdca398769ae9d6d67f75e4bd0a4b661fcdfbc614d9971fd8e4e801648459456d690493a071aaa25f1 SHA512 326023cf8011957ea4b1e7c8765ca9da3a2387a78810ade09b71be56c26481cd020ca99217a3c7fe7f95da365840dfb5c7c7ee6ed63caeda2b326abdd66b7438 EBUILD tox-3.28.0.ebuild 1916 BLAKE2B ff8aa55245a3f654897ad4c8f5861a55410b2b9442bf3f85aaa0ee236f576efcea1a2ed697c715c7182679b62a4781c5a0f6236eb92a1b12d6ddc73154612a67 SHA512 2f5999d0263da9efb00216600f8b98fb3c204e11640049d92c6106279baeff452468d2bb78236839bc8bd5540d6f9d01338af26315148d81a788d476ec5dbed5 -EBUILD tox-4.11.3.ebuild 2832 BLAKE2B 6dd0f92103fbc7261904f83a12efd04f4055259a84edf62f8900c23690d2870570e4e8ce9282d65d6f3a5e6ee185b7fc79674b9f5c8704019335eda64cf675ed SHA512 fd82723a8b59d1fbf2fed1e21857877da84a5a8478ebc3e3f1c9fb9e971aac53244e35c54e6a502df237ea48d900ff471033e35a43592842dfc4990bef2557e2 +EBUILD tox-4.11.3.ebuild 2832 BLAKE2B fe4fdc8b0bfe93804564ff7fdbf1365419217f5fc476c3f7a84688a4bcfd615e800838c2fc196e40233307271a3495a43fce244b3c8e18923090a2f3cab09a51 SHA512 8857ec0e0b43901e90dfe1e3bb7750f111ed8b424d6a1735349a2d404d9f788ccd4eb53c0903705ab641e26491da73658dd9d86c9558c3512e1c8c772a0ec068 MISC metadata.xml 382 BLAKE2B 7c0704c5c187ce4a7972fe0372b23c5537a81a8d62fd83436d9558a61761f10764adb5a4d5f6795f0dd1fe905afa604c0be77fe1d48d291847f6ae65dc1b032c SHA512 9d0ced4df9352a81034a50d5766a01534ae8fa889985d99cc9e2a8d0889e31c6c11550677d9a5a74e2aab57c320192ce3a42708a6d23b0419ee34a6054398344 diff --git a/dev-python/tox/tox-4.11.3.ebuild b/dev-python/tox/tox-4.11.3.ebuild index a6e7b0088bc1..036fcb69842c 100644 --- a/dev-python/tox/tox-4.11.3.ebuild +++ b/dev-python/tox/tox-4.11.3.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=hatchling -PYTHON_COMPAT=( python3_{10..11} pypy3 ) +PYTHON_COMPAT=( python3_{10..12} pypy3 ) inherit distutils-r1 pypi diff --git a/dev-python/translate-toolkit/Manifest b/dev-python/translate-toolkit/Manifest index f675818e7245..3b06959e5113 100644 --- a/dev-python/translate-toolkit/Manifest +++ b/dev-python/translate-toolkit/Manifest @@ -1,3 +1,3 @@ DIST translate-3.10.1.gh.tar.gz 1197315 BLAKE2B 8cb9f78e505a7e6c737fa39e32c731313893d9016e14e79d565f2c68baecedd8be47bc4cc715000ee8dfcf094624b9b3a68a39800ec98908684dab8e8517448e SHA512 f3355603e445a432cb69f102a2ce4a20013b3df1a4c17c60a4599b069db6a0ad5316d29d79f211a61a1eb155dd550fb2db7c98e3f36dc858c5d15118cbeae8d8 -EBUILD translate-toolkit-3.10.1.ebuild 3152 BLAKE2B f31981c7c11b1a55aca2a2fb6ec3d99515027614ea24f6733a81057d6addf8cf70daf8155f4dd4ba70350da496151c9d35c62b4a7b319b5770c04782e2b312a8 SHA512 53a16f4e03bf86db78f0d8dc1a7781f168e164b5fc57dca83b289d43689b47a5bd7aff0806b4d1a9e2d21862f9080deaf98d8ca7af7dfa9cb5de58a9204e754e +EBUILD translate-toolkit-3.10.1.ebuild 3213 BLAKE2B a1c2892f25e3e17672648ee2e1badafbe5785fe6458ba04ca50f9f6024edbe24032412ebb8c858185e79d4fadc218f29bb39822ca70723999a3e9e3e492a4284 SHA512 8cd5abb5a54bf2248d78814981a6d9e64a117e0140ce384ff7913de01d5ca4e9e03059a5f79b9aee373bc808c3fafcbcb630575b6d97a47e1a0ceddc02ffa55c MISC metadata.xml 756 BLAKE2B 06f64f258d362954f99f7e9eee241eb3dddc6b00b9069df2ad977d28b5cf06f9c8ee2246ee5958600b5ac86297968d7aaced6b6420dca4ed507c441c58c61ca9 SHA512 80374c40513ca450f97e3930929c1450e7438ea15830e60937952a6fccfd999675f2ca2056c5aa4e287ba256c6ec08a09d8f7adb8b2c5af8ca0cd595f34acd85 diff --git a/dev-python/translate-toolkit/translate-toolkit-3.10.1.ebuild b/dev-python/translate-toolkit/translate-toolkit-3.10.1.ebuild index 1d6ec00a312c..77dcd8f1db85 100644 --- a/dev-python/translate-toolkit/translate-toolkit-3.10.1.ebuild +++ b/dev-python/translate-toolkit/translate-toolkit-3.10.1.ebuild @@ -4,6 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools +# py3.12: https://github.com/translate/translate/issues/5071 PYTHON_COMPAT=( python3_{10..11} ) PYTHON_REQ_USE="sqlite" diff --git a/dev-python/treq/Manifest b/dev-python/treq/Manifest index ab7d6c4da95d..dd2200be0247 100644 --- a/dev-python/treq/Manifest +++ b/dev-python/treq/Manifest @@ -1,3 +1,5 @@ DIST treq-22.2.0.tar.gz 72922 BLAKE2B ab4637c801e5e777f81f6e6a6e12e36ef47e052a4103eb70bf4e10d3fb44b60f144f32734625b4babb375acc96e3cad1895634d3d2fc08ac3095769180e65328 SHA512 465a02481a51ac246ac85f561f2e7a59d97aeeda9f0953dd83678ff836802a187a6aedcce830a9e3095a9c72227bd06113610c3be0967f1362a645a31278bde0 +DIST treq-23.11.0.tar.gz 74450 BLAKE2B 0e10b070e1623b1aaaaf8ce53c98d29a44e9e5e76a84d6004e21cac74564cbb4b22c4015b4d999967ee519f6356016d3cb3fd8304df68967ec46dd2c1005d3ee SHA512 bf62373f51a0552e040a628c86fe0f8d136ab5dfefaa2fa46d9ab173a58c20c0211f94370561e07fafb7da87140e88c10cf336ff7a61e5b3fc1a47fd1193cc27 EBUILD treq-22.2.0-r1.ebuild 1101 BLAKE2B a85a5ec7393943314a749f010902977a8d93574d8670dc25bae65c81b55ff994fa12cd459a0ba25c826e216a7cf4a15c80d387166afec1cc4715511f26a06278 SHA512 b27f68f2dcfddf0531e043094d6c6982ba38855e476fe04bc352f737634724110c94d5e3a5446e6f3c4a81376ddb9636ec43c7fd23b3699ea2200155f4267dd5 +EBUILD treq-23.11.0.ebuild 1140 BLAKE2B 31ad05d0645cf41a7c7ab6a5af5d7f190224d1f672a6381ad6804c712fe6cff86c7eae7d770e6ee5e60e2fb99dd6a8d5a8aaebffa57a248527a6eee00d00e158 SHA512 0e474a8a3bff064e7ab554ad6cac4235ce64c4bd614b5eabc4777b9e131445d308e3981139709d3a8f10335bad3224cb54a0359c1c3eb1319cc2cd2db351bc20 MISC metadata.xml 781 BLAKE2B a50fa9d74c53d5c948cfd940ff1e454a2aa9c44bf29c8e39495007ddab02e212a979f757335fae531ceae43743342a02a4ae049b5b12425ba779293c6977eb07 SHA512 1d45744f461efe3cd03802e3886dee60a19eb508b681e3235817f478dd98ca164c822194f03b05891e0000e3d09af4790e8b10e07f3e303abf9ad308712ca9b6 diff --git a/dev-python/treq/treq-23.11.0.ebuild b/dev-python/treq/treq-23.11.0.ebuild new file mode 100644 index 000000000000..6651c09d2572 --- /dev/null +++ b/dev-python/treq/treq-23.11.0.ebuild @@ -0,0 +1,50 @@ +# 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_{10..12} ) + +inherit distutils-r1 pypi + +DESCRIPTION="A requests-like API built on top of twisted.web's Agent" +HOMEPAGE=" + https://github.com/twisted/treq/ + https://pypi.org/project/treq/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-python/attrs[${PYTHON_USEDEP}] + >=dev-python/hyperlink-21.0.0[${PYTHON_USEDEP}] + dev-python/incremental[${PYTHON_USEDEP}] + >=dev-python/requests-2.1.0[${PYTHON_USEDEP}] + || ( + >=dev-python/twisted-18.7.0[ssl(-),${PYTHON_USEDEP}] + >=dev-python/twisted-18.7.0[crypt(-),${PYTHON_USEDEP}] + ) +" +BDEPEND=" + dev-python/incremental[${PYTHON_USEDEP}] + test? ( + dev-python/httpbin[${PYTHON_USEDEP}] + ) +" + +distutils_enable_sphinx docs + +src_prepare() { + # fix relative path for docs generation + sed -e 's@("..")@("../src")@' -i docs/conf.py || die + distutils-r1_src_prepare +} + +python_test() { + "${EPYTHON}" -m twisted.trial treq || die "Tests failed with ${EPYTHON}" +} diff --git a/dev-python/trio/Manifest b/dev-python/trio/Manifest index 5e8855ba1756..ce4f9967b505 100644 --- a/dev-python/trio/Manifest +++ b/dev-python/trio/Manifest @@ -1,5 +1,7 @@ DIST trio-0.22.2.gh.tar.gz 536949 BLAKE2B f469f306d826d110defabf14956bdfe390a0f36da16da7e6e0426573cc9faf8943514b67a22fa44463c35f1e02c61c4aa3fd8da6bc408339a77367953fc62be0 SHA512 c3f08b8a1a37c0a06e520c7c5cf6ab5ffa2366c0e8599ae831e896e79bb144ee13ea426c8e6d8278f4620eae15c3c3af6c46c8b4526147336e30050bbf111120 DIST trio-0.23.0.gh.tar.gz 585629 BLAKE2B e8d3432dd199cf6f4fa174a92696e08d0ff2a75d783ec65c217a8049cba1132821503f783b85a89f629ca39b9278711af76df5431cd14ba319fc8654585a16cc SHA512 01fab7447f7e8cde3223077ef45a788d67df8348a44325c72209f14b48f4c8510de17fc88e8c02921568274907e79599061894a12987db76e33f84dd040c5e81 +DIST trio-0.23.1.gh.tar.gz 585734 BLAKE2B 07a03f9ddd26f4e69bda651bc0821bb02895a244400cc5ec829b82e027304722248f7cf608bad8afb928e54736034349d736ca1aaa40b470cbbc3c1a74e3c77c SHA512 e7348cefb364689060c32987120c50081c677531fb4082a68956c431112b9966af6db09ebdca036980af660e48c2bc8addd05b58d62678d45ed7ffa1ce862dcc EBUILD trio-0.22.2.ebuild 1976 BLAKE2B 2f7c05a2235608e2850938d9ec1a6871cda68309d95d764acc1fdee6194b9fbcabaeb690ba41d90c0ec3c0453ad6404ff0010868a4fb79a7e905ce322d702352 SHA512 01f96539ee6a0bfc51184184df4c4e47be9ebfcb4ed394c68436791c505382a9ed47e990f46ef3bc22f5d5f328d2db8b9cab7d2b81b5ec3ade129f97e4b477e5 EBUILD trio-0.23.0.ebuild 2042 BLAKE2B d0e66b47a63341b2e6f9873f1fa5c2bcabe8ea4ce580029d2a2f07468ae6298e64ebab4731dd756784c6e255f221c1ac93a0355a71315f2da78b883f90bf7399 SHA512 2bb8a6d231836cf0fc5eed08796c9893f96ac84d23a64c9dcc2ced4391652b2d2b1fe14766e298b5e3740e522c145c717e345133182cb59b2f18e887ee3ee468 +EBUILD trio-0.23.1.ebuild 2036 BLAKE2B 46358dee9e112daa4fe49ba732ca3dc8c4098f21f5fbf6ed4c2b82de7b616a7f613c70850f1c4ad506321a67ac05f9bee400a78b155b052c028f90465cde4895 SHA512 492f3c284abdf553ed826a9c5a11e4b1744c00e5c6f4597cec2090c021e81297cbb5e35f8269b069a1c1cf602fdae1e1a5de4122fbed18a9d32a613dcdc8c848 MISC metadata.xml 2060 BLAKE2B bb6ddfddfb3c19038e5982227a8c5f9999b93868c343a9a5bf7af5963006b5b719ef960f65b91747dfddf19544134db9e1a2d65e94192c079c64c303cdc8997a SHA512 4b86e7cccddc200d5616550e309ad46587f900ed13c38196e874e5110974b856d65e18745b8b7b42858cb672940ba280b0c2ea54d33f9b5bf32a375fa1232088 diff --git a/dev-python/trio/trio-0.23.1.ebuild b/dev-python/trio/trio-0.23.1.ebuild new file mode 100644 index 000000000000..4704db8dd458 --- /dev/null +++ b/dev-python/trio/trio-0.23.1.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( pypy3 python3_{10..12} ) + +inherit distutils-r1 + +DESCRIPTION="Python library for async concurrency and I/O" +HOMEPAGE=" + https://github.com/python-trio/trio/ + https://pypi.org/project/trio/ +" +SRC_URI=" + https://github.com/python-trio/${PN}/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="|| ( Apache-2.0 MIT )" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + >=dev-python/attrs-20.1.0[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/exceptiongroup-1.0.0_rc9[${PYTHON_USEDEP}] + ' 3.10) + dev-python/idna[${PYTHON_USEDEP}] + dev-python/outcome[${PYTHON_USEDEP}] + dev-python/sniffio[${PYTHON_USEDEP}] + dev-python/sortedcontainers[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + >=dev-python/astor-0.8.0[${PYTHON_USEDEP}] + >=dev-python/immutables-0.6[${PYTHON_USEDEP}] + dev-python/pyopenssl[${PYTHON_USEDEP}] + dev-python/trustme[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest +distutils_enable_sphinx docs/source \ + dev-python/immutables \ + dev-python/sphinxcontrib-trio \ + dev-python/sphinx-rtd-theme \ + dev-python/towncrier + +python_test() { + local EPYTEST_IGNORE=( + # these tests require internet access + trio/tests/test_ssl.py + trio/tests/test_highlevel_ssl_helpers.py + # requires isort + trio/_tests/tools/test_gen_exports.py + ) + + local EPYTEST_DESELECT=( + # Times out on slower arches (ia64 in this case) + # https://github.com/python-trio/trio/issues/1753 + trio/tests/test_unix_pipes.py::test_close_at_bad_time_for_send_all + + # incompatible ipython version? + trio/_core/tests/test_multierror.py::test_ipython_exc_handler + ) + if [[ ${EPYTHON} == python3.12 ]]; then + EPYTEST_DESELECT+=( + trio/_core/_tests/test_run.py::test_nursery_cancel_doesnt_create_cyclic_garbage + ) + fi + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest -p trio._tests.pytest_plugin -m "not redistributors_should_skip" +} diff --git a/dev-python/tubes/Manifest b/dev-python/tubes/Manifest index 7c1b4994e306..ec76755daa4a 100644 --- a/dev-python/tubes/Manifest +++ b/dev-python/tubes/Manifest @@ -1,3 +1,3 @@ DIST tubes-0.2.1.gh.tar.gz 66899 BLAKE2B 21127cf21336b6bbd2acf794bb503a987f7fae63defc7de04d554c7f55f617a23daae105ef756fdf5e8e1b208907388745c6485179f9010339de717853ea8b08 SHA512 6f4666f1591c96d0d7f0514f511ad700f6c3976fcf561f0d967f26aead089e682540b74f85b26a68ff6877d5d7775654c9f6959d8a41c25804375ca837ac1815 -EBUILD tubes-0.2.1.ebuild 610 BLAKE2B 76d33d43f497fabbd7e96243394df5c9a3c3b892fb4147fff1f50e5eb20cbf7c001157694422f30e78bcb6d3b816e57a9363d94f4419d57cbc27db246f489228 SHA512 1ed2cdbe0602057b3819124fcd06e8f257c490b1deac8774626433e34c6b364ad70f5a9bbd697324526985fb81784a74daecd8545a8fcc821a706b1a20474bfb +EBUILD tubes-0.2.1.ebuild 788 BLAKE2B 895c8317479fef88d3201837aaeb5268dc42e20bc94ba61b9d7b882af2166eb6da0bf56dd1bc006eef6627165066233dec0040956b9815e39428719735e4099b SHA512 f23368b6009adde337970444bab7f6506eaf86f6d595014935e4e4819ea9eb33babccda41149d632f2a0159a07597e7b03f00b7a57919601879ebfb68bb6eff9 MISC metadata.xml 761 BLAKE2B ef257b921d8ff36da6eb239ee72ae9f85a9ee01b58e54c0028d5b741f964a08a25acd39514615df05af1e1ce0873f579c99d83ab89224dcc3798f22982632c9a SHA512 e1f031965ba85c371d71ae68eb2e7e9926058a153ea1ab2db5bead6a3db9a0edfbbb12a9f229f991b244943fb59729ccb36f7a10bb4d06dee06e47cf58e8b5da diff --git a/dev-python/tubes/tubes-0.2.1.ebuild b/dev-python/tubes/tubes-0.2.1.ebuild index 4b6ba32fdcb3..657e9f7ed22a 100644 --- a/dev-python/tubes/tubes-0.2.1.ebuild +++ b/dev-python/tubes/tubes-0.2.1.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9..11} ) +PYTHON_COMPAT=( python3_{10..12} ) inherit distutils-r1 @@ -28,3 +28,11 @@ RDEPEND=" " distutils_enable_tests pytest + +src_prepare() { + # fix tests on py3.12 + # https://github.com/twisted/tubes/pull/95 + sed -i -e 's:assertEquals:assertEqual:' tubes/test/*.py || die + + distutils-r1_src_prepare +} diff --git a/dev-python/twython/Manifest b/dev-python/twython/Manifest index 5c5a98490a0b..e71d9d74701b 100644 --- a/dev-python/twython/Manifest +++ b/dev-python/twython/Manifest @@ -1,3 +1,3 @@ DIST twython-3.9.1.gh.tar.gz 372933 BLAKE2B 3db7f37e284ec83546e4f93a23e34c21ce9853e6206b62353e36b738ba591acadc55fd3dbbdf8cf7d74e63ab9966b9cdc7f49c5caa06e165bb7107b350509835 SHA512 e64d623dfa7ba2e81e09f9d8e784851b44201493d128ec576c4b5a9abc88debf1ca78f8a12933e0cd0a6b495012fa951bb62ea5d92db11186b37747b8576174f -EBUILD twython-3.9.1-r1.ebuild 1262 BLAKE2B 73beb781f8f55dcb33427ea20c96b77e062f8c70050a8d55a2353ac4eb9f162e0120e8c9bb63e4dd491f0c297decfd221789f60ea66fa3b3d32f04204ef1070e SHA512 1c3a23072a466519362966fcdae8601e60267c212246f39365909fc8a324e2965430c0092b71381e3abc31d07532af94c8929da653123b0671c9006669490d39 +EBUILD twython-3.9.1-r1.ebuild 1303 BLAKE2B 48be1dd0a02ac8ae11c7527ae1b34905a4a9258bf71a2dabfe017d6daa7c6ee4030d51c68b460c604f4821d20132210354d0a06abc3a4d5b60e37dc0f09a864b SHA512 fd36cfa514e6bb243e0c6833093213faa6e28048308db20069967c8607644f2356eb0d3262bc7714b1d94d3bf603bfb73901b88a2e9501fea04ea481e3a70307 MISC metadata.xml 407 BLAKE2B b4aac660a7929463899fafba57aab22c8175ae0f72587bb28fb765a8b0ec326085730bf3931562c27666917fe4d6d1ffa44462cb0856f46997f72d917201b7dd SHA512 cb71d9c30b5639d240bbb046479415d6520d42e3cff07fc30f8fc35366bcb188bf12f3a1088e8447964c824f264f98df29384f0ddc3fac7e11d1da0279df6414 diff --git a/dev-python/twython/twython-3.9.1-r1.ebuild b/dev-python/twython/twython-3.9.1-r1.ebuild index 2337ddcfa9c9..67e3f1ec24a0 100644 --- a/dev-python/twython/twython-3.9.1-r1.ebuild +++ b/dev-python/twython/twython-3.9.1-r1.ebuild @@ -4,15 +4,19 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9..11} ) +PYTHON_COMPAT=( python3_{10..12} ) inherit distutils-r1 DESCRIPTION="An easy way to access Twitter data with Python" -HOMEPAGE="https://github.com/ryanmcgrath/twython" +HOMEPAGE=" + https://github.com/ryanmcgrath/twython/ + https://pypi.org/project/twython/ +" SRC_URI=" https://github.com/ryanmcgrath/twython/archive/v${PV}.tar.gz - -> ${P}.gh.tar.gz" + -> ${P}.gh.tar.gz +" SLOT="0" LICENSE="MIT" diff --git a/dev-python/txtorcon/Manifest b/dev-python/txtorcon/Manifest index f5cf9e56a319..30b6273f406a 100644 --- a/dev-python/txtorcon/Manifest +++ b/dev-python/txtorcon/Manifest @@ -1,3 +1,3 @@ DIST txtorcon-23.5.0.gh.tar.gz 394188 BLAKE2B ee63d2815a9b697aa37d27697ef6085dc91e750ba0cad854c8610eed7afcfec9b50cf5aead24f75676e2b0ee39167c50fbebc43a51911a3ebe17eb784b18d31e SHA512 33610c043084273f5dc06b797fff11bb0fccaae14229dbd07286e13e40ebc199594f6e52c64b87e4060e37bcb44bd90ccf7ff7217d923fdb33a581fb95144d56 -EBUILD txtorcon-23.5.0.ebuild 871 BLAKE2B 28aac76a8052e28d87b381eb440f62658f0cdc925e69b55b9f63081470e367f2143e09ea40b84df34a2ffd5ee7d95aaf92e5518409d74c345c3b6726ebf17907 SHA512 2122bb9125e0dfb995d7991a8aacceb65d60c31bed8a94e8cb43d5383d40046fca96a7771def1ef2ef9d6a6d74ac553e5702693fd7cc0c0636d2e3384d1c2f15 +EBUILD txtorcon-23.5.0.ebuild 913 BLAKE2B 7f9368be8a343b8c7206b5ab3f43918e17d401740ed54a9d7b4829908089679e9351dc44cf699c8181956a7918099011dcfd25751be46da306be8e6602732297 SHA512 40cc44666b2834f71901b264e7729abdc149b29c376a17f3394054feaf1e3a0ac62eb16b90b2db562e73e3d3136d0f8dfad4f6addf8abc448b8cce342cc2795a MISC metadata.xml 398 BLAKE2B 5cff75ef9af25e3c3d1ef95de2d272d6f79c06a0e1101062d06bbc463010dcbf54d0ab2a94eaa049ba5050d53a703039fcf64de9ebc4c704bdc1bb25f909a3c8 SHA512 8c638e5e0e762bd5f2129f0a2696d50c91c304efecc627b4bc15e5f3e4fe811ca7bdfb20ca67546b2d9056cee80e7adbf1489c061df4dd85c94a08005b5acbbc diff --git a/dev-python/txtorcon/txtorcon-23.5.0.ebuild b/dev-python/txtorcon/txtorcon-23.5.0.ebuild index a1f17ef91891..0046315727fb 100644 --- a/dev-python/txtorcon/txtorcon-23.5.0.ebuild +++ b/dev-python/txtorcon/txtorcon-23.5.0.ebuild @@ -3,14 +3,21 @@ EAPI=8 -PYTHON_COMPAT=( python3_{10..11} ) +PYTHON_COMPAT=( python3_{10..12} ) DISTUTILS_USE_PEP517=setuptools inherit distutils-r1 DESCRIPTION="Twisted-based Tor controller client, with state-tracking abstractions" -HOMEPAGE="https://txtorcon.readthedocs.org https://pypi.org/project/txtorcon/" -SRC_URI="https://github.com/meejah/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz" +HOMEPAGE=" + https://txtorcon.readthedocs.org/ + https://github.com/meejah/txtorcon/ + https://pypi.org/project/txtorcon/ +" +SRC_URI=" + https://github.com/meejah/txtorcon/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" LICENSE="MIT" SLOT="0" @@ -22,12 +29,14 @@ RDEPEND=" dev-python/incremental[${PYTHON_USEDEP}] dev-python/six[${PYTHON_USEDEP}] dev-python/twisted[ssl,${PYTHON_USEDEP}] - dev-python/zope-interface[${PYTHON_USEDEP}]" + dev-python/zope-interface[${PYTHON_USEDEP}] +" BDEPEND=" test? ( sys-process/lsof dev-python/mock[${PYTHON_USEDEP}] - )" + ) +" distutils_enable_tests pytest diff --git a/dev-python/uncertainties/Manifest b/dev-python/uncertainties/Manifest index 5694f58b2588..acfd83e5aa30 100644 --- a/dev-python/uncertainties/Manifest +++ b/dev-python/uncertainties/Manifest @@ -1,3 +1,3 @@ DIST uncertainties-3.1.7.tar.gz 158727 BLAKE2B d68b74d291b1f6c4505a47f6fa19653eade43dc1ccaf78e02bd320df92d8bdaeac1b0808a21dceb046a6e2acd076836728b4014d39ca8da17647582320ce50e8 SHA512 24576415265df22459d83bb28e632195e6760204a6e11523821afe25222ea3e035bf7f10c552ec456bb2cdf42a09e296865f9bf0d13ff44beb88c11ebc479ff9 -EBUILD uncertainties-3.1.7-r1.ebuild 848 BLAKE2B ebc619985a2762d1ee0ff1ffb6e76067cb925e5553f3eea82ce5ff2e390df80810e3b3ea59b21d49cfab5c49a6136bb49c42e1b6468b6b42ed315f3ea4310713 SHA512 1e0519cd27ae824786ff1a3856a343411a7b0173d82cea89174c4cffe9b5baa13404eee036645f223d7dde11c513c24609d4099f29e19b7fe9e35ba7134ceadc +EBUILD uncertainties-3.1.7-r1.ebuild 849 BLAKE2B 725486b092d6edd0510708662e3e72bec6d279a5e0a3798b818f4ce8190121e7a4371e3c4829dbb68cdf9bb4378533f53b9f64eba41a59656b7dd244d50fccd2 SHA512 b8148f42f6e3e1bf5f76fd6fbc4757cbee6add392493e1f03a886a654b06fccdd37218d849de5afb18d54cb297a4f01fa8185d4e7e7950f058434e6d6ba11d03 MISC metadata.xml 1030 BLAKE2B 7f3e44920c1d05ca25974f1167804d21e0280221ba73b07a759284f7fdd77b62a02037df2275d6a7709ea37113b78fb0fb2034c99e7247dd55262176125451e2 SHA512 961c7fc2f96b9ea0694fd6283f1ba54903c500f2d78c00957f908ba369ecbd7850c429e12bb35ec29b07ff807ae648ba1b37e2b6b82b5c9cb9935badafdc76ec diff --git a/dev-python/uncertainties/uncertainties-3.1.7-r1.ebuild b/dev-python/uncertainties/uncertainties-3.1.7-r1.ebuild index c7d7ca2bd697..5c1abc030534 100644 --- a/dev-python/uncertainties/uncertainties-3.1.7-r1.ebuild +++ b/dev-python/uncertainties/uncertainties-3.1.7-r1.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9..11} ) +PYTHON_COMPAT=( python3_{10..12} ) inherit distutils-r1 optfeature pypi diff --git a/dev-python/vdf/Manifest b/dev-python/vdf/Manifest index db22987c6563..b8c2868c2395 100644 --- a/dev-python/vdf/Manifest +++ b/dev-python/vdf/Manifest @@ -1,3 +1,3 @@ -DIST vdf-3.4.tar.gz 17082 BLAKE2B f4f65134d5b1b5e52fcbc438b3bfd9000006659d8198e37e377edfda1c6166df0687ce44caf704feffeaa0d23356fffbfce11d467a093e8eb623ccb39a3da9d0 SHA512 a22668039d32cb1ef4660ea187a3a144a32e55e5b02c4c567b850d059a47beac111f9164c67bbe3e7b67d15117efe7b207882465b2353a65b7e0f0c107e88d5c -EBUILD vdf-3.4-r1.ebuild 508 BLAKE2B 74031e4035a56925bbc8ea675bc40720fe0aaa0c8e6e15991a6d1a8f21906c5c680870fa128f1a6fc955fc9e6376be0d815f9600e78838709db55435af7bee0c SHA512 e725fabf5f1a74bdcdc5ab46c2d6020bb3ec2874124fb3e3677680c8e13dbe9959d92d122f45dd2ef0f8184e8e9fbefc34c195f7c99489dc4b9cf376e8bf8f17 +DIST vdf-3.4.gh.tar.gz 17082 BLAKE2B f4f65134d5b1b5e52fcbc438b3bfd9000006659d8198e37e377edfda1c6166df0687ce44caf704feffeaa0d23356fffbfce11d467a093e8eb623ccb39a3da9d0 SHA512 a22668039d32cb1ef4660ea187a3a144a32e55e5b02c4c567b850d059a47beac111f9164c67bbe3e7b67d15117efe7b207882465b2353a65b7e0f0c107e88d5c +EBUILD vdf-3.4-r1.ebuild 549 BLAKE2B 10786dbfebfbd5e84405b6c087aebf5425c1f1e25a107aa40af9f7c65a2fd75c50faf1f42d04fcd942694b499ed723062a963d30aaf612fdc02a3c28277d224d SHA512 3b0168f816be6d8661bce714327f43ec59c033b28f9b2c116ba87ebc98b4dbd9034f2f99c3edf7e597f5e3bc4684af74480fa2a981bd31865c6df427a455f5f9 MISC metadata.xml 492 BLAKE2B 80437b1fc798d5bced980530bdd88ce168cf568f6be745d0caf7f8e12e05b856f653d7fa3909ec6f3a1860d559584214ce1f9761e0429107650af755c057ed01 SHA512 9182e1920b00061daf94286473a9b755e7a55048ecf06cfcd2d835dd75a958c15c0bfd294ff3a674af794c225468bf829f7171e64275ef44658e13f60d2b4198 diff --git a/dev-python/vdf/vdf-3.4-r1.ebuild b/dev-python/vdf/vdf-3.4-r1.ebuild index ff002f397c5e..6ec9a2844aae 100644 --- a/dev-python/vdf/vdf-3.4-r1.ebuild +++ b/dev-python/vdf/vdf-3.4-r1.ebuild @@ -4,13 +4,19 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9..11} pypy3 ) +PYTHON_COMPAT=( python3_{10..12} pypy3 ) inherit distutils-r1 DESCRIPTION="A module for (de)serialization to and from VDF, Valve's key-value text format" -HOMEPAGE="https://github.com/ValvePython/vdf" -SRC_URI="https://codeload.github.com/ValvePython/${PN}/tar.gz/v${PV} -> ${P}.tar.gz" +HOMEPAGE=" + https://github.com/ValvePython/vdf/ + https://pypi.org/project/vdf/ +" +SRC_URI=" + https://github.com/ValvePython/vdf/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" LICENSE="MIT" SLOT="0" diff --git a/dev-python/wsaccel/Manifest b/dev-python/wsaccel/Manifest index 6e8c6a8a2fb0..a26c2b1e8174 100644 --- a/dev-python/wsaccel/Manifest +++ b/dev-python/wsaccel/Manifest @@ -1,3 +1,3 @@ DIST wsaccel-0.6.6.gh.tar.gz 9930 BLAKE2B f8d8c9ae0966374fbd965859150cca68b3fae6f39fdcfa744f98e7fade2a76946b57bea753c2dbb4051ef635e0dd0fbfd915c7f8bf4b9b5cd2b5b372694d632f SHA512 4a107db921f6f6549fb9f2f0b5c698331274171ef509136fc2d83cb6ca8bedbde32a14aaca4e38e16af3054337774dbd6aa7d8caee7866a51ded751d7d3764be -EBUILD wsaccel-0.6.6.ebuild 678 BLAKE2B 650a752fbda64ff51f5fa6a51bf90a198581c2dca7aa7fa8c0d7f399a709bfb77679be1599a8a662497b5374ad06e6619a918b50035bd1e74e5f32c0352e8bd6 SHA512 a4644c9d912d465a2ff16c27ddd1d4ac80802fad98e9d548f80ef3ed3b59f5eb9d882dcc9699b65e255f5c0355131457f97ed38b5ffd128e3c9f823358afe62c +EBUILD wsaccel-0.6.6.ebuild 678 BLAKE2B afd7edd7c9275b0cfc9dd44b3eb699262f140b8804a0091d4361dab0eb5d3df13c541f4c3f3a2e1dcf675b67d3357bd5e43b6cbb8dc3acbe7a4c1668e5d7d10a SHA512 2a14553e033ba4a550131a5766dd28a6358c07e24a321c874ae0cd6464f010ab69ed87969c9c7aa255c623753fe23327ca77a09d5026827c9a956c5073938988 MISC metadata.xml 378 BLAKE2B f92892d9a32a400a15444eecd45057abc95cc12b53277dc0c9336e9630422511ea4dbb27d73f61a7fa65adc76259154d383027c1b2cd0a2b18327976d953d053 SHA512 36f858807cbad0a4a4911b1bf2030946ec7c79b51165926996f72c63e468378b9663d19794b1842542f49e272f3d74d391acccc1e997884bed75f3ee587415c0 diff --git a/dev-python/wsaccel/wsaccel-0.6.6.ebuild b/dev-python/wsaccel/wsaccel-0.6.6.ebuild index 0d629a2e8444..694c175f7b2e 100644 --- a/dev-python/wsaccel/wsaccel-0.6.6.ebuild +++ b/dev-python/wsaccel/wsaccel-0.6.6.ebuild @@ -5,7 +5,7 @@ EAPI=8 DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10..11} ) +PYTHON_COMPAT=( python3_{10..12} ) inherit distutils-r1 diff --git a/dev-python/yappi/Manifest b/dev-python/yappi/Manifest index f1eacd0eb819..407db5a33882 100644 --- a/dev-python/yappi/Manifest +++ b/dev-python/yappi/Manifest @@ -1,4 +1,4 @@ AUX yappi-1.2.5-warnings.patch 483 BLAKE2B e084ebde1a6769ace82ed1d1b878f656ffd283678acf474af866f26951231a823a930323c1d7fbdb06c01b4b06b98522ba1bfb427973261627cb9967949d8b8a SHA512 81dde3661720814ca89fb3cd20786601ae7a5362a288c7f9ebbafd4095006b863dfa3c544821b917d9abb8a2532b08d415440a21f19e14e3a67c517064f1ab61 DIST yappi-1.4.0.gh.tar.gz 938290 BLAKE2B 98a9c82d101e64f70f589b51ee461e1967c0fada75ab98e0de8f0446254e7ad73e25b842c85464953b9f81fc54d2007151dfc91e4176068a7cb320176c8828d2 SHA512 c557c67cfce29db1a526a2d385af28cd241eae46a653e9b4f7308a6f52ff1ede49b9211af09889c63eae3eeb38d55813a8026161b1184fccf4db4add8a022541 -EBUILD yappi-1.4.0.ebuild 635 BLAKE2B 0356ac500994234fbfeefc992a96bc04e62af42cddf8a1158aacda49ab22208e0a381d7e696b310279941b79723f32588dd52ba680a2f5b2be0d472ee2c13d0a SHA512 948a0ecf11c56dff5e77e77095a8d8de623094c2a18c06da46bcd071cef3715278b4586458cd5606e1cb6e4467d27932a221668381c50a437c2ba942945f757a +EBUILD yappi-1.4.0.ebuild 846 BLAKE2B 5597c0beaa9ba1009caef91a8dc784b31202d18edd402c4ba0fd65fbe1695bb673efd34220379ab7245654fd00d507df23cf2ff57185e03e98ed47d0d8f1c1bf SHA512 74756e26bbe5ac98e1c8dc3638cb038554ec8384d87653994b0a761c082459932f3abfaff0a6cd9071ee7ff083b2af2c2a2773a0dc095c8aee03ecdcb3068857 MISC metadata.xml 489 BLAKE2B 243541f7de9fca044073eb0f35d32b751738c9172dc1ef15599eed56c0c8b2e9758d703e555aadfbdd4d1f96def39f88798be495d80fcbb763e0f1e0f3590822 SHA512 2eeeb6c6b73f5077584150d05e9c1d8bef00d0fb83283c6f5804ec31151f3e59d2de91ecd86508a2fc2a61aaab7e82455c633487f64a4c6dcbe5ca9229fe20ed diff --git a/dev-python/yappi/yappi-1.4.0.ebuild b/dev-python/yappi/yappi-1.4.0.ebuild index 419c6f5dda73..552b6d3f1e05 100644 --- a/dev-python/yappi/yappi-1.4.0.ebuild +++ b/dev-python/yappi/yappi-1.4.0.ebuild @@ -5,7 +5,7 @@ EAPI=8 DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9..11} ) +PYTHON_COMPAT=( python3_{10..12} ) inherit distutils-r1 @@ -29,6 +29,13 @@ PATCHES=( "${FILESDIR}/yappi-1.2.5-warnings.patch" ) +src_prepare() { + # using new API makes sense for versions newer than 3.11 too, sigh... + # https://github.com/sumerc/yappi/pull/148 + sed -i -e 's:== 11:>= 11:' yappi/_yappi.c || die + distutils-r1_src_prepare +} + python_test() { local -x PYTHONPATH=tests eunittest diff --git a/dev-python/yapsy/Manifest b/dev-python/yapsy/Manifest index 60bab23d2787..5732adbee33c 100644 --- a/dev-python/yapsy/Manifest +++ b/dev-python/yapsy/Manifest @@ -1,3 +1,5 @@ +AUX yapsy-1.12.2-py312.patch 4860 BLAKE2B de06e1a4c9d653add9dd79b774d3e9d42e5d2b0bfe201888c432d4596898764e60624859da8d659965750a1a762cc0452d5490a7aab95e02a64002dcae7aa9c9 SHA512 884584625dc602faf2ede7b241c106817f402ddec4892fa4b159ca3205dcd9e00e52f840de1619a3c60dcc45ae8ead25a8798b204c8f1101ca78199d6382eef2 DIST Yapsy-1.12.2.tar.gz 83986 BLAKE2B e6a2650383a7f0c9bf72d4abf21fffb2abcfdc4115a2a1578a2987b7eef1fc04de9099947c1b9dd510d54a89d9b11f86ac0ca3b13510c6417e94ff92dfec12b6 SHA512 3fdb4de1a6d8f836e22d82354492b99ec9883443c389393d25ea40a08bb0b6ae03db9c947af55237b67764facd4d55a09a36cdba107c8d9202f3700fd55c31fa EBUILD yapsy-1.12.2-r1.ebuild 555 BLAKE2B d3000a284a7ead59b4a78bc2f5fab06521570dd9ad31c12f1237595bda82f18dbe5f64dc59d0cb0fa4f329d386fdbde06b61656affd5dd11253f18b9593e9a0a SHA512 32b922c056824681fa16726c54cb8667e9e0714f94f0adc8a261e56875da14e34034ac6162f7518f31a6558ca487a4f9fb3f9b4a78eba3c0440c4ce1005ba3c1 -MISC metadata.xml 359 BLAKE2B e8cae7666c659e493130a23f7f7531531d2378ec6ef2f206d22f2170b9b53bdf3ec309665a4f9ca808fb4b78b0176e11f6297069490313c95c28e681078d1362 SHA512 9ba8d02382321b37d03cb898b4b04486e750c9cc214b2fe306c70af71e0662918283638af385788b90e4250d5515e956deae855bca34a0543d0f5cb012910249 +EBUILD yapsy-1.12.2-r2.ebuild 747 BLAKE2B c6b8df2c8ebd74ad27c0814166a402b7c950686d2e9499c6363784b770430ec59a474b447edff97433a8ab39ace847b559a5f1ec8b590bddbd5eed47fd3f46c3 SHA512 fecf4dcfbba130cbc66a27265104ff7b00da99845542b2c9e95644b7fbb0690ab1363bbde27d042b90366c0d4a3b3f13023baef7695a0e851d03394dcfaf97d5 +MISC metadata.xml 364 BLAKE2B eccd40249935516f78022285c6981250a831820f616564783608c6a7d2a903b9597e21cb64b1b9a195f4890b7e4d3bf3ba0a84c9e8c04c7d97d2e95a0ac927f6 SHA512 06037cf1c1f77a64e73279907ee9dd41f5f18df8b4045a52efb00d54f3c27c82e800d2030fb52dab672d7646ae2be71435c22d877c959012f4aa41e99cf7e051 diff --git a/dev-python/yapsy/files/yapsy-1.12.2-py312.patch b/dev-python/yapsy/files/yapsy-1.12.2-py312.patch new file mode 100644 index 000000000000..6842a495af2d --- /dev/null +++ b/dev-python/yapsy/files/yapsy-1.12.2-py312.patch @@ -0,0 +1,138 @@ +From 29286320673f9e853559cf20aeb3456e541afbd4 Mon Sep 17 00:00:00 2001 +From: Ameya Vikram Singh <ameya.v.singh@gmail.com> +Date: Mon, 6 Feb 2023 13:31:23 +0530 +Subject: [PATCH] Remove Deprecated API's + +* Replaced packaging.version instead of distutils.version +* Replaced imp module to importlib + +**Note:** Probably Deprecates Python 2.7 supports, and maybe some initial versions of Python 3.x. + +Signed-off-by: Ameya Vikram Singh <ameya.v.singh@gmail.com> +--- + test/test_PluginInfo.py | 3 ++- + yapsy/PluginInfo.py | 6 +++--- + yapsy/PluginManager.py | 17 ++++++++++------- + yapsy/VersionedPluginManager.py | 8 ++++---- + 4 files changed, 19 insertions(+), 15 deletions(-) + +diff --git a/test/test_PluginInfo.py b/test/test_PluginInfo.py +index 0863671..29c736a 100644 +--- a/test/test_PluginInfo.py ++++ b/test/test_PluginInfo.py +@@ -6,6 +6,7 @@ import unittest + + + from yapsy.PluginInfo import PluginInfo ++from packaging.version import Version + + + class PluginInfoTest(unittest.TestCase): +@@ -20,7 +21,7 @@ class PluginInfoTest(unittest.TestCase): + self.assertEqual(None,pi.plugin_object) + self.assertEqual([],pi.categories) + self.assertEqual(None,pi.error) +- self.assertEqual("0.0",pi.version) ++ self.assertEqual(Version("0.0"),pi.version) + self.assertEqual("Unknown",pi.author) + self.assertEqual("Unknown",pi.copyright) + self.assertEqual("None",pi.website) +diff --git a/yapsy/PluginInfo.py b/yapsy/PluginInfo.py +index 69d220e..700374e 100644 +--- a/yapsy/PluginInfo.py ++++ b/yapsy/PluginInfo.py +@@ -12,7 +12,7 @@ API + """ + + from yapsy.compat import ConfigParser +-from distutils.version import StrictVersion ++from packaging.version import Version + + + class PluginInfo(object): +@@ -105,7 +105,7 @@ class PluginInfo(object): + + + def __getVersion(self): +- return StrictVersion(self.details.get("Documentation","Version")) ++ return Version(self.details.get("Documentation","Version")) + + def setVersion(self, vstring): + """ +@@ -114,7 +114,7 @@ class PluginInfo(object): + Used by subclasses to provide different handling of the + version number. + """ +- if isinstance(vstring,StrictVersion): ++ if isinstance(vstring,Version): + vstring = str(vstring) + if not self.details.has_section("Documentation"): + self.details.add_section("Documentation") +diff --git a/yapsy/PluginManager.py b/yapsy/PluginManager.py +index 81a7c2b..b72de93 100644 +--- a/yapsy/PluginManager.py ++++ b/yapsy/PluginManager.py +@@ -128,10 +128,7 @@ API + + import sys + import os +-try: +- import importlib.abc.Loader as imp +-except ImportError: +- import imp ++import importlib + + from yapsy import log + from yapsy import NormalizePluginNameForModuleName +@@ -577,11 +574,17 @@ class PluginManager(object): + .. note:: Isolated and provided to be reused, but not to be reimplemented ! + """ + # use imp to correctly load the plugin as a module ++ candidate_module = None + if os.path.isdir(candidate_filepath): +- candidate_module = imp.load_module(plugin_module_name,None,candidate_filepath,("py","r",imp.PKG_DIRECTORY)) ++ if (spec := importlib.util.spec_from_file_location(candidate_filepath.split('/')[-1], candidate_filepath + "/__init__.py")) is not None: ++ candidate_module = importlib.util.module_from_spec(spec) ++ sys.modules[plugin_module_name] = candidate_module ++ spec.loader.exec_module(candidate_module) + else: +- with open(candidate_filepath+".py","r") as plugin_file: +- candidate_module = imp.load_module(plugin_module_name,plugin_file,candidate_filepath+".py",("py","r",imp.PY_SOURCE)) ++ if (spec := importlib.util.spec_from_file_location(candidate_filepath.split('/')[-1], candidate_filepath + ".py")) is not None: ++ candidate_module = importlib.util.module_from_spec(spec) ++ sys.modules[plugin_module_name] = candidate_module ++ spec.loader.exec_module(candidate_module) + return candidate_module + + def instanciateElementWithImportInfo(self, element, element_name, +diff --git a/yapsy/VersionedPluginManager.py b/yapsy/VersionedPluginManager.py +index 83ad4fd..686a52a 100644 +--- a/yapsy/VersionedPluginManager.py ++++ b/yapsy/VersionedPluginManager.py +@@ -12,7 +12,7 @@ API + """ + + +-from distutils.version import StrictVersion ++from packaging.version import Version + + from yapsy.PluginInfo import PluginInfo + from yapsy.IPlugin import IPlugin +@@ -27,11 +27,11 @@ class VersionedPluginInfo(PluginInfo): + + def __init__(self, plugin_name, plugin_path): + PluginInfo.__init__(self, plugin_name, plugin_path) +- # version number is now required to be a StrictVersion object +- self.version = StrictVersion("0.0") ++ # version number is now required to be a Version object ++ self.version = Version("0.0") + + def setVersion(self, vstring): +- self.version = StrictVersion(vstring) ++ self.version = Version(vstring) + + + class VersionedPluginManager(PluginManagerDecorator): +-- +2.42.0 + diff --git a/dev-python/yapsy/metadata.xml b/dev-python/yapsy/metadata.xml index 8c2be5a80f4c..8d49735ada95 100644 --- a/dev-python/yapsy/metadata.xml +++ b/dev-python/yapsy/metadata.xml @@ -6,7 +6,7 @@ <name>Python</name> </maintainer> <upstream> - <remote-id type="sourceforge">yapsy</remote-id> + <remote-id type="github">tibonihoo/yapsy</remote-id> <remote-id type="pypi">Yapsy</remote-id> </upstream> </pkgmetadata> diff --git a/dev-python/yapsy/yapsy-1.12.2-r2.ebuild b/dev-python/yapsy/yapsy-1.12.2-r2.ebuild new file mode 100644 index 000000000000..54be1b3e434d --- /dev/null +++ b/dev-python/yapsy/yapsy-1.12.2-r2.ebuild @@ -0,0 +1,34 @@ +# 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_{10..12} ) + +inherit distutils-r1 + +MY_P="Yapsy-${PV}" +DESCRIPTION="A fat-free DIY Python plugin management toolkit" +HOMEPAGE=" + https://github.com/tibonihoo/yapsy/ + https://pypi.org/project/Yapsy/ +" +SRC_URI="mirror://sourceforge/yapsy/${MY_P}/${MY_P}.tar.gz" +S=${WORKDIR}/${MY_P} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~riscv ~x86" + +RDEPEND=" + dev-python/packaging[${PYTHON_USEDEP}] +" + +distutils_enable_sphinx doc +distutils_enable_tests unittest + +PATCHES=( + # https://github.com/tibonihoo/yapsy/commit/29286320673f9e853559cf20aeb3456e541afbd4 + "${FILESDIR}/${P}-py312.patch" +) |