diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2022-11-09 10:35:51 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2022-11-09 10:35:51 +0000 |
| commit | f29349f6bfa29425184c6c7c43d691742254a3fd (patch) | |
| tree | 05a6e90038fbc8407e5f9f829bbf32559c136bdf /dev-python | |
| parent | 7cc11328adbad99efe4e07e92ad8d09e35a99623 (diff) | |
| download | baldeagleos-repo-f29349f6bfa29425184c6c7c43d691742254a3fd.tar.gz baldeagleos-repo-f29349f6bfa29425184c6c7c43d691742254a3fd.tar.xz baldeagleos-repo-f29349f6bfa29425184c6c7c43d691742254a3fd.zip | |
Adding metadata
Diffstat (limited to 'dev-python')
50 files changed, 637 insertions, 879 deletions
diff --git a/dev-python/aiosignal/Manifest b/dev-python/aiosignal/Manifest index 8dfe78cab11f..cf2c365889c4 100644 --- a/dev-python/aiosignal/Manifest +++ b/dev-python/aiosignal/Manifest @@ -1 +1,2 @@ DIST aiosignal-1.2.0.gh.tar.gz 26171 BLAKE2B 02657c11f5ee96173c94ab889993f835904a79e3fee58121fb332583f8d81cb680087e667dc0f8e89cd9704bc338362f2878bef7080907a5a3f86bef7a30cac1 SHA512 e75df2fcaeeea7ff7688c20838600f6315bec25b82c48ed7a23b7853edd3d53d72f76a686ad9b0d856f43b0d476398196a8ce4eb98c8859234710ff008f8ba42 +DIST aiosignal-1.3.1.gh.tar.gz 26119 BLAKE2B 16112f674f20b97406eff16a6a9baca1ef414132ec53a67789e08347f06a462ff653c7a00d6865855f5fe0fd70ba4a2bebe286020fdf1942da41d43f72e67837 SHA512 c03454d1b855bb3e84d3ce07fb32d08855b42d1ca7723fd67d3b2ef1bc66038a31974fabda7561c90e2beaf4cdd2c28cc0463e43eb5d5c127df0cd187ae3c2e2 diff --git a/dev-python/aiosignal/aiosignal-1.3.1.ebuild b/dev-python/aiosignal/aiosignal-1.3.1.ebuild new file mode 100644 index 000000000000..a2249ed1c765 --- /dev/null +++ b/dev-python/aiosignal/aiosignal-1.3.1.ebuild @@ -0,0 +1,33 @@ +# Copyright 2021-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="A list of registered asynchronous callbacks" +HOMEPAGE=" + https://pypi.org/project/aiosignal/ + https://github.com/aio-libs/aiosignal/ +" +SRC_URI=" + https://github.com/aio-libs/aiosignal/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + >=dev-python/frozenlist-1.1.0[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +python_test() { + epytest -o addopts= +} diff --git a/dev-python/backoff/Manifest b/dev-python/backoff/Manifest index 11157a911b1b..3ce60acc86ea 100644 --- a/dev-python/backoff/Manifest +++ b/dev-python/backoff/Manifest @@ -1,2 +1 @@ -DIST backoff-2.1.2.gh.tar.gz 19622 BLAKE2B 937dbdcf1bad5d3c68703aa08bfec46176a6021afb70d52b71bb52e744881832d9010e3db70112ec40beaf26155a9140fafb5b726b80f8fe1078d69ca011378e SHA512 e0a81def797007a342ca37af6657e6b8a0861a41cb4c78b325e8cbf58e93df3ff900763833c5d5ff97fb9d2e83521ef4f8652ac49bcc6cfb6c0fd92e44356996 DIST backoff-2.2.1.gh.tar.gz 20194 BLAKE2B a137ad67574b20535d5c29fad5781d0f7baaeeead23a5c8ccc3f1c48a952bf4436e75753e329861fb20bdc6fbe2b5e6d75b30d0fdca9908edfa540a593b3b353 SHA512 ed98c50d544d4ac3214b03005e5d183b0aeefd568c89769b59115ecc67ba7f7ea29a58e6ebf8488026a95ff2a1155e798782b04bebc9315c6a3682540bb38dff diff --git a/dev-python/backoff/backoff-2.1.2.ebuild b/dev-python/backoff/backoff-2.1.2.ebuild deleted file mode 100644 index ea102814c1f5..000000000000 --- a/dev-python/backoff/backoff-2.1.2.ebuild +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=poetry -PYTHON_COMPAT=( python3_{7,8,9,10,11} ) - -inherit distutils-r1 - -DESCRIPTION="Function decoration for backoff and retry" -HOMEPAGE=" - https://github.com/litl/backoff/ - https://pypi.org/project/backoff/ -" -SRC_URI=" - https://github.com/litl/backoff/archive/v${PV}.tar.gz - -> ${P}.gh.tar.gz -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="amd64 ~x86" - -DOCS=( README.rst ) - -BDEPEND=" - test? ( - dev-python/pytest-asyncio[${PYTHON_USEDEP}] - dev-python/requests[${PYTHON_USEDEP}] - dev-python/responses[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest diff --git a/dev-python/bashate/Manifest b/dev-python/bashate/Manifest index 57ef81fef267..f1e70f2a83fb 100644 --- a/dev-python/bashate/Manifest +++ b/dev-python/bashate/Manifest @@ -1,2 +1 @@ -DIST bashate-2.1.0.tar.gz 34717 BLAKE2B 6d25c9fe35f976f5ef24d580cb7ee5a30eb79f68f05de2b6784b79ec93ae090ecbc2a2a09b0cabd4a6a997adef6ccb73f8f258044b0443fa231a403115591202 SHA512 6ef17da86113195d8dae093fddb7c17a365b4cd7816ef0ebb98ac6cda61f52526092f7da6c39c11fba9d709a124970e18e93e267f7d0fb38190e313208f66e98 DIST bashate-2.1.1.tar.gz 34875 BLAKE2B 9af27813697be12132f58fa13b4f415ce4991795d3e831e651f24a884438775ecaf938f27120ea0fc990f72d8edc5def8ed4bfbc163ca47fabf10a8e350b0b41 SHA512 093ad491b41b73402d316baba894b5f327f07702641f13ece4beb1578d5dfaccbff1e3e0773a799f1acd84443d5a8606288b7c586d5120bb10adcf4427d6f96c diff --git a/dev-python/bashate/bashate-2.1.0-r1.ebuild b/dev-python/bashate/bashate-2.1.0-r1.ebuild deleted file mode 100644 index 950d13c6f4e0..000000000000 --- a/dev-python/bashate/bashate-2.1.0-r1.ebuild +++ /dev/null @@ -1,26 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{7,8,9,10,11} ) -inherit distutils-r1 - -DESCRIPTION="A pep8 equivalent for bash scripts" -HOMEPAGE="https://pypi.org/project/bashate/" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="amd64 x86" - -BDEPEND=" - >dev-python/pbr-2.1.0[${PYTHON_USEDEP}] - test? ( - dev-python/fixtures[${PYTHON_USEDEP}] - dev-python/testtools[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests unittest diff --git a/dev-python/boto3/Manifest b/dev-python/boto3/Manifest index f4700730c56b..5a8d3851caaa 100644 --- a/dev-python/boto3/Manifest +++ b/dev-python/boto3/Manifest @@ -1,3 +1,4 @@ DIST boto3-1.24.96.gh.tar.gz 547933 BLAKE2B 63c347b3abb383f36e4109b2695014dda6b4dd159b8f0e878ea17bcd24c9605dcf403a120b15f63e9a335065a1e3254813998a435d5eb1663f0066f2e7797be6 SHA512 9c3ac6dba99904a54e4b06b02531c2388d235b1926cb5bd7b767c679632b613db4a0d453030295e5f4101efdb7a3df8aca08e3c2e92a6725dc3df733cef37d72 DIST boto3-1.25.5.gh.tar.gz 550814 BLAKE2B 85f345b635fe16a978853d21192f49804837b050539aba650195bf788c7912f8713aa3a826de6f5ae4c28c4c3795e7053a2105622757f3087579e827eda3487f SHA512 6f4cd909b7a6670f74df6c7cac4a140114a0e05f736ed23c5a53351c5c6505f02d40e81ad1314db86db67d16429b38f78708e9cc8ce2cb08f28742ec209c2755 DIST boto3-1.26.4.gh.tar.gz 553689 BLAKE2B 0da69cfa0b05ab789fc59938562efb49c3c0a46ae0dd5ca84d5e5782f7ed78f4fae45fa38cfea27c2dbb59bff2604b7f09064d2f4f35578500d379ff9f34513e SHA512 2f7058c405145d66b92412f0941ec705c111132e87121cae3f4be9fd6db4cfee3c1bedc3d952badd5ead13e2e1a4e10d4a1a7bf73b7869225a7615d5038a9086 +DIST boto3-1.26.5.gh.tar.gz 555039 BLAKE2B 0f1ca94e7a2c04a760d3452e1e51f883307f82ce9a6cde733a69b0c113d002fd3e757ca7e185b412506af9290c2d70ec78a6987a1b2f7552af95f7eaddd5980e SHA512 862ca971589a5ebe2508a9545eb5de29d3ba0f8d431b334c55770be26d1f03c2b9d250dc5b865faa72d0aaaef3f0fff01274b6c64c7506891d708da9238b7896 diff --git a/dev-python/boto3/boto3-1.26.5.ebuild b/dev-python/boto3/boto3-1.26.5.ebuild new file mode 100644 index 000000000000..3d7d652a3b69 --- /dev/null +++ b/dev-python/boto3/boto3-1.26.5.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{7,8,9,10,11} ) + +inherit distutils-r1 multiprocessing + +DESCRIPTION="The AWS SDK for Python" +HOMEPAGE=" + https://github.com/boto/boto3/ + https://pypi.org/project/boto3/ +" +LICENSE="Apache-2.0" +SLOT="0" + +if [[ "${PV}" == "9999" ]]; then + EGIT_REPO_URI="https://github.com/boto/boto3" + inherit git-r3 + BOTOCORE_PV=${PV} +else + SRC_URI=" + https://github.com/boto/boto3/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz + " + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" + + # botocore is x.(y+3).z + BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 3)).$(ver_cut 3-)" +fi + +RDEPEND=" + >=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}] + >=dev-python/jmespath-0.7.1[${PYTHON_USEDEP}] + >=dev-python/s3transfer-0.6.0[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/mock[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + ) +" + +distutils_enable_sphinx docs/source \ + 'dev-python/guzzle_sphinx_theme' +distutils_enable_tests pytest + +python_prepare_all() { + # don't lock versions to narrow ranges + sed -e '/botocore/ d' \ + -e '/jmespath/ d' \ + -e '/s3transfer/ d' \ + -i setup.py || die + + # do not rely on bundled deps in botocore (sic!) + find -name '*.py' -exec sed -i \ + -e 's:from botocore[.]vendored import:import:' \ + -e 's:from botocore[.]vendored[.]:from :' \ + {} + || die + + distutils-r1_python_prepare_all +} + +python_test() { + epytest tests/{functional,unit} -n "$(makeopts_jobs)" +} diff --git a/dev-python/botocore/Manifest b/dev-python/botocore/Manifest index 193f8789e5b8..ae883ba8f924 100644 --- a/dev-python/botocore/Manifest +++ b/dev-python/botocore/Manifest @@ -1,3 +1,4 @@ DIST botocore-1.27.96.gh.tar.gz 9792299 BLAKE2B 7d4b388e0dd45a41c794ad8527287fb326c5e828c15998393936b817333055dfbc59f85365f074f6b3017715341d30fed4ea0de8e1ee24ee08d13eff36b369bf SHA512 1050c23a207d089af16e86404db0367936d186c23b8e1fcfa8ebb07737ad411c2771344d535edd5dde43f8473e45ad85c8e5c39f2ddb03449ead3c9daa746a22 DIST botocore-1.28.5.gh.tar.gz 9842427 BLAKE2B ed185346c21eeb0d05b39b55e99e065d9a5448fbe8206de49b3c128d12f4aabe1f6258153710350783846d10e5e10a22ccf77f6d27345297ec64e7ce74e51b87 SHA512 8b41b79826a71ed31c27534129e959e0896d9f4cb1769b4f14f1760d173500563a579aa0e00aaff5058275d5b5e8b921fed34b12825cf16ba4e216b174e4bba5 DIST botocore-1.29.4.gh.tar.gz 10587870 BLAKE2B e8007cc2e6aa82bd3223f13c5df0e94dcd6f90cfd86d6137723209191d95b7f1be8df3755eae9190aee44312b9980eb81a5a4ede4d326f4cdf3d4b43febb4486 SHA512 f164b1ab95ea34127d2cdaa6e0ec626e7f8849ac1d112e28384e5e1b105b7e482f386999da52d968023d0f35bff5c6b433b4117f98b85eb060887205fc2f55a4 +DIST botocore-1.29.5.gh.tar.gz 10609519 BLAKE2B 814b9409d59e799f47ae536a35fc3677f7eb78f7d4233f846fa66e4bf68b3724dd2bf3ecec777ddc80baf6e7c8201a7649218553db9ad87d1350a2c53a89771d SHA512 6d3d337d9b8f6b3042856df33b016db943059e57a34b3124ea5aca4fb3b6551d476e9cf08e8b6d36caac6db46703b6785fc03f505aa860f029d45f06f254706e diff --git a/dev-python/botocore/botocore-1.29.5.ebuild b/dev-python/botocore/botocore-1.29.5.ebuild new file mode 100644 index 000000000000..4d43aecd8983 --- /dev/null +++ b/dev-python/botocore/botocore-1.29.5.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{7,8,9,10,11} ) + +inherit distutils-r1 multiprocessing + +DESCRIPTION="Low-level, data-driven core of boto 3" +HOMEPAGE=" + https://github.com/boto/botocore/ + https://pypi.org/project/botocore/ +" +LICENSE="Apache-2.0" +SLOT="0" + +if [[ "${PV}" == "9999" ]]; then + EGIT_REPO_URI="https://github.com/boto/botocore" + inherit git-r3 +else + SRC_URI=" + https://github.com/boto/botocore/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz + " + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" +fi + +RDEPEND=" + dev-python/six[${PYTHON_USEDEP}] + <dev-python/jmespath-2[${PYTHON_USEDEP}] + dev-python/python-dateutil[${PYTHON_USEDEP}] + >=dev-python/urllib3-1.25.4[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/jsonschema[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + ) +" + +distutils_enable_sphinx docs/source \ + 'dev-python/guzzle_sphinx_theme' +distutils_enable_tests pytest + +src_prepare() { + # unpin deps + sed -i -e "s:>=.*':':" setup.py || die + + # unbundle deps + rm -r botocore/vendored || die + find -name '*.py' -exec sed -i \ + -e 's:from botocore[.]vendored import:import:' \ + -e 's:from botocore[.]vendored[.]:from :' \ + {} + || die + + distutils-r1_src_prepare +} + +python_test() { + local EPYTEST_DESELECT=( + # rely on bundled six + tests/functional/test_six_imports.py::test_no_bare_six_imports + tests/functional/test_six_threading.py::test_six_thread_safety + # fails on unrelated warnings + tests/unit/test_client.py::TestAutoGeneratedClient::test_BOTO_DISABLE_COMMONNAME + tests/unit/test_client.py::TestClientErrors::test_BOTO_DISABLE_COMMONNAME + ) + + epytest tests/{functional,unit} -n "$(makeopts_jobs)" +} diff --git a/dev-python/curtsies/Manifest b/dev-python/curtsies/Manifest index c46074154573..5a78aa4d93f2 100644 --- a/dev-python/curtsies/Manifest +++ b/dev-python/curtsies/Manifest @@ -1,2 +1 @@ -DIST curtsies-0.4.0.tar.gz 53652 BLAKE2B da6b982b8c4bf5430fc31ca2b6eab996a4660403538e73eba253b1e4476f8f4355a0acb9b4ad89c0c3ef3d379b89f1532d8946cc2c716ff5a2f7a4d4ce60a6af SHA512 fea577e356ddee7f2f3c55e405405af835b84a5f00d998a702396f8f40827b18ee88a46cd98607a1c8e33068f040a092c8d9f17463366fb88fcb3cb8cd6f2158 DIST curtsies-0.4.1.tar.gz 53583 BLAKE2B 311c538dfc782566fefeac5bc085fda57200f1d42118393aee1de89486100d9777d6b5c9de8d7dda9a8d3e8564b56cfeb2cde8d1ed638d5f791e24f37eff7a02 SHA512 f49c5874b0e0e4cf92b05ca979bed8608e5e4e4bebfc78f8558e8b32b06876e680fe4d6bb8723bb2050ab3eed0b5379d065c69a3007e6c399b4f60bd410fc947 diff --git a/dev-python/curtsies/curtsies-0.4.0.ebuild b/dev-python/curtsies/curtsies-0.4.1-r1.ebuild index 3c2f3bc2b64d..0607b557f5f3 100644 --- a/dev-python/curtsies/curtsies-0.4.0.ebuild +++ b/dev-python/curtsies/curtsies-0.4.1-r1.ebuild @@ -3,16 +3,21 @@ EAPI=8 +DISTUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{7,8,9,10,11} ) + inherit distutils-r1 DESCRIPTION="Curses-like terminal wrapper, with colored strings" -HOMEPAGE="https://github.com/bpython/curtsies" +HOMEPAGE=" + https://github.com/bpython/curtsies/ + https://pypi.org/project/curtsies/ +" SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" SLOT="0" LICENSE="MIT" -KEYWORDS="amd64 ~riscv x86 ~amd64-linux ~x86-linux" +KEYWORDS="~amd64 ~riscv ~x86 ~amd64-linux ~x86-linux" RDEPEND=" >=dev-python/blessed-1.5[${PYTHON_USEDEP}] diff --git a/dev-python/eyeD3/Manifest b/dev-python/eyeD3/Manifest index 751e93fd5e38..1206902a6c2d 100644 --- a/dev-python/eyeD3/Manifest +++ b/dev-python/eyeD3/Manifest @@ -1,4 +1,2 @@ -DIST eyeD3-0.9.6.tar.gz 250445 BLAKE2B 11f8bef4b17af07f08144e922634e4c6e467bd8856da9d445a70006b5bf32d442a52e234845a3f146129403fcc16047cc759102b93c433a0466bf0afd9576230 SHA512 0c993e9bf0a27ca41a8a2964a3347a6b0ffa472f833b3dada39ae09a5a2b40e0afb6bfd8c0ea5ed71d3dc2bf3cd062c1fb5fe79abe6ad867221b779786247173 DIST eyeD3-0.9.7.gh.tar.gz 249705 BLAKE2B b015ab5f7269de8f32830153b848e9a862328515e29f5d1a9cd5739d57a1c0ee63efc93cd3849ceca51b8f67d8eaf1746ab145baf16cda7e7b19bbb8e1249982 SHA512 863ce609ea939588e246d48c6d31f9688049334f874a4c400c02777bbef7379b6403150e7459430c92cff8047d45e33cbaa406b3d6e5b2cf3f9d7d7201438c1f DIST eyeD3-test-data-r1.tgz 97336666 BLAKE2B e982f21ba29aaca15c6975a836bed322d5203bca57b93ab0c9343de13259d9e2f56b98e5e7402ccf9138a9dc79951e68c4b37cd2c891d2c9e94815256d49adc4 SHA512 4e6daca06380492c0048f1ffd94d92e511fc3695b3e5f64f805d3f3aa2d0fef05a3be1d67a459fb13ab6d9861b86146487f31321f979c464fc516047b66735ab -DIST eyeD3-test-data.tgz 97281754 BLAKE2B 9b667a5f8be157ace06d773d575c08f4a8e8b7a7b81ba9cb39b1e2c924b2e3f98597607ed3076b13150e02ef7768e89d1ff8a9913021e5f4b9ac6b59344ed397 SHA512 937971dcefc53812c59adb97df27d200e92de04e12391c735ab85cd547e2a168aa1212d88c206ec71ac2fa85a504a9faa91dcc444b45149aca7c8f3a794e9a95 diff --git a/dev-python/eyeD3/eyeD3-0.9.6-r1.ebuild b/dev-python/eyeD3/eyeD3-0.9.6-r1.ebuild deleted file mode 100644 index b72d6ae6593b..000000000000 --- a/dev-python/eyeD3/eyeD3-0.9.6-r1.ebuild +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{7,8,9,10,11} ) - -inherit distutils-r1 - -DESCRIPTION="Module for manipulating ID3 (v1 + v2) tags in Python" -HOMEPAGE="https://eyed3.nicfit.net/" -SRC_URI="https://github.com/nicfit/eyeD3/archive/v${PV}.tar.gz -> ${P}.tar.gz - test? ( https://eyed3.nicfit.net/releases/eyeD3-test-data.tgz )" - -LICENSE="GPL-2" -SLOT="0.7" -KEYWORDS="amd64 arm ~arm64 ~hppa ~ia64 ppc ppc64 ~riscv sparc x86" - -RDEPEND=" - dev-python/deprecation[${PYTHON_USEDEP}] - dev-python/filetype[${PYTHON_USEDEP}] - || ( - dev-python/ruamel-yaml[${PYTHON_USEDEP}] - dev-python/pyyaml[${PYTHON_USEDEP}] - )" -# note: most of the deps are optional runtime deps / plugin deps -BDEPEND=" - test? ( - dev-python/pillow[${PYTHON_USEDEP}] - dev-python/pylast[${PYTHON_USEDEP}] - dev-python/six[${PYTHON_USEDEP}] - )" - -distutils_enable_tests pytest - -src_prepare() { - # requires unpackaged factory-boy, doesn't seem to relevant - # to anything but eyeD3 usage with factory-boy - rm tests/test_factory.py || die - # requires unpackaged grako - rm tests/test_display_plugin.py || die - - if use test; then - mv "${WORKDIR}"/eyeD3-test-data tests/data || die - fi - - distutils-r1_src_prepare -} diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest index 001a1a961b8d..eb47e9e52350 100644 --- a/dev-python/fakeredis/Manifest +++ b/dev-python/fakeredis/Manifest @@ -1,2 +1,3 @@ DIST fakeredis-py-1.10.0.gh.tar.gz 88305 BLAKE2B 71ffec7f872c8021914e24ee83f250e1e27bf2117fabb3513b54ad635692f43cefaf565090d3829ee189844a83ccc517016d8a4f9c31da82b2188d8d951c4dcf SHA512 8fb32917c70931de50ef90526854ee7c0d888c04582a284864c19956868961cd689db0a7b3ad39e783f53741efde5a33cc600faf09fdeac7046fe29e9cd75933 +DIST fakeredis-py-1.10.1.gh.tar.gz 91420 BLAKE2B a88711b5d167aafcf6a74dc538b809a0410c60bff95c82fe81c1236b743d9fc0cacbc9057bcd5df20ed87b22c12b2e9346342e0991556caa51f4e88038fabcb5 SHA512 2a139dde02c00e516959173fbfe5ecae26d20ee56158de9ae7bc57360dabc58e4e919f11ba7979079019d981af8a2cbd17a1d8ac795003e26a7cbcbedd5588a8 DIST fakeredis-py-1.9.4.gh.tar.gz 87232 BLAKE2B b02b14960071ed38f6144b60d845d31d0d102f4d061dd2f156610f90385f35ff3128ab293fbf24049fd1f18a7558e9e13cc2f7179230a9837313acb2a7121053 SHA512 2fe74c5cc798edeef391136f8b09a651381faa04b7dd1e5a07007e6f89596e45970977b435e6fbdad03b73e9826a439da2e105ca9592fb3733547789d106182e diff --git a/dev-python/fakeredis/fakeredis-1.10.1.ebuild b/dev-python/fakeredis/fakeredis-1.10.1.ebuild new file mode 100644 index 000000000000..4269c46b25ac --- /dev/null +++ b/dev-python/fakeredis/fakeredis-1.10.1.ebuild @@ -0,0 +1,87 @@ +# Copyright 2020-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=poetry +PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) + +inherit distutils-r1 + +MY_P=fakeredis-py-${PV} +DESCRIPTION="Fake implementation of redis API for testing purposes" +HOMEPAGE=" + https://github.com/cunla/fakeredis-py/ + https://pypi.org/project/fakeredis/ +" +SRC_URI=" + https://github.com/cunla/fakeredis-py/archive/v${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86" + +RDEPEND=" + >=dev-python/redis-py-4.2[${PYTHON_USEDEP}] + <dev-python/redis-py-4.5[${PYTHON_USEDEP}] + >=dev-python/sortedcontainers-2.4.0[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-db/redis + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + # unpin redis + sed -i -e '/redis/s:<[0-9.]*:*:' pyproject.toml || die + distutils-r1_src_prepare +} + +python_test() { + local EPYTEST_DESELECT=( + # also lupa + test/test_aioredis2.py::test_failed_script_error + # TODO + "test/test_fakeredis.py::test_set_get_nx[StrictRedis]" + "test/test_fakeredis.py::test_lpop_count[StrictRedis]" + "test/test_fakeredis.py::test_rpop_count[StrictRedis]" + "test/test_fakeredis.py::test_zadd_minus_zero[StrictRedis]" + ) + local EPYTEST_IGNORE=( + # these tests fail a lot... + test/test_hypothesis.py + ) + local args=( + # tests requiring lupa (lua support) + -k 'not test_eval and not test_lua and not test_script' + ) + epytest "${args[@]}" +} + +src_test() { + local redis_pid="${T}"/redis.pid + local redis_port=6379 + + einfo "Spawning Redis" + einfo "NOTE: Port ${redis_port} must be free" + "${EPREFIX}"/usr/sbin/redis-server - <<- EOF || die "Unable to start redis server" + daemonize yes + pidfile ${redis_pid} + port ${redis_port} + bind 127.0.0.1 + EOF + + # Run the tests + distutils-r1_src_test + + # Clean up afterwards + kill "$(<"${redis_pid}")" || die +} diff --git a/dev-python/frozenlist/Manifest b/dev-python/frozenlist/Manifest index 0e7bba037a96..925ba514d7a6 100644 --- a/dev-python/frozenlist/Manifest +++ b/dev-python/frozenlist/Manifest @@ -1 +1,2 @@ DIST frozenlist-1.3.1.gh.tar.gz 27705 BLAKE2B 7428d936926978acb90a857e0f76b303dddea684c3e815b3fd583e888102e114cc629fcd8e862a4e72775f8525193becfd4b9cd844a36f5b2c7964605008bb84 SHA512 4986f3635ebd2d3ca9623299a66375b03938a7be72f7a1d3437b1bf8c0739513942e6babf00476b61055c9ebee3638ec807dad521c52990104d4d57017efdfb2 +DIST frozenlist-1.3.3.gh.tar.gz 27742 BLAKE2B cf0dcd2ed0e22cb7fa3d57a73177e53cace8e6301c462ab56544678f1f78f113ac3ad9ffb68dafb3ae957a1e52e2069dcec76b5adc27284587d614bbb6a8c139 SHA512 8f416996c18d352912e88dad6b503cb1e5ce566d69e97aad8d7eedc6415316e8c9e63eb2c341c5d2409ebf90fd58153ce642d5d88f277435bc6e5a4f1ce8b949 diff --git a/dev-python/frozenlist/frozenlist-1.3.3.ebuild b/dev-python/frozenlist/frozenlist-1.3.3.ebuild new file mode 100644 index 000000000000..9725f7673f76 --- /dev/null +++ b/dev-python/frozenlist/frozenlist-1.3.3.ebuild @@ -0,0 +1,44 @@ +# Copyright 2021-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="A list-like structure which implements collections.abc.MutableSequence" +HOMEPAGE=" + https://pypi.org/project/frozenlist/ + https://github.com/aio-libs/frozenlist/ +" +SRC_URI=" + https://github.com/aio-libs/frozenlist/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +BDEPEND=" + $(python_gen_cond_dep ' + dev-python/cython[${PYTHON_USEDEP}] + ' 'python*') +" + +distutils_enable_tests pytest + +src_prepare() { + sed -i -e '/addopts/d' pytest.ini || die + distutils-r1_src_prepare +} + +python_configure() { + # pypy is not using the C extension + if [[ ${EPYTHON} == python* ]]; then + > .install-cython || die + emake cythonize + fi +} diff --git a/dev-python/gpep517/Manifest b/dev-python/gpep517/Manifest index 1d5c068e1e5b..0e4492f1ba94 100644 --- a/dev-python/gpep517/Manifest +++ b/dev-python/gpep517/Manifest @@ -1 +1,2 @@ +DIST gpep517-11.gh.tar.gz 15344 BLAKE2B 14f3f4b284eb4f7de8a78a9215cf2ec7fc84cb4028d83555b595a245d5ff2eb78be5049b30ccca944c35c40db0cc61e1afeaa68b25a0d6f3608363af75059762 SHA512 5ce840841d99c20d62b5b6c8dcb6ec353e40c75537aa99e44fa7dc13bff37444cd66d4cbc97eb1b107b6df85edfda853343d5e8ef1865d0d5ccd293c1496b5c0 DIST gpep517-9.gh.tar.gz 15227 BLAKE2B b3c2b3e4452a7e27725eea0a6a0b1b362e1ea6bbdae44d99a2992c9edac80a4fdbf2ed75a231004534039c6d6f6db54d9fdbdc7c2c7044bb85cbc3f88484be41 SHA512 94cd1ddb1de7844504906b056ec5eb9d0e80da4f6bde6b561075c754a78a97e6db6025a793592c9498fad54ebab48c5497b29268c40d6992f5ef793a698b9da1 diff --git a/dev-python/gpep517/gpep517-11.ebuild b/dev-python/gpep517/gpep517-11.ebuild new file mode 100644 index 000000000000..db087ffd4c29 --- /dev/null +++ b/dev-python/gpep517/gpep517-11.ebuild @@ -0,0 +1,41 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# please keep this ebuild at EAPI 7 -- sys-apps/portage dep +EAPI=7 + +DISTUTILS_USE_PEP517=no +PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="A backend script to aid installing Python packages in Gentoo" +HOMEPAGE=" + https://pypi.org/project/gpep517/ + https://github.com/projg2/gpep517/ +" +SRC_URI=" + https://github.com/projg2/gpep517/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" + +RDEPEND=" + >=dev-python/installer-0.5.0[${PYTHON_USEDEP}] + >=dev-python/tomli-1.2.3[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +python_install() { + python_domodule gpep517 + python_newscript - gpep517 <<-EOF + #!${EPREFIX}/usr/bin/python + import sys + from gpep517.__main__ import main + sys.exit(main()) + EOF +} diff --git a/dev-python/importlib_resources/Manifest b/dev-python/importlib_resources/Manifest index d2138ca6cf30..4af1db066fd2 100644 --- a/dev-python/importlib_resources/Manifest +++ b/dev-python/importlib_resources/Manifest @@ -1,2 +1 @@ DIST importlib_resources-5.10.0.gh.tar.gz 34195 BLAKE2B 9b9fc1c33de8a0072edb28a0a67ae73b6830a4d0e16ebfa28bdeaff1409b2f9aeafc84e24f1187cc4ac1b36de78fdecc25acb4a1839ff5fd32f1c38124a98ff2 SHA512 3cf2bdea4fa4572402236ff71678376398d8cae4e87f08487100792275976047a5ee4f024308f1727758ba15ba2f03ed02d8cb95f2d9875c77842a5d24f7f384 -DIST importlib_resources-5.9.0.gh.tar.gz 32691 BLAKE2B bc922945d0577222e704ac3a5aa24cd6abb31c9b44f42c342e78f45fb035ee2b3843c437eba31bc8a73f609f6126390f4141c52b9eef15ff8bc7efc44233e81b SHA512 9054b633f3c9b3523ccfa2be93774d0aa4b0c2ab8bfb228f1e0bfbbc076362b416c9714409ff365aa5eae579554feedc8f2aeaa49c766db37ab669414eb22827 diff --git a/dev-python/importlib_resources/importlib_resources-5.9.0.ebuild b/dev-python/importlib_resources/importlib_resources-5.9.0.ebuild deleted file mode 100644 index 92ae1075caea..000000000000 --- a/dev-python/importlib_resources/importlib_resources-5.9.0.ebuild +++ /dev/null @@ -1,49 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -# please keep this ebuild at EAPI 7 -- sys-apps/portage dep -EAPI=7 - -DISTUTILS_USE_PEP517=flit -# This is a backport of Python 3.9's importlib.resources -PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) - -inherit distutils-r1 - -DESCRIPTION="Read resources from Python packages" -HOMEPAGE=" - https://github.com/python/importlib_resources/ - https://pypi.org/project/importlib-resources/ -" -SRC_URI=" - https://github.com/python/importlib_resources/archive/v${PV}.tar.gz - -> ${P}.gh.tar.gz -" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos ~x64-solaris" - -RDEPEND=" - $(python_gen_cond_dep ' - >=dev-python/zipp-3.7.0-r1[${PYTHON_USEDEP}] - ' 3.8 3.9) -" - -distutils_enable_tests unittest - -src_configure() { - grep -q 'build-backend = "setuptools' pyproject.toml || - die "Upstream changed build-backend, recheck" - # write a custom pyproject.toml to ease setuptools bootstrap - cat > pyproject.toml <<-EOF || die - [build-system] - requires = ["flit_core >=3.2,<4"] - build-backend = "flit_core.buildapi" - - [project] - name = "importlib_resources" - version = "${PV}" - description = "Read resources from Python packages" - EOF -} diff --git a/dev-python/jc/Manifest b/dev-python/jc/Manifest index 5e590b27fa40..8fb25985b4c0 100644 --- a/dev-python/jc/Manifest +++ b/dev-python/jc/Manifest @@ -1 +1,2 @@ DIST jc-1.22.1.gh.tar.gz 12676358 BLAKE2B dbea5d19f28abf7773787275b8e5c64b8ceee07e56474336b37e35d76bf3cb3b6bbbad0d4e129fd118dc2eba03dca7f12d07c41f469f6d0e81fad1e4acb8af88 SHA512 67fba63921b9c8bc6b47a6d8405a693ce68c7338ad0d05565a0a4b4f7872ff83d27a97241daa8bd5eeb27299e630154b7a9d923bcd00fb121c25ac61f70d3faa +DIST jc-1.22.2.gh.tar.gz 12714893 BLAKE2B 96ed8cae1ed7fb19e0f66f39be124e3ea7874b2a77862f2824b6ef7ec4b624a7e080c9c189da8f4b82f38a2a5198b10a84dd5150173e7fce001ca13d2c095967 SHA512 1ce834ce9787c23e36f19e1733b91b6951872aaeaf400d617379bc7f072f0689301c88542c2ba14a4e52beadf221d765e2a05a9078ce52355abcddac6884a78d diff --git a/dev-python/jc/jc-1.22.2.ebuild b/dev-python/jc/jc-1.22.2.ebuild new file mode 100644 index 000000000000..86fa8a964c82 --- /dev/null +++ b/dev-python/jc/jc-1.22.2.ebuild @@ -0,0 +1,31 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{7,8,9,10,11} ) + +inherit distutils-r1 + +DESCRIPTION="Converts the output of popular command-line tools and file-types to JSON" +HOMEPAGE=" + https://github.com/kellyjonbrazil/jc/ + https://pypi.org/project/jc/ +" +SRC_URI=" + https://github.com/kellyjonbrazil/jc/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~ppc64" + +RDEPEND=" + dev-python/pygments[${PYTHON_USEDEP}] + dev-python/ruamel-yaml[${PYTHON_USEDEP}] + dev-python/xmltodict[${PYTHON_USEDEP}] +" + +distutils_enable_tests unittest diff --git a/dev-python/manuel/files/manuel-1.12.4-tests-python311.patch b/dev-python/manuel/files/manuel-1.12.4-tests-python311.patch new file mode 100644 index 000000000000..5a6ef9dc3b7d --- /dev/null +++ b/dev-python/manuel/files/manuel-1.12.4-tests-python311.patch @@ -0,0 +1,22 @@ +https://github.com/benji-york/manuel/pull/32 + +From d9f12d03e39bb76e4bb3ba43ad51af6d3e9d45c0 Mon Sep 17 00:00:00 2001 +From: Matt Jolly <Matt.Jolly@footclan.ninja> +Date: Mon, 6 Jun 2022 22:44:22 +1000 +Subject: [PATCH] Replace TextTestResult with TestResult for Py3.11 + +--- a/src/manuel/index.txt ++++ b/src/manuel/index.txt +@@ -211,10 +211,7 @@ When tests are run this way: + + >>> sys.stdout.writeln = lambda s: sys.stdout.write(s+'\n') + >>> suite = loader.loadTestsFromTestCase(MyTest) +- >>> result = suite.run(unittest.TextTestResult(sys.stdout, True, 3)) +- test1 (tests.MyTest) ... ok +- test2 (tests.MyTest) ... ok +- test3 (tests.MyTest) ... FAIL ++ >>> result = suite.run(unittest.TestResult(True, 3)) + + >>> for _, e in result.errors: + ... print(e); print + diff --git a/dev-python/manuel/manuel-1.12.4.ebuild b/dev-python/manuel/manuel-1.12.4.ebuild index 8fce46276a42..029e237119e9 100644 --- a/dev-python/manuel/manuel-1.12.4.ebuild +++ b/dev-python/manuel/manuel-1.12.4.ebuild @@ -28,6 +28,10 @@ BDEPEND=" ) " +PATCHES=( + "${FILESDIR}"/${P}-tests-python311.patch +) + distutils_enable_tests setup.py src_prepare() { diff --git a/dev-python/nuitka/Manifest b/dev-python/nuitka/Manifest index 737ef33e22b5..810641455669 100644 --- a/dev-python/nuitka/Manifest +++ b/dev-python/nuitka/Manifest @@ -1,4 +1 @@ -DIST Nuitka-1.1.5.tar.gz 3920916 BLAKE2B 7352009df91e39c63073e8230065af990c86d07cf51752ceaf234e4e8b5814d085ee7423440dc5bb8ca63341f7e1eccdbd41631711ebcfac481bcb3645c011f2 SHA512 ef88b98341cb930529d6e31bb487cf3bb8c217dd9b8a8b50c8e5b147f0b4879a17f2d6c7621a056ad3f1ffd15ac88781445bc0dc8dc164a38aea83b43a6bf3c7 -DIST Nuitka-1.1.6.tar.gz 3923364 BLAKE2B 680496486121ff17bb8bded93ea3be79c65cc7d1eb8352a29699e3f0c9f6cec75c83f1018b58f837dc181668cb3d5f7574f8c6ded80d9727c396d5caad2896a2 SHA512 8bdf4ed2bf15ff0d5ab88f3df151c219822a718d7c5244075ffef1822467861030875fa508eb861825fab030232f041f0baf7e719eba0f82ae1d9ace224eb749 -DIST Nuitka-1.1.7.tar.gz 3929202 BLAKE2B 06576f89b1abb0f062b621c5889cb78f6e0b18c9a8c9ca436ddba33c42d61ca8c1c0bed8f439f3d03e69da24b49c4175c97248ef5563d770a7fb3d4cd7592995 SHA512 6bf3d285e041a5aadd31057b35ecb3b4b9046390a86755b10e97fae7b6aa147c4271c4f1c6cbf98e3d48f37fac98e19c94a053b0d31fa17a4f34d80a1b844c36 DIST Nuitka-1.1.8.tar.gz 3931273 BLAKE2B 19425e5394f02f4e5dab612e17f80de27569a0d364aaf8597c7bf63f0aa271c3f8cfa987c12b1ae09c5449775b6e4e61aa4d733d0ed81231c4df6ef955dc030e SHA512 f1e594499cd9fcd03873646c41b66a4d89980f408412dcd58db45b3c48238503d03ef25a1b230cfa99960df69f2564b74b02c446e0431dd72634ce277347a551 diff --git a/dev-python/nuitka/nuitka-1.1.5.ebuild b/dev-python/nuitka/nuitka-1.1.5.ebuild deleted file mode 100644 index d2196214be46..000000000000 --- a/dev-python/nuitka/nuitka-1.1.5.ebuild +++ /dev/null @@ -1,55 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{7,8,9,10,11} ) - -inherit distutils-r1 flag-o-matic optfeature - -DESCRIPTION="Python to native compiler" -HOMEPAGE=" - https://www.nuitka.net/ - https://github.com/Nuitka/Nuitka/ - https://pypi.org/project/Nuitka/ -" -SRC_URI="https://nuitka.net/releases/${P^}.tar.gz" -S=${WORKDIR}/${P^} - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64 ~loong ~x86" -IUSE="test" -RESTRICT="!test? ( test )" - -RDEPEND=" - dev-util/scons[${PYTHON_USEDEP}] -" -BDEPEND=" - ${RDEPEND} - test? ( dev-util/ccache ) -" - -DOCS=( Changelog.pdf Developer_Manual.pdf README.pdf ) - -distutils-r1_src_prepare() { - # remove vendored version of SCons that is Python2 only - # this should be removed when upstream removes support for Python2 - rm -vR "${PN}/build/inline_copy/lib/scons-2.3.2/SCons" || die - eapply_user -} - -python_install() { - distutils-r1_python_install - doman doc/nuitka3.1 doc/nuitka3-run.1 -} - -python_test() { - append-ldflags -Wl,--no-warn-search-mismatch - ./tests/basics/run_all.py search || die -} - -pkg_postinst() { - optfeature "support for stand-alone executables" app-admin/chrpath -} diff --git a/dev-python/nuitka/nuitka-1.1.6.ebuild b/dev-python/nuitka/nuitka-1.1.6.ebuild deleted file mode 100644 index d2196214be46..000000000000 --- a/dev-python/nuitka/nuitka-1.1.6.ebuild +++ /dev/null @@ -1,55 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{7,8,9,10,11} ) - -inherit distutils-r1 flag-o-matic optfeature - -DESCRIPTION="Python to native compiler" -HOMEPAGE=" - https://www.nuitka.net/ - https://github.com/Nuitka/Nuitka/ - https://pypi.org/project/Nuitka/ -" -SRC_URI="https://nuitka.net/releases/${P^}.tar.gz" -S=${WORKDIR}/${P^} - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64 ~loong ~x86" -IUSE="test" -RESTRICT="!test? ( test )" - -RDEPEND=" - dev-util/scons[${PYTHON_USEDEP}] -" -BDEPEND=" - ${RDEPEND} - test? ( dev-util/ccache ) -" - -DOCS=( Changelog.pdf Developer_Manual.pdf README.pdf ) - -distutils-r1_src_prepare() { - # remove vendored version of SCons that is Python2 only - # this should be removed when upstream removes support for Python2 - rm -vR "${PN}/build/inline_copy/lib/scons-2.3.2/SCons" || die - eapply_user -} - -python_install() { - distutils-r1_python_install - doman doc/nuitka3.1 doc/nuitka3-run.1 -} - -python_test() { - append-ldflags -Wl,--no-warn-search-mismatch - ./tests/basics/run_all.py search || die -} - -pkg_postinst() { - optfeature "support for stand-alone executables" app-admin/chrpath -} diff --git a/dev-python/nuitka/nuitka-1.1.7.ebuild b/dev-python/nuitka/nuitka-1.1.7.ebuild deleted file mode 100644 index d2196214be46..000000000000 --- a/dev-python/nuitka/nuitka-1.1.7.ebuild +++ /dev/null @@ -1,55 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{7,8,9,10,11} ) - -inherit distutils-r1 flag-o-matic optfeature - -DESCRIPTION="Python to native compiler" -HOMEPAGE=" - https://www.nuitka.net/ - https://github.com/Nuitka/Nuitka/ - https://pypi.org/project/Nuitka/ -" -SRC_URI="https://nuitka.net/releases/${P^}.tar.gz" -S=${WORKDIR}/${P^} - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64 ~loong ~x86" -IUSE="test" -RESTRICT="!test? ( test )" - -RDEPEND=" - dev-util/scons[${PYTHON_USEDEP}] -" -BDEPEND=" - ${RDEPEND} - test? ( dev-util/ccache ) -" - -DOCS=( Changelog.pdf Developer_Manual.pdf README.pdf ) - -distutils-r1_src_prepare() { - # remove vendored version of SCons that is Python2 only - # this should be removed when upstream removes support for Python2 - rm -vR "${PN}/build/inline_copy/lib/scons-2.3.2/SCons" || die - eapply_user -} - -python_install() { - distutils-r1_python_install - doman doc/nuitka3.1 doc/nuitka3-run.1 -} - -python_test() { - append-ldflags -Wl,--no-warn-search-mismatch - ./tests/basics/run_all.py search || die -} - -pkg_postinst() { - optfeature "support for stand-alone executables" app-admin/chrpath -} diff --git a/dev-python/plumbum/Manifest b/dev-python/plumbum/Manifest index 3aa20f7e8d56..2d88c8fae032 100644 --- a/dev-python/plumbum/Manifest +++ b/dev-python/plumbum/Manifest @@ -1,2 +1 @@ -DIST plumbum-1.7.2.tar.gz 323051 BLAKE2B a16d9210606ac67abd425fcff109d40836dc969729cc5bf78a5d224c0beabf09d56d35f17809994d758153c6e18e4af91403f7ae0111912447367be68f6592c1 SHA512 77e75988255ca78fa5c253c6d076d63f8f9250a2b153ef23e40f35315e255ea09403d854a19bb265fd658bb9e5f0f705dc7530ecacc40b4b48e33acdf50dddf9 DIST plumbum-1.8.0.tar.gz 325060 BLAKE2B 30006fa3826bbdd9482592d825931fd7dcb05b2aca6d762093c4f722f0426aaa6f07fde55754f115e4fba4a45997d2995a657c5a1cfa34c417bb4f5fb2e5834d SHA512 47874c42081d385fad85b9073fbeb711112b8fa847fc79035be1277a1fdabcfb06e7822a4dbba271d86502b9b297a70742f30b1158c363b668a47e783c9990cd diff --git a/dev-python/plumbum/plumbum-1.7.2-r1.ebuild b/dev-python/plumbum/plumbum-1.7.2-r1.ebuild deleted file mode 100644 index a6531f22be75..000000000000 --- a/dev-python/plumbum/plumbum-1.7.2-r1.ebuild +++ /dev/null @@ -1,53 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{7,8,9,10,11} ) - -inherit distutils-r1 optfeature - -DESCRIPTION="A library for shell script-like programs in python" -HOMEPAGE="https://plumbum.readthedocs.io/en/latest/ https://github.com/tomerfiliba/plumbum" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="amd64 x86" - -BDEPEND=" - test? ( - dev-python/psutil[${PYTHON_USEDEP}] - dev-python/pytest-mock[${PYTHON_USEDEP}] - dev-python/pytest-timeout[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest - -EPYTEST_DESELECT=( - # Need sshd running - tests/test_remote.py - tests/test_utils.py - # Windows specific - tests/test_putty.py - # Needs sudo without password - tests/test_sudo.py - # Wrong assumptions about env handling - tests/test_env.py::TestEnv::test_change_env - tests/test_env.py::TestEnv::test_dictlike - tests/test_local.py::TestLocalPath::test_iterdir -) - -src_prepare() { - sed -e '/addopts/d' -i setup.cfg || die - distutils-r1_src_prepare -} - -pkg_postinst() { - optfeature "remote commands via ssh" dev-python/paramiko - optfeature "progress bars in jupyter" dev-python/ipywidgets - optfeature "colored output in jupyter" dev-python/ipython - optfeature "images on the command line" dev-python/pillow -} diff --git a/dev-python/poetry-core/Manifest b/dev-python/poetry-core/Manifest index 9230342253f2..3dd30e17b14b 100644 --- a/dev-python/poetry-core/Manifest +++ b/dev-python/poetry-core/Manifest @@ -1,3 +1 @@ -DIST poetry-core-1.2.0.gh.tar.gz 536297 BLAKE2B 0ba82bfa320d65ce794a4f2346198d252139c03960298ede02f55d8b23367e05e9336b3d5030032b1feab4ffa327974af26ce2918d4d40889f68fbec79ccb490 SHA512 f6d79d7d66a25aa127b5decf46df861ecc101af0438b892196505b4ece5cc55f6ff8796eb603789b3259d213162236b7698305523b2eda414ad1f3a5b659eab9 -DIST poetry-core-1.3.1.gh.tar.gz 539214 BLAKE2B 12db16f06e5b7f94e0aa6edf6d5cc6c8c15c6389e3e1f517884c5532b211982d34682c035b69e53dfef60506c8be16ed36b0c8cc66651c88d83436d6cfc5182f SHA512 c61b7edeb0c821c0a1cd983965a3140cb8183147740e3b242d0cb0bfa375d6ee352314dd81e243d03c31e403c4a01353657cf771b84130ef058815068ecfdd5e DIST poetry-core-1.3.2.gh.tar.gz 539267 BLAKE2B 43845f344f8b492aa5dae5608b8d67b41efab33c60999cc61d8476e08a9ec9870328174b371d0735624c5f11dd2ce15e19e2c984653c7349dd0c3a687dec0123 SHA512 57fca4925889bfcff9335c0f76ea0cf8b48de1cb7bdc83bab8ceee452d6a6d64c4eaa169be17fb32ee59f453256fde1191e5c36382c4be27b74b5e3c8dce7703 diff --git a/dev-python/poetry-core/poetry-core-1.2.0.ebuild b/dev-python/poetry-core/poetry-core-1.2.0.ebuild deleted file mode 100644 index 672d5ed95659..000000000000 --- a/dev-python/poetry-core/poetry-core-1.2.0.ebuild +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright 2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=standalone -PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) - -inherit distutils-r1 - -DESCRIPTION="Poetry PEP 517 Build Backend" -HOMEPAGE=" - https://github.com/python-poetry/poetry-core/ - https://pypi.org/project/poetry-core/ -" -SRC_URI=" - https://github.com/python-poetry/poetry-core/archive/${PV}.tar.gz - -> ${P}.gh.tar.gz -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86" - -# check inside src/poetry/core/_vendor/vendor.txt -# (note that some are indirect deps) -RDEPEND=" - dev-python/jsonschema[${PYTHON_USEDEP}] - dev-python/lark[${PYTHON_USEDEP}] - dev-python/packaging[${PYTHON_USEDEP}] - dev-python/tomlkit[${PYTHON_USEDEP}] -" -BDEPEND=" - test? ( - dev-python/build[${PYTHON_USEDEP}] - dev-python/pep517[${PYTHON_USEDEP}] - dev-python/pytest-mock[${PYTHON_USEDEP}] - dev-python/virtualenv[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest - -EPYTEST_DESELECT=( - # These "fail" bacause of glob file path resulting from newer versions - # in our tree than vendored. But those don't affect anything. - tests/masonry/builders/test_sdist.py::test_default_with_excluded_data - tests/masonry/builders/test_wheel.py::test_default_src_with_excluded_data -) - -src_prepare() { - # remove vendoring of dependencies - rm -r src/poetry/core/_vendor || die - sed -e '/__vendor_site__/d' -i src/poetry/core/__init__.py || die - - distutils-r1_src_prepare -} - -python_test() { - # needed for migration from <1.1 - distutils_write_namespace poetry - epytest -} diff --git a/dev-python/poetry-core/poetry-core-1.3.1.ebuild b/dev-python/poetry-core/poetry-core-1.3.1.ebuild deleted file mode 100644 index 10bc5c9e8600..000000000000 --- a/dev-python/poetry-core/poetry-core-1.3.1.ebuild +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright 2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=standalone -PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) - -inherit distutils-r1 - -DESCRIPTION="Poetry PEP 517 Build Backend" -HOMEPAGE=" - https://github.com/python-poetry/poetry-core/ - https://pypi.org/project/poetry-core/ -" -SRC_URI=" - https://github.com/python-poetry/poetry-core/archive/${PV}.tar.gz - -> ${P}.gh.tar.gz -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" - -# check inside src/poetry/core/_vendor/vendor.txt -# (note that some are indirect deps) -RDEPEND=" - dev-python/jsonschema[${PYTHON_USEDEP}] - dev-python/lark[${PYTHON_USEDEP}] - dev-python/packaging[${PYTHON_USEDEP}] - dev-python/tomlkit[${PYTHON_USEDEP}] -" -BDEPEND=" - test? ( - dev-python/build[${PYTHON_USEDEP}] - dev-python/pep517[${PYTHON_USEDEP}] - dev-python/pytest-mock[${PYTHON_USEDEP}] - dev-python/virtualenv[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest - -EPYTEST_DESELECT=( - # These "fail" bacause of glob file path resulting from newer versions - # in our tree than vendored. But those don't affect anything. - tests/masonry/builders/test_sdist.py::test_default_with_excluded_data - tests/masonry/builders/test_wheel.py::test_default_src_with_excluded_data -) - -src_prepare() { - # remove vendoring of dependencies - rm -r src/poetry/core/_vendor || die - sed -e '/__vendor_site__/d' -i src/poetry/core/__init__.py || die - - distutils-r1_src_prepare -} - -python_test() { - # needed for migration from <1.1 - distutils_write_namespace poetry - epytest -} diff --git a/dev-python/pykwalify/pykwalify-1.8.0-r3.ebuild b/dev-python/pykwalify/pykwalify-1.8.0-r3.ebuild new file mode 100644 index 000000000000..3e36761cc1d1 --- /dev/null +++ b/dev-python/pykwalify/pykwalify-1.8.0-r3.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{7,8,9,10,11} ) + +inherit distutils-r1 + +DESCRIPTION="Python lib/cli for JSON/YAML schema validation" +HOMEPAGE="https://pypi.org/project/pykwalify/ https://github.com/Grokzen/pykwalify" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +SLOT="0" +LICENSE="MIT" +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + >=dev-python/docopt-0.6.2[${PYTHON_USEDEP}] + >=dev-python/ruamel-yaml-0.16.0[${PYTHON_USEDEP}] + >=dev-python/python-dateutil-2.8.0[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/testfixtures[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +PATCHES=( + "${FILESDIR}"/${PN}-1.4.0-S.patch +) diff --git a/dev-python/requests-toolbelt/Manifest b/dev-python/requests-toolbelt/Manifest index 6933d1ead77d..3bed56bb5352 100644 --- a/dev-python/requests-toolbelt/Manifest +++ b/dev-python/requests-toolbelt/Manifest @@ -1,3 +1 @@ -DIST requests-toolbelt-0.10.0.tar.gz 211210 BLAKE2B 73196e33d42ff6f4532cd2904537451cc237627a149fa759fca7a66e360c0ddb8baf8c4537c880baf03a25065226380788449bae05434aad37962034e1324acb SHA512 75e3a3e609625254e1f078d3c48c664b3118f5a406c84e59c4e9acdeb20a79b5d38ceaaf9578920063f063aa8385139310c06331499aaa92d3c51146f908f1a1 DIST requests-toolbelt-0.10.1.gh.tar.gz 201504 BLAKE2B 48c5b9f46000d9809e482278626bbce805b93ed2a4a5d074bad4f7fbda75984dd55919eca31909c98c9a74ca7b323e73c90691dced0734964621d4ba5748d464 SHA512 ad6dfe3329c8be5a4521d223d25ec303201e706b34199c084efd0a30b8bc8cfb3382e80a502dc25bd5f7e5b2774a119d2255c49408979aaec45e221f412a7b52 -DIST requests-toolbelt-0.9.1.tar.gz 207286 BLAKE2B 6123677a9abafebddf7dffde2150b2426b5132ebe0c330ff891322ecc3d69232a5b15a0c66e3e1fb4832dc04f5a636a939613fba041e499e9fbca9814f548c7e SHA512 12229928df5df71cb57bc65ef453dc0e4a2bbe190c1579811b2c2823673bd81aeba856b00000fa20b253d0f0fa4fff55ea1e750794ca3785f71c376b1df7fd93 diff --git a/dev-python/requests-toolbelt/files/requests-toolbelt-0.8.0-test-tracebacks.patch b/dev-python/requests-toolbelt/files/requests-toolbelt-0.8.0-test-tracebacks.patch deleted file mode 100644 index 418039bc7f94..000000000000 --- a/dev-python/requests-toolbelt/files/requests-toolbelt-0.8.0-test-tracebacks.patch +++ /dev/null @@ -1,36 +0,0 @@ -From e130ad521d3b5a14cd9494213e6ca9f52d0d9a2e Mon Sep 17 00:00:00 2001 -From: Brian Dolbec <brian.dolbec@sony.com> -Date: Wed, 7 Mar 2018 21:52:25 +0000 -Subject: [PATCH] threaded/thread.py: Fix unhandled Nonetype job queue - -Adding this check and return prevents numerous test tracebacks: - -Exception in thread 12f554d5-f61f-44d9-bc69-023714627952: -Traceback (most recent call last): - File "/usr/lib64/python3.4/threading.py", line 911, in _bootstrap_inner - self.run() - File "/usr/lib64/python3.4/threading.py", line 859, in run - self._target(*self._args, **self._kwargs) - File "/home/bdolbec/git/toolbelt/requests_toolbelt/threaded/thread.py", line 43, in _make_request - kwargs = self._jobs.get_nowait() -AttributeError: 'NoneType' object has no attribute 'get_nowait' - -Signed-off-by: Brian Dolbec <brian.dolbec@sony.com> -Signed-off-by: Brian Dolbec <dolsen@gentoo.org> ---- - requests_toolbelt/threaded/thread.py | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/requests_toolbelt/threaded/thread.py b/requests_toolbelt/threaded/thread.py -index 542813c..f33b759 100644 ---- a/requests_toolbelt/threaded/thread.py -+++ b/requests_toolbelt/threaded/thread.py -@@ -36,6 +36,8 @@ def _handle_request(self, kwargs): - self._jobs.task_done() - - def _make_request(self): -+ if self._jobs is None: -+ return - while True: - try: - kwargs = self._jobs.get_nowait() diff --git a/dev-python/requests-toolbelt/files/requests-toolbelt-0.9.1-py310.patch b/dev-python/requests-toolbelt/files/requests-toolbelt-0.9.1-py310.patch deleted file mode 100644 index 182e413158cd..000000000000 --- a/dev-python/requests-toolbelt/files/requests-toolbelt-0.9.1-py310.patch +++ /dev/null @@ -1,37 +0,0 @@ -From 7188b06330e5260be20bce8cbcf0d5ae44e34eaf Mon Sep 17 00:00:00 2001 -From: Jon Dufresne <jon.dufresne@gmail.com> -Date: Fri, 1 Feb 2019 16:30:01 -0800 -Subject: [PATCH] Fix collections.abc deprecation warning in downloadutils - -Warning appears as: - -tests/test_downloadutils.py::test_stream_response_to_specific_filename - requests_toolbelt/downloadutils/stream.py:161: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working - if path and isinstance(getattr(path, 'write', None), collections.Callable): ---- - requests_toolbelt/downloadutils/stream.py | 3 +-- - 1 file changed, 1 insertion(+), 2 deletions(-) - -diff --git a/requests_toolbelt/downloadutils/stream.py b/requests_toolbelt/downloadutils/stream.py -index eed60a7..1d1c31b 100644 ---- a/requests_toolbelt/downloadutils/stream.py -+++ b/requests_toolbelt/downloadutils/stream.py -@@ -1,6 +1,5 @@ - # -*- coding: utf-8 -*- - """Utilities for dealing with streamed requests.""" --import collections - import os.path - import re - -@@ -158,7 +157,7 @@ def stream_response_to_file(response, path=None, chunksize=_DEFAULT_CHUNKSIZE): - pre_opened = False - fd = None - filename = None -- if path and isinstance(getattr(path, 'write', None), collections.Callable): -+ if path and callable(getattr(path, 'write', None)): - pre_opened = True - fd = path - filename = getattr(fd, 'name', None) --- -2.31.1 - diff --git a/dev-python/requests-toolbelt/files/requests-toolbelt-0.9.1-tests.patch b/dev-python/requests-toolbelt/files/requests-toolbelt-0.9.1-tests.patch deleted file mode 100644 index a2a8929b08d4..000000000000 --- a/dev-python/requests-toolbelt/files/requests-toolbelt-0.9.1-tests.patch +++ /dev/null @@ -1,128 +0,0 @@ -From c4f918572751151eb3bfc7dfa94580b3e2867a9e Mon Sep 17 00:00:00 2001 -From: Jon Dufresne <jon.dufresne@gmail.com> -Date: Sun, 3 Feb 2019 09:02:24 -0800 -Subject: [PATCH] Fix unhandled exceptions from threads during tests - -A queue.Queue() object was not always passed to SessionThread. In this -case, SessionThread._make_request() would raise an exception trying to -call methods on the expected object. Now, always pass a usable object to -SessionThread. - -Previously appeared as: - - Traceback (most recent call last): - File "/usr/lib64/python3.7/threading.py", line 917, in _bootstrap_inner - self.run() - File "/usr/lib64/python3.7/threading.py", line 865, in run - self._target(*self._args, **self._kwargs) - File "toolbelt/requests_toolbelt/threaded/thread.py", line 41, in _make_request - kwargs = self._jobs.get_nowait() - AttributeError: 'NoneType' object has no attribute 'get_nowait' - - Exception in thread cd08fad6-d21d-41b0-921e-737a149b12be: - Traceback (most recent call last): - File "/usr/lib64/python3.7/threading.py", line 917, in _bootstrap_inner - self.run() - File "/usr/lib64/python3.7/threading.py", line 865, in run - self._target(*self._args, **self._kwargs) - File "toolbelt/requests_toolbelt/threaded/thread.py", line 41, in _make_request - kwargs = self._jobs.get_nowait() - AttributeError: 'NoneType' object has no attribute 'get_nowait' - - Exception in thread 4fb72f0d-ba1c-4a78-97a2-4a7283ea01fe: - Traceback (most recent call last): - File "/usr/lib64/python3.7/threading.py", line 917, in _bootstrap_inner - self.run() - File "/usr/lib64/python3.7/threading.py", line 865, in run - self._target(*self._args, **self._kwargs) - File "toolbelt/requests_toolbelt/threaded/thread.py", line 41, in _make_request - kwargs = self._jobs.get_nowait() - AttributeError: 'NoneType' object has no attribute 'get_nowait' - - Exception in thread 5f3711af-0c01-4821-9e25-8074bbbf769b: - Traceback (most recent call last): - File "/usr/lib64/python3.7/threading.py", line 917, in _bootstrap_inner - self.run() - File "/usr/lib64/python3.7/threading.py", line 865, in run - self._target(*self._args, **self._kwargs) - File "toolbelt/requests_toolbelt/threaded/thread.py", line 41, in _make_request - kwargs = self._jobs.get_nowait() - AttributeError: 'NoneType' object has no attribute 'get_nowait' ---- - tests/threaded/test_pool.py | 15 ++++++++++----- - tests/threaded/test_thread.py | 5 ++++- - 2 files changed, 14 insertions(+), 6 deletions(-) - -diff --git a/tests/threaded/test_pool.py b/tests/threaded/test_pool.py -index b0653bb..b949dd8 100644 ---- a/tests/threaded/test_pool.py -+++ b/tests/threaded/test_pool.py -@@ -26,32 +26,37 @@ def test_requires_positive_number_of_processes(self): - - def test_number_of_processes_can_be_arbitrary(self): - """Show that the number of processes can be set.""" -- p = pool.Pool(None, num_processes=100) -+ job_queue = queue.Queue() -+ p = pool.Pool(job_queue, num_processes=100) - assert p._processes == 100 - assert len(p._pool) == 100 - -- p = pool.Pool(None, num_processes=1) -+ job_queue = queue.Queue() -+ p = pool.Pool(job_queue, num_processes=1) - assert p._processes == 1 - assert len(p._pool) == 1 - - def test_initializer_is_called(self): - """Ensure that the initializer function is called.""" -+ job_queue = queue.Queue() - initializer = mock.MagicMock() -- pool.Pool(None, num_processes=1, initializer=initializer) -+ pool.Pool(job_queue, num_processes=1, initializer=initializer) - assert initializer.called is True - initializer.assert_called_once_with(mock.ANY) - - def test_auth_generator_is_called(self): - """Ensure that the auth_generator function is called.""" -+ job_queue = queue.Queue() - auth_generator = mock.MagicMock() -- pool.Pool(None, num_processes=1, auth_generator=auth_generator) -+ pool.Pool(job_queue, num_processes=1, auth_generator=auth_generator) - assert auth_generator.called is True - auth_generator.assert_called_once_with(mock.ANY) - - def test_session_is_called(self): - """Ensure that the session function is called.""" -+ job_queue = queue.Queue() - session = mock.MagicMock() -- pool.Pool(None, num_processes=1, session=session) -+ pool.Pool(job_queue, num_processes=1, session=session) - assert session.called is True - session.assert_called_once_with() - -diff --git a/tests/threaded/test_thread.py b/tests/threaded/test_thread.py -index bb92f7f..fd7e96b 100644 ---- a/tests/threaded/test_thread.py -+++ b/tests/threaded/test_thread.py -@@ -19,6 +19,8 @@ def _make_mocks(): - - def _initialize_a_session_thread(session=None, job_queue=None, - response_queue=None, exception_queue=None): -+ if job_queue is None: -+ job_queue = queue.Queue() - with mock.patch.object(threading, 'Thread') as Thread: - thread_instance = mock.MagicMock() - Thread.return_value = thread_instance -@@ -52,10 +54,11 @@ def test_thread_initialization(self): - - def test_is_alive_proxies_to_worker(self): - """Test that we proxy the is_alive method to the Thread.""" -+ job_queue = queue.Queue() - with mock.patch.object(threading, 'Thread') as Thread: - thread_instance = mock.MagicMock() - Thread.return_value = thread_instance -- st = thread.SessionThread(None, None, None, None) -+ st = thread.SessionThread(None, job_queue, None, None) - - st.is_alive() - thread_instance.is_alive.assert_called_once_with() diff --git a/dev-python/requests-toolbelt/requests-toolbelt-0.10.0.ebuild b/dev-python/requests-toolbelt/requests-toolbelt-0.10.0.ebuild deleted file mode 100644 index 34364e92fc6c..000000000000 --- a/dev-python/requests-toolbelt/requests-toolbelt-0.10.0.ebuild +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) - -inherit distutils-r1 - -DESCRIPTION="A utility belt for advanced users of python-requests" -HOMEPAGE=" - https://toolbelt.readthedocs.io/ - https://github.com/requests/toolbelt/ - https://pypi.org/project/requests-toolbelt/ -" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" - -RDEPEND=" - <dev-python/requests-3.0.0[${PYTHON_USEDEP}] -" -BDEPEND=" - test? ( - dev-python/betamax[${PYTHON_USEDEP}] - ) -" - -DOCS=( AUTHORS.rst HISTORY.rst README.rst ) - -distutils_enable_tests pytest - -EPYTEST_DESELECT=( - # Internet - tests/test_multipart_encoder.py::TestFileFromURLWrapper::test_no_content_length_header - tests/test_multipart_encoder.py::TestFileFromURLWrapper::test_read_file - tests/test_multipart_encoder.py::TestMultipartEncoder::test_reads_file_from_url_wrapper -) - -EPYTEST_IGNORE=( - # certs have expired - # (if you ever fix this, look into git history for proper - # cryptography/pyopenssl logic) - tests/test_x509_adapter.py -) diff --git a/dev-python/requests-toolbelt/requests-toolbelt-0.9.1-r1.ebuild b/dev-python/requests-toolbelt/requests-toolbelt-0.9.1-r1.ebuild deleted file mode 100644 index 2b26e3ea273e..000000000000 --- a/dev-python/requests-toolbelt/requests-toolbelt-0.9.1-r1.ebuild +++ /dev/null @@ -1,55 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) - -inherit distutils-r1 - -DESCRIPTION="A utility belt for advanced users of python-requests" -HOMEPAGE=" - https://toolbelt.readthedocs.io/ - https://github.com/requests/toolbelt/ - https://pypi.org/project/requests-toolbelt/ -" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos" - -RDEPEND=" - <dev-python/requests-3.0.0[${PYTHON_USEDEP}] -" -BDEPEND=" - test? ( - dev-python/betamax[${PYTHON_USEDEP}] - dev-python/mock[${PYTHON_USEDEP}] - ) -" - -DOCS=( AUTHORS.rst HISTORY.rst README.rst ) - -PATCHES=( - "${FILESDIR}/requests-toolbelt-0.8.0-test-tracebacks.patch" - "${FILESDIR}/requests-toolbelt-0.9.1-tests.patch" - "${FILESDIR}/requests-toolbelt-0.9.1-py310.patch" -) - -distutils_enable_tests pytest - -EPYTEST_DESELECT=( - # Internet - tests/test_multipart_encoder.py::TestFileFromURLWrapper::test_no_content_length_header - tests/test_multipart_encoder.py::TestFileFromURLWrapper::test_read_file - tests/test_multipart_encoder.py::TestMultipartEncoder::test_reads_file_from_url_wrapper -) - -EPYTEST_IGNORE=( - # certs have expired - # (if you ever fix this, look into git history for proper - # cryptography/pyopenssl logic) - tests/test_x509_adapter.py -) diff --git a/dev-python/sphobjinv/Manifest b/dev-python/sphobjinv/Manifest index 5af733c4cae2..d3bfb2dffd52 100644 --- a/dev-python/sphobjinv/Manifest +++ b/dev-python/sphobjinv/Manifest @@ -1 +1,2 @@ DIST sphobjinv-2.2.2.tar.gz 1188094 BLAKE2B f693254f3746b0e5cb6cc863be381f41d26465eab2e1494c29f30f1a72374e8d03dfa5c433958dfa1dcbaa0a7da1ff454c42da5c09011fa67264c26e3623a302 SHA512 36e7667b071f30d4ca066422b21d298c5691321d813ba6ad9eb7a69cd4107ceb18365ee2f95865fad64ab872428b035661a3f513df2e4aab1124b48f49c7280b +DIST sphobjinv-2.3.gh.tar.gz 1342499 BLAKE2B e9871a9b15a74170e8208a40b128110959204bdac994566c19b6659b67198825dfab4d0ff8bad42bc8c88a17a7411c481f95b65f2d9c5925ec3c0e4b515aafad SHA512 ed4fc6a3ac4e06d3357d69a8b976394af6ef118ac87ccd8752413d18afc39b37e859656daf2eab6f27bfae4721a7a36db457c210cda5420159791e0b1db8fadd diff --git a/dev-python/sphobjinv/sphobjinv-2.3.ebuild b/dev-python/sphobjinv/sphobjinv-2.3.ebuild new file mode 100644 index 000000000000..3a19e3805912 --- /dev/null +++ b/dev-python/sphobjinv/sphobjinv-2.3.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{7,8,9,10,11} ) + +inherit distutils-r1 + +DESCRIPTION="Sphinx objects.inv Inspection/Manipulation Tool" +HOMEPAGE=" + https://github.com/bskinn/sphobjinv/ + https://pypi.org/project/sphobjinv/ +" +SRC_URI=" + https://github.com/bskinn/${PN}/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +SLOT="0" + +RDEPEND=" + >=dev-python/attrs-19.2[${PYTHON_USEDEP}] + dev-python/certifi[${PYTHON_USEDEP}] + dev-python/fuzzywuzzy[${PYTHON_USEDEP}] + >=dev-python/jsonschema-3.0[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/dictdiffer[${PYTHON_USEDEP}] + dev-python/pytest-check[${PYTHON_USEDEP}] + dev-python/pytest-ordering[${PYTHON_USEDEP}] + dev-python/pytest-timeout[${PYTHON_USEDEP}] + >=dev-python/stdio-mgr-1.0.1[${PYTHON_USEDEP}] + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/timeout-decorator[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +EPYTEST_DESELECT=( + # Internet + README.rst::README.rst + tests/test_readme.py::test_readme_shell_cmds +) + +src_prepare() { + sed -e '/CLI_TEST_TIMEOUT/s/2/20/' -i tests/test_cli.py || die + + # remove bundled deps + rm -r src/sphobjinv/_vendored || die + sed -i -e 's:sphobjinv[.]_vendored[.]::' src/sphobjinv/*.py || die + + distutils-r1_src_prepare +} diff --git a/dev-python/tabulate/Manifest b/dev-python/tabulate/Manifest index b2dd108b1119..e8780121f3cd 100644 --- a/dev-python/tabulate/Manifest +++ b/dev-python/tabulate/Manifest @@ -1,2 +1 @@ -DIST python-tabulate-0.8.10.gh.tar.gz 49453 BLAKE2B 9bf5c9e937f8ef051792fc57dcd56f1150636bf29493fabe56d4b706df04add41fdffbe1108cb93aa561edc96245ba85e621d4a8b402ace513b55710e6e5498c SHA512 d216076112c0d0f0879c1eeecf2d2c0c30edc84d7289396f1a8d24bca862ef90fcf221a09812b409547696c3b7d4472d431043e359c3a7f67bb8392ce1e95ddc DIST python-tabulate-0.9.0.gh.tar.gz 59342 BLAKE2B dc101ab8d1411196619c3d77dd83c84e48f31e148ec3878c2b844a1e26ea1187cc948cfb1eb740d61a667d6b669806a5288c397ea7fcbd59685fedaa9bd0bd2e SHA512 26b0f079f1aca48578883147cb1a2e30e96e0bb85d5af3b72b26eba5f73cea41cf1a0686f666487c8374f95ca0412703168e480c947f1567e6408f941756498b diff --git a/dev-python/tabulate/tabulate-0.8.10.ebuild b/dev-python/tabulate/tabulate-0.8.10.ebuild deleted file mode 100644 index 2a0644b56d85..000000000000 --- a/dev-python/tabulate/tabulate-0.8.10.ebuild +++ /dev/null @@ -1,56 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) - -inherit distutils-r1 - -MY_P=python-${P} -DESCRIPTION="Pretty-print tabular data" -HOMEPAGE=" - https://github.com/astanin/python-tabulate/ - https://pypi.org/project/tabulate/ -" -SRC_URI=" - https://github.com/astanin/python-${PN}/archive/v${PV}.tar.gz - -> ${MY_P}.gh.tar.gz -" -S=${WORKDIR}/${MY_P} - -SLOT="0" -LICENSE="MIT" -KEYWORDS="amd64 ~arm64 x86 ~amd64-linux ~x86-linux" - -RDEPEND=" - dev-python/wcwidth[${PYTHON_USEDEP}] -" -BDEPEND=" - test? ( - $(python_gen_impl_dep 'sqlite') - dev-python/colorclass[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - dev-python/numpy[${PYTHON_USEDEP}] - ' 'python3*') - ) -" - -distutils_enable_tests pytest - -python_test() { - local EPYTEST_DESELECT=() - if ! has_version "dev-python/pandas[${PYTHON_USEDEP}]"; then - EPYTEST_DESELECT+=( - test/test_input.py::test_pandas - test/test_input.py::test_pandas_firstrow - test/test_input.py::test_pandas_keys - test/test_output.py::test_pandas_with_index - test/test_output.py::test_pandas_without_index - test/test_output.py::test_pandas_rst_with_index - test/test_output.py::test_pandas_rst_with_named_index - ) - fi - epytest -} diff --git a/dev-python/thriftpy2/Manifest b/dev-python/thriftpy2/Manifest index 907734570ece..91b4f9da386a 100644 --- a/dev-python/thriftpy2/Manifest +++ b/dev-python/thriftpy2/Manifest @@ -1 +1,2 @@ DIST thriftpy2-0.4.14.gh.tar.gz 127552 BLAKE2B 4061642fb14b60ba53e0c4e6342ead25f781ee923b718a6c557235fcbfe4219b4d8944894afe9783062e7950b689b909af6be5cefe3b634a476ec582adfefbed SHA512 0b248c4999b0a97287d8db3e5b79ac687bc7e25a5478ef125b479e0baf9be9d0aa5f9eaadf0612c228133295743ba913bfe69e7fe59a8d5f854a682da9d31c50 +DIST thriftpy2-0.4.15.gh.tar.gz 136581 BLAKE2B 68287057e76ec6f2b91d9fca9a63e1814e2e17f4fb074b5f227b177137452f88921adf4912c66fee206b29d9f32cd0eb43cbbbe275574c21babc12b1f949672e SHA512 c5a17e42ac8a4051714938a4db926a25f41c84e4935fcf18c62ef8b115d9a1df3853800ca6c9fa01cafd6cbdfe31b6b4eabc7a81169a4773e0bda2241c4a26fb diff --git a/dev-python/thriftpy2/thriftpy2-0.4.15.ebuild b/dev-python/thriftpy2/thriftpy2-0.4.15.ebuild new file mode 100644 index 000000000000..6d8df2d63f57 --- /dev/null +++ b/dev-python/thriftpy2/thriftpy2-0.4.15.ebuild @@ -0,0 +1,59 @@ +# Copyright 2021-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{7,8,9,10,11} ) + +inherit distutils-r1 + +DESCRIPTION="Pure python approach of Apache Thrift" +HOMEPAGE=" + https://github.com/Thriftpy/thriftpy2/ + https://pypi.org/project/thriftpy2/ +" +SRC_URI=" + https://github.com/Thriftpy/thriftpy2/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-python/ply[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/cython[${PYTHON_USEDEP}] + test? ( + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + dev-python/tornado[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=( + # broken by modern OpenSSL defaults + tests/test_rpc.py::test_clients + tests/test_rpc.py::test_void_api_with_ssl + tests/test_rpc.py::test_string_api_with_ssl + tests/test_rpc.py::test_huge_res_with_ssl + tests/test_rpc.py::test_tstruct_req_with_ssl + tests/test_rpc.py::test_tstruct_res_with_ssl + tests/test_rpc.py::test_complex_tstruct_with_ssl + tests/test_rpc.py::test_exception_iwth_ssl + tests/test_sslsocket.py + + # TODO + tests/test_tornado.py::TornadoRPCTestCase::test_asynchronous_exception + tests/test_tornado.py::TornadoRPCTestCase::test_asynchronous_result + ) + + cd tests || die + epytest +} diff --git a/dev-python/wheel/Manifest b/dev-python/wheel/Manifest index ee175fb435c9..f850746e7baa 100644 --- a/dev-python/wheel/Manifest +++ b/dev-python/wheel/Manifest @@ -1,3 +1,4 @@ DIST wheel-0.37.1.gh.tar.gz 68751 BLAKE2B 55919649f82668565d3b5907d14d0758984bb7d29d8857807ad034288ed8c9e8660957dc16f418f18408e89a97cf0d3c30df874a17f56deb56918388b18246a7 SHA512 9493db2f29e16d17ca06a4d47854b3df5dfd17f21c77efd42befd54470858256fd59f56aa9585cbf0a09830927b657d546324f793e1b1153665bf0b74d0c0457 DIST wheel-0.38.0.gh.tar.gz 68696 BLAKE2B 38dbc8ba7cf67d202c6c98b277e590b3b31b46b698f59f988af1710e9fa6e5d2125378029475060cf3142cd9666bb318005619d085ea2e8b501bb10cd9694fe3 SHA512 0ffdf531c03d1f0866632002b163fdf8642b613604e74d1cfa5844e8c327946baf303bc0410fc7ec034f8a79cb4ad59536dfdaaa5cc8fa23a3b7d21faf5e6161 DIST wheel-0.38.2.gh.tar.gz 69346 BLAKE2B 619da7f17d82837d70cb86bf6481738a4959c70f1be56ad68f87380f4f03efc588ada7af1b6892079833df50e4aa57f7453b811b616b8440e388bad701726572 SHA512 59a55e35f641dc6e97bcd58755ef39dd771f8ed442843321878054db3c54234befde368ae500a93fffde6ea1bbcb0e3981975b2c7574fc5a58693a70430e474b +DIST wheel-0.38.3.gh.tar.gz 69385 BLAKE2B ff1c9681a361643877b1838d7fb2679f7b542152fa8f6268050bd1d7aefe75854e878036f4051e7e562f24973c4769948975060caa969ed8c13fd5259668da78 SHA512 e7a9b922fad3552b60d86123b002762e6a672253fdad8580c93ccea8c57619d450345c948b5e36857b264b7214860ee7f77650f7a269f455c2aa952116023798 diff --git a/dev-python/wheel/wheel-0.38.3.ebuild b/dev-python/wheel/wheel-0.38.3.ebuild new file mode 100644 index 000000000000..ec80c4257a94 --- /dev/null +++ b/dev-python/wheel/wheel-0.38.3.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# please keep this ebuild at EAPI 7 -- sys-apps/portage dep +EAPI=7 + +DISTUTILS_USE_PEP517=flit +PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="A built-package format for Python" +HOMEPAGE=" + https://github.com/pypa/wheel/ + https://pypi.org/project/wheel/ +" +SRC_URI=" + https://github.com/pypa/wheel/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos ~x64-solaris" + +RDEPEND=" + dev-python/packaging[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/setuptools[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + # unbundle packaging + rm -r src/wheel/vendored || die + sed -i -e 's:\.vendored\.::' src/wheel/*.py || die + sed -i -e 's:wheel\.vendored\.::' tests/*.py || die + + distutils-r1_src_prepare +} + +src_configure() { + [[ -e pyproject.toml ]] && + die "Upstream added pyproject.toml, recheck" + # write a custom pyproject.toml to ease setuptools bootstrap + cat > pyproject.toml <<-EOF || die + [build-system] + requires = ["flit_core >=3.2,<4"] + build-backend = "flit_core.buildapi" + + [project] + name = "wheel" + description = "A built-package format for Python" + dynamic = ["version"] + + [project.scripts] + wheel = "wheel.cli:main" + + [project.entry-points."distutils.commands"] + bdist_wheel = "wheel.bdist_wheel:bdist_wheel" + EOF +} |
