diff options
Diffstat (limited to 'dev-python')
67 files changed, 802 insertions, 318 deletions
diff --git a/dev-python/autobahn/Manifest b/dev-python/autobahn/Manifest index 96b9dfbe6503..4117850ffa71 100644 --- a/dev-python/autobahn/Manifest +++ b/dev-python/autobahn/Manifest @@ -1 +1,2 @@ DIST autobahn-21.11.1.tar.gz 365165 BLAKE2B 91a12bf1fa9acd056246d86675c76fbcdb4de8914f4ab5e2c8ec06cf8e822cc1a72f8a7b39b520405cce32e2f32024ebbaa48ba024e1dc71b50da4e6f8913e19 SHA512 5a23272046ef67821e86c6bfe766273b3ba73a75fbc51c7864c2ab83ffb8d4e119022980f8b71c453118bf15b26ede8042aa0114e54caebbfb33555208093ac2 +DIST autobahn-22.1.1.tar.gz 365843 BLAKE2B 835861db493be3f70fbff1971f3ab09346f689b5e100ea29115635b6d283c14f944a6c6fcc234d549cfa895496125ce7d03576ea6536c0536f6e79277a1e5592 SHA512 9198fc71ef0d967e9d0d577684c9c5f6ef36d12392a043f581a0be920fc0bf842369f50406a3a5a33d1c6063d21a57136735d8dc123230b18b6da8c4e80f8eed diff --git a/dev-python/autobahn/autobahn-22.1.1.ebuild b/dev-python/autobahn/autobahn-22.1.1.ebuild new file mode 100644 index 000000000000..afe77d2e60e7 --- /dev/null +++ b/dev-python/autobahn/autobahn-22.1.1.ebuild @@ -0,0 +1,115 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) +DISTUTILS_USE_PEP517=setuptools +inherit distutils-r1 optfeature + +MY_P=${PN}-$(ver_rs 3 -) + +DESCRIPTION="WebSocket and WAMP for Twisted and Asyncio" +HOMEPAGE="https://pypi.org/project/autobahn/ + https://crossbar.io/autobahn/ + https://github.com/crossbario/autobahn-python" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +SLOT="0" +LICENSE="MIT" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" +IUSE="test xbr" +RESTRICT="!test? ( test )" + +# The order of deps is based on their appearance in setup.py +# All extra deps should be included in test and in optfeature +RDEPEND=" + >=dev-python/zope-interface-5.2.0[${PYTHON_USEDEP}] + >=dev-python/twisted-20.3.0[${PYTHON_USEDEP}] + >=dev-python/attrs-20.3.0[${PYTHON_USEDEP}] + >=dev-python/txaio-21.2.1[${PYTHON_USEDEP}] + dev-python/cryptography[${PYTHON_USEDEP}] + >=dev-python/hyperlink-21.0.0[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + >=dev-python/wsaccel-0.6.3[${PYTHON_USEDEP}] + >=dev-python/snappy-0.6.0[${PYTHON_USEDEP}] + >=dev-python/msgpack-1.0.2[${PYTHON_USEDEP}] + >=dev-python/ujson-4.0.2[${PYTHON_USEDEP}] + >=dev-python/cbor2-5.2.0[${PYTHON_USEDEP}] + >=dev-python/cbor-1.0.0[${PYTHON_USEDEP}] + >=dev-python/py-ubjson-0.16.1[${PYTHON_USEDEP}] + >=dev-python/flatbuffers-1.12[${PYTHON_USEDEP}] + >=dev-python/pyopenssl-20.0.1[${PYTHON_USEDEP}] + >=dev-python/service_identity-18.1.0[${PYTHON_USEDEP}] + >=dev-python/pynacl-1.4.0[${PYTHON_USEDEP}] + >=dev-python/pytrie-0.4[${PYTHON_USEDEP}] + >=dev-python/pyqrcode-1.2.1[${PYTHON_USEDEP}] + >=dev-python/cffi-1.14.5[${PYTHON_USEDEP}] + >=dev-python/argon2-cffi-20.1.0[${PYTHON_USEDEP}] + >=dev-python/passlib-1.7.4[${PYTHON_USEDEP}] + + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + dev-python/pytest-aiohttp[${PYTHON_USEDEP}] + ) +" + +python_prepare_all() { + if use xbr ; then + eerror "***************" + eerror "Required xbr dependencies are incomplete in Gentoo." + eerror "So this functionality will not yet work" + eerror "Please file a bug if this feature is needed" + eerror "***************" + else + # remove xbr components + export AUTOBAHN_STRIP_XBR="True" + fi + + # avoid useless rust dependency + sed -i -e '/cryptography/s:>=3.4.6::' setup.py || die + + # remove twisted plugin cache regen in setup.py + # to fix tinderbox sandbox issue + sed -e '/import/s:reactor:__importmustfail__:' \ + -i setup.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + einfo "Testing all, cryptosign using twisted" + local -x USE_TWISTED=true + cd "${BUILD_DIR}/install$(python_get_sitedir)" || die + "${EPYTHON}" -m twisted.trial autobahn || die "Tests failed with ${EPYTHON}" + unset USE_TWISTED + + einfo "RE-testing cryptosign and component_aio using asyncio" + local -x USE_ASYNCIO=true + epytest autobahn/wamp/test/test_wamp_{cryptosign,component_aio}.py + unset USE_ASYNCIO + + rm -f twisted/plugins/dropin.cache || die +} + +pkg_postinst() { + optfeature "C-based WebSocket acceleration" "dev-python/wsaccel" + optfeature "non-standard WebSocket compression support" "dev-python/snappy" + optfeature "accelerated WAMP serialization support" \ + "dev-python/msgpack dev-python/ujson dev-python/cbor2 dev-python/cbor dev-python/flatbuffers dev-python/py-ubjson" + optfeature "TLS transport encryption" \ + "dev-python/pyopenssl dev-python/pynacl dev-python/pytrie dev-python/pyqrcode dev-python/service_identity" + optfeature "WAMP-SCRAM authentication" \ + "dev-python/cffi dev-python/argon2-cffi dev-python/passlib" + optfeature "native SIMD acceleration" "dev-python/cffi" + + python_foreach_impl twisted-regen-cache +} + +pkg_postrm() { + python_foreach_impl twisted-regen-cache +} diff --git a/dev-python/aws-sam-translator/aws-sam-translator-1.42.0.ebuild b/dev-python/aws-sam-translator/aws-sam-translator-1.42.0.ebuild index bbf3ee2c0702..73c7c9b27d6f 100644 --- a/dev-python/aws-sam-translator/aws-sam-translator-1.42.0.ebuild +++ b/dev-python/aws-sam-translator/aws-sam-translator-1.42.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -14,7 +14,7 @@ S="${WORKDIR}/serverless-application-model-${PV}" LICENSE="Apache-2.0" SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~riscv x86 ~amd64-linux ~x86-linux" +KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~riscv x86 ~amd64-linux ~x86-linux" RDEPEND=" >=dev-python/boto3-1.17[${PYTHON_USEDEP}] diff --git a/dev-python/aws-xray-sdk-python/aws-xray-sdk-python-2.8.0.ebuild b/dev-python/aws-xray-sdk-python/aws-xray-sdk-python-2.8.0.ebuild index a5642831de2c..9e4c8d390587 100644 --- a/dev-python/aws-xray-sdk-python/aws-xray-sdk-python-2.8.0.ebuild +++ b/dev-python/aws-xray-sdk-python/aws-xray-sdk-python-2.8.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -15,7 +15,7 @@ SRC_URI=" LICENSE="Apache-2.0" SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~riscv x86 ~amd64-linux ~x86-linux" +KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~riscv x86 ~amd64-linux ~x86-linux" RDEPEND=" >=dev-python/botocore-1.12.122[${PYTHON_USEDEP}] diff --git a/dev-python/bandit/bandit-1.7.2-r1.ebuild b/dev-python/bandit/bandit-1.7.2-r1.ebuild new file mode 100644 index 000000000000..2c6b00ae1b2a --- /dev/null +++ b/dev-python/bandit/bandit-1.7.2-r1.ebuild @@ -0,0 +1,35 @@ +# 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_{6,7,8,9,10} ) +inherit distutils-r1 + +DESCRIPTION="A security linter from OpenStack Security" +HOMEPAGE="https://github.com/PyCQA/bandit" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~s390 ~x86" + +RDEPEND=" + >=dev-python/pbr-2.0.0[${PYTHON_USEDEP}] + >=dev-python/GitPython-1.0.1[${PYTHON_USEDEP}] + >=dev-python/pyyaml-5.3.1[${PYTHON_USEDEP}] + >=dev-python/stevedore-1.20.0[${PYTHON_USEDEP}] +" +BDEPEND=" + >=dev-python/pbr-2.0.0[${PYTHON_USEDEP}] + test? ( + >=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}] + >=dev-python/testscenarios-0.5.0[${PYTHON_USEDEP}] + >=dev-python/testtools-2.3.0[${PYTHON_USEDEP}] + >=dev-python/beautifulsoup4-4.8.0[${PYTHON_USEDEP}] + >=dev-python/pylint-1.9.4[${PYTHON_USEDEP}] + dev-python/toml[${PYTHON_USEDEP}] + )" + +distutils_enable_tests unittest diff --git a/dev-python/boto3/Manifest b/dev-python/boto3/Manifest index cc8198f815f0..c745dda40cd2 100644 --- a/dev-python/boto3/Manifest +++ b/dev-python/boto3/Manifest @@ -7,3 +7,4 @@ DIST boto3-1.20.42.tar.gz 463092 BLAKE2B 5396f2c47db8aaec468a0e9cb3eebe8450dd3a9 DIST boto3-1.20.43.tar.gz 463424 BLAKE2B 6d67a86d4d0577b2e9d30335ddb1286f25bc866b492416ea64833bc7e8315f847393158abe898e9208b947a7e8505d18ed70885044f9059da38e8ac7a00c6a80 SHA512 95602ce59c4baa24835fcf331674e040d8e41b279bf43bfd7c00f171087644d7a335462cd1941fd1330da7909b6fe707f595ec04c0dcad02627b91fc3fdd3ffc DIST boto3-1.20.44.tar.gz 463921 BLAKE2B 1276bbddbf1be9e30142ef1ccc24a69e885d1bdf35ce1c136105d1c08b6a24820c965827c6bc569c747efb5dbb8e64b611b3ac2bc63bcb714f8d6748e424f927 SHA512 de223aa34efd81d26287204e9159368ee77bd91e3fd457896d801bc1517ed4b32f5a16d1441f053f90e232beb473c51bee88f591db5746cf5b8049f044c29811 DIST boto3-1.20.45.tar.gz 464557 BLAKE2B f021696e14a2bd82325c666a3ef8266ae3e19564cda9792a2436079b24810949af86f6d1a328850f58c9f53be261ee67c6282adc1cd846df0a37d686835c92fa SHA512 293e89a96601c15f78efc2a7c9dd91bf1db6944deebdb50e093b075540bafd1da5ea82d9719bfc36b205b0cfdb5052f3f69cc504bef089e980ead68f39326d85 +DIST boto3-1.20.46.tar.gz 464857 BLAKE2B 40eb0f2c298821530028c84f90d8acd9757a4b6c74e8355ca644ee2a87297d7ba3b70a2614e83c83befe0f6e3b64e0f1e023cc2fc3edbf3deb40f86382265338 SHA512 3ad8808ace2ce24eba54c60aa1ece5b904a2138a1497ec5c180a9aa1bef95cd61e2eabf26614d35690ae790cb56400afb6e32d0c005911e0eb42deaee7dc2602 diff --git a/dev-python/boto3/boto3-1.20.46.ebuild b/dev-python/boto3/boto3-1.20.46.ebuild new file mode 100644 index 000000000000..ed44d35fedd6 --- /dev/null +++ b/dev-python/boto3/boto3-1.20.46.ebuild @@ -0,0 +1,60 @@ +# 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_{6,7,8,9,10} ) +inherit distutils-r1 + +DESCRIPTION="The AWS SDK for Python" +HOMEPAGE="https://github.com/boto/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/${PN}/archive/${PV}.tar.gz -> ${P}.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.3.0[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/mock[${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} +} diff --git a/dev-python/botocore/Manifest b/dev-python/botocore/Manifest index efcafb9827c9..13ea44065edc 100644 --- a/dev-python/botocore/Manifest +++ b/dev-python/botocore/Manifest @@ -7,3 +7,4 @@ DIST botocore-1.23.42.tar.gz 8734201 BLAKE2B 009fd49716ce5a1453c83f279f36b8b1744 DIST botocore-1.23.43.tar.gz 8739652 BLAKE2B 5520a9933ab87769c8459a0925822e36eba1741512bd11b575ba260ab0ea43aae66c737d66d3488aeb04cc10a2931af9136f7f80fc10bcdda309234de9bb6414 SHA512 51b11df7bf43a011df904e92285ecc373888e42e3d7e349e47df42c78432a60f692ccfbeb01fc598f9d81861823578a3cc1798340196468ee3e30de7e6a9dd03 DIST botocore-1.23.44.tar.gz 8741781 BLAKE2B e76dcbf7a57421e4df3afa9317a1fcc66c0f7e00a3112384537daafb349648e38ec7cc6fb4b808fbfe69a6c6cfd30f04bbefb7fcc246d2b647ea4fc78aa17378 SHA512 59562e8ef5e18465a1981c188a84112326ab5f7d7ed4f72eacea3a88d43d615c8b3514d7bf6a2daf92ac29dc8bb24f8f878c318c8f463cd1ceb7e237f18dfc26 DIST botocore-1.23.45.tar.gz 8742820 BLAKE2B af2304abeb8be458ad46c957e7865ad37b3ffc0f2adf3b412cf2713235c0f5a31005da7630b7d882cdde56c2ea34bbe2562104b8399f2f4b7965d48c9a4276e3 SHA512 bddedc8bb2b70758b1508b1c9f62c82016b2e397b95732243ad3c994cb2fbcf19ed29c8f7bd295498d31b385bf4ad2975cf7733e57c9cbeadbe290e042ea2c0f +DIST botocore-1.23.46.tar.gz 8743469 BLAKE2B 804e4ea772bbc74a12645fa5b5e1056115aa232eba0a21f347686143721a0a5e5d2bebe3841ff68fd0a3e464fa8fe88cb78e349c33eb22172b7481d1b5de7b28 SHA512 241d44bb509847e97744a0d4b8e38f44eba1f0e0b11d36b3194cd85b06b5a841dd5bee91b4602ddf3bc36c6945638104f22ca0083150fb5331f4c62a9e22c947 diff --git a/dev-python/botocore/botocore-1.23.46.ebuild b/dev-python/botocore/botocore-1.23.46.ebuild new file mode 100644 index 000000000000..c44cf37adbf0 --- /dev/null +++ b/dev-python/botocore/botocore-1.23.46.ebuild @@ -0,0 +1,65 @@ +# 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_{6,7,8,9,10} ) +inherit distutils-r1 + +DESCRIPTION="Low-level, data-driven core of boto 3" +HOMEPAGE="https://github.com/boto/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="mirror://pypi/${PN:0:1}/${PN}/${P}.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[${PYTHON_USEDEP}] + dev-python/python-dateutil[${PYTHON_USEDEP}] + >=dev-python/urllib3-1.25.4[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/jsonschema[${PYTHON_USEDEP}] + ) +" + +PATCHES=( + "${FILESDIR}/1.8.6-tests-pass-all-env-vars-to-cmd-runner.patch" +) + +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 + ) + + epytest tests/{functional,unit} +} diff --git a/dev-python/cfn-lint/cfn-lint-0.57.0.ebuild b/dev-python/cfn-lint/cfn-lint-0.57.0.ebuild index 3cfa9d084dea..306b88ce5978 100644 --- a/dev-python/cfn-lint/cfn-lint-0.57.0.ebuild +++ b/dev-python/cfn-lint/cfn-lint-0.57.0.ebuild @@ -14,7 +14,7 @@ SRC_URI=" LICENSE="MIT" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" RDEPEND=" >=dev-python/aws-sam-translator-1.42.0[${PYTHON_USEDEP}] diff --git a/dev-python/cookies/cookies-2.2.1-r1.ebuild b/dev-python/cookies/cookies-2.2.1-r1.ebuild index 63c1868e245a..3d2385ca16b1 100644 --- a/dev-python/cookies/cookies-2.2.1-r1.ebuild +++ b/dev-python/cookies/cookies-2.2.1-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 diff --git a/dev-python/cwcwidth/Manifest b/dev-python/cwcwidth/Manifest index b1d5056fae44..6905a913a95e 100644 --- a/dev-python/cwcwidth/Manifest +++ b/dev-python/cwcwidth/Manifest @@ -1,2 +1 @@ -DIST cwcwidth-0.1.5.gh.tar.gz 11526 BLAKE2B a457a17ad3668b0633c8aebd8b015225a37afdb9f45a9342960716583e57f7e0d6cf80f27d6139f339e4876d9f8fa4b4cb7c03bb92a6d9ade99225900b8d4a36 SHA512 2eac36232f1efbe427290c3c1d356ab1a31c4d855a0755eed71b18e3c93f516890dd592643efa8a59551fb5e997e39afd5aca7bd0dbe24d4552de738fb2e39ba DIST cwcwidth-0.1.6.gh.tar.gz 11563 BLAKE2B 014c1ae377005c704620fda7063e9891c014bb3f3f22160baf55cbef6e07084302a34ccea6bce2ca0f06d193ed3782006e308930a19c9a3c02bf181070eb5654 SHA512 0516fd49d625cd4bec26c27fd2fbbde55ca13a92bee3712018627a5c7f7a0c04aa06842ecce4c99d468f262a829f4ec5ff20bbc66232ad0fc037a7ade5845622 diff --git a/dev-python/cwcwidth/cwcwidth-0.1.5.ebuild b/dev-python/cwcwidth/cwcwidth-0.1.5.ebuild deleted file mode 100644 index f96ced46760c..000000000000 --- a/dev-python/cwcwidth/cwcwidth-0.1.5.ebuild +++ /dev/null @@ -1,29 +0,0 @@ -# Copyright 2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{6,7,8,9,10} ) -inherit distutils-r1 - -DESCRIPTION="Python bindings for wc(s)width" -HOMEPAGE=" - https://github.com/sebastinas/cwcwidth/ - https://pypi.org/project/cwcwidth/" -SRC_URI=" - https://github.com/sebastinas/cwcwidth/archive/v${PV}.tar.gz - -> ${P}.gh.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="amd64 x86" - -BDEPEND=" - dev-python/cython[${PYTHON_USEDEP}]" - -distutils_enable_tests unittest - -src_test() { - cd tests || die - distutils-r1_src_test -} diff --git a/dev-python/dask/Manifest b/dev-python/dask/Manifest index 0d136025a401..0025f79a2561 100644 --- a/dev-python/dask/Manifest +++ b/dev-python/dask/Manifest @@ -1,3 +1,4 @@ DIST dask-2021.11.0.tar.gz 3971871 BLAKE2B be2c28782e3e870b62e70041bd7572783ff9eef61c27d2fa092f00b74ae23877163e3c00f59f67c5c39b6fefd723cb2c25cdc58b5f5c76c08ef1d686f256cb25 SHA512 cebdef68b2c40348c84627505f4e1f17f998aed603d590be5acc7b78233362330352be395396be00f72215b738e9393ef08eeae8ed0fb933466c1c2d6158e5ea DIST dask-2021.12.0.gh.tar.gz 3987797 BLAKE2B f6c1954ff41048861fcedbc56bd658989dece828613344e876e097d03f93338c194d66e62dd9fa1605b5dfd0362374a1dd2e00a383eec4476db16ac04de29266 SHA512 e9ce4613bf1ccfda7ce85bd90ff8f24d59335f02a941c12335214a2636f46ae1e1e8c2b1777ca9b9dd83f190071a2893b02bee129a68e9b7468c30f2a45df68e DIST dask-2022.01.0.gh.tar.gz 4903414 BLAKE2B 495531085d126d51c03b1f6dda490cd2d859276821a6d1ab6c2b90fcf6a4cec925b9fcafdf3b3da46344391e77a9bd09cf023f25b0f84bbe6ca8fa36b0bed73f SHA512 3fc25f6ccfca8354e3c6e2425f4d2c8b85807944b02cd1e872931f5b34d82c9afc6f5ffb17b5f835c531ebac4b6759ddaa81897a6f3d2aeee2c09935f221f62d +DIST dask-2022.01.1.gh.tar.gz 4916694 BLAKE2B b793b8931818e619ef701f5145a27b8c90e237a51b79f370e994a5e7cdace115808c8f657836785059b1cb495b64f85cb5331759de76c79e55f2cd45f1c3494e SHA512 82789735279c71cff5a0123aa95d3311bd5d08f0332edc22468287e573e4b293a13da514a1844879073490b23ead2ff86f4492175c0a4211f727e8537bac5662 diff --git a/dev-python/dask/dask-2022.01.0.ebuild b/dev-python/dask/dask-2022.01.0.ebuild index b0e91c32d149..264fc7ee9680 100644 --- a/dev-python/dask/dask-2022.01.0.ebuild +++ b/dev-python/dask/dask-2022.01.0.ebuild @@ -14,7 +14,7 @@ SRC_URI=" LICENSE="BSD" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86 ~amd64-linux ~x86-linux" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux" RDEPEND=" >=dev-python/cloudpickle-0.2.2[${PYTHON_USEDEP}] diff --git a/dev-python/dask/dask-2022.01.1.ebuild b/dev-python/dask/dask-2022.01.1.ebuild new file mode 100644 index 000000000000..36b4d173fbe1 --- /dev/null +++ b/dev-python/dask/dask-2022.01.1.ebuild @@ -0,0 +1,58 @@ +# 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_{6,7,8,9,10} ) + +inherit distutils-r1 + +DESCRIPTION="Task scheduling and blocked algorithms for parallel processing" +HOMEPAGE="https://dask.org/" +SRC_URI=" + https://github.com/dask/dask/archive/${PV}.tar.gz -> ${P}.gh.tar.gz +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + >=dev-python/cloudpickle-0.2.2[${PYTHON_USEDEP}] + >=dev-python/fsspec-0.6.0[${PYTHON_USEDEP}] + >=dev-python/numpy-1.15.1[${PYTHON_USEDEP}] + >=dev-python/pandas-0.25.0[${PYTHON_USEDEP}] + >=dev-python/packaging-20.0[${PYTHON_USEDEP}] + >=dev-python/partd-0.3.10[${PYTHON_USEDEP}] + dev-python/psutil[${PYTHON_USEDEP}] + >=dev-python/pyyaml-5.3.1[${PYTHON_USEDEP}] + >=dev-python/toolz-0.8.2[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/toolz[${PYTHON_USEDEP}] + test? ( + dev-python/moto[${PYTHON_USEDEP}] + dev-python/numexpr[${PYTHON_USEDEP}] + dev-python/pytest-rerunfailures[${PYTHON_USEDEP}] + dev-python/scipy[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +PATCHES=( + "${FILESDIR}"/dask-2021.10.0-warning.patch +) + +EPYTEST_DESELECT=( + # another test relying on -Werror + "dask/array/tests/test_overlap.py::test_map_overlap_no_depth[None]" + # TODO + dask/array/tests/test_reductions.py::test_mean_func_does_not_warn + dask/tests/test_config.py::test__get_paths +) + +python_test() { + epytest -p no:flaky -m "not network" +} diff --git a/dev-python/django-tables2/django-tables2-2.3.4.ebuild b/dev-python/django-tables2/django-tables2-2.3.4.ebuild index 9e66a1fd6d95..6ba5f9c0c75d 100644 --- a/dev-python/django-tables2/django-tables2-2.3.4.ebuild +++ b/dev-python/django-tables2/django-tables2-2.3.4.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 diff --git a/dev-python/flask-cors/flask-cors-3.0.10.ebuild b/dev-python/flask-cors/flask-cors-3.0.10.ebuild index 9416157e1b7f..3bb265685865 100644 --- a/dev-python/flask-cors/flask-cors-3.0.10.ebuild +++ b/dev-python/flask-cors/flask-cors-3.0.10.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -12,7 +12,7 @@ if [[ "${PV}" == "9999" ]]; then inherit git-r3 else SRC_URI="https://github.com/corydolphin/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="amd64 ~arm ~arm64 ~riscv x86" + KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~riscv x86" fi DESCRIPTION="A Flask extension for Cross Origin Resource Sharing (CORS)" diff --git a/dev-python/flask-sqlalchemy/flask-sqlalchemy-2.5.1.ebuild b/dev-python/flask-sqlalchemy/flask-sqlalchemy-2.5.1.ebuild index 9551b5083438..d048e5359808 100644 --- a/dev-python/flask-sqlalchemy/flask-sqlalchemy-2.5.1.ebuild +++ b/dev-python/flask-sqlalchemy/flask-sqlalchemy-2.5.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -16,7 +16,7 @@ S="${WORKDIR}/${MY_P}" LICENSE="BSD" SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~riscv x86" +KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~riscv x86" RDEPEND=" >=dev-python/flask-0.10[${PYTHON_USEDEP}] diff --git a/dev-python/fsspec/fsspec-2022.01.0.ebuild b/dev-python/fsspec/fsspec-2022.01.0.ebuild index 4f6f47a62ac6..920f155442f4 100644 --- a/dev-python/fsspec/fsspec-2022.01.0.ebuild +++ b/dev-python/fsspec/fsspec-2022.01.0.ebuild @@ -17,7 +17,7 @@ S=${WORKDIR}/${MY_P} LICENSE="BSD" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" BDEPEND=" dev-python/versioneer[${PYTHON_USEDEP}] diff --git a/dev-python/glooey/glooey-0.3.4-r1.ebuild b/dev-python/glooey/glooey-0.3.4-r1.ebuild index dfd675a3d9bf..299d149e7911 100644 --- a/dev-python/glooey/glooey-0.3.4-r1.ebuild +++ b/dev-python/glooey/glooey-0.3.4-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 diff --git a/dev-python/gst-python/files/gst-python-1.18.4-avoid-treating-float-as-int.patch b/dev-python/gst-python/files/gst-python-1.18.4-avoid-treating-float-as-int.patch new file mode 100644 index 000000000000..d9cc6bca086b --- /dev/null +++ b/dev-python/gst-python/files/gst-python-1.18.4-avoid-treating-float-as-int.patch @@ -0,0 +1,86 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Thibault Saunier <tsaunier@igalia.com> +Date: Tue, 16 Nov 2021 23:36:10 -0300 +Subject: [PATCH] python: Avoid treating float as int + +Since python 3.10 implicit conversion to integers using `__int__` as +been completely removed (was deprecated behavior in 3.9) so we need +to cleanly handle it now. + +See https://gitlab.gnome.org/GNOME/pitivi/-/issues/2589 + +Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1358> +--- + .../gst-python/gi/overrides/gstmodule.c | 54 ++++++++++++++++--- + 1 file changed, 47 insertions(+), 7 deletions(-) + +diff --git a/subprojects/gst-python/gi/overrides/gstmodule.c b/subprojects/gst-python/gi/overrides/gstmodule.c +index 167a1c27539a..2308eb7dcde6 100644 +--- a/gi/overrides/gstmodule.c ++++ b/gi/overrides/gstmodule.c +@@ -104,18 +104,58 @@ gi_gst_fraction_from_value (const GValue * value) + static int + gi_gst_fraction_to_value (GValue * value, PyObject * object) + { +- PyObject *numerator, *denominator; ++ glong numerator, denominator; ++ PyObject *numerator_obj, *denominator_obj, *is_integer; + +- numerator = PyObject_GetAttrString (object, "num"); +- if (numerator == NULL) ++ numerator_obj = PyObject_GetAttrString (object, "num"); ++ if (numerator_obj == NULL) + goto fail; + +- denominator = PyObject_GetAttrString (object, "denom"); +- if (denominator == NULL) ++ is_integer = PyObject_CallMethod (numerator_obj, "is_integer", NULL); ++ if (is_integer != Py_True) { ++ PyErr_Format (PyExc_TypeError, ++ "numerator %f is not an integer.", PyFloat_AsDouble (numerator_obj)); ++ Py_DECREF (is_integer); ++ goto fail; ++ } ++ Py_DECREF (is_integer); ++ ++ numerator = PyFloat_AsDouble (numerator_obj); ++ if (numerator < -G_MAXINT || numerator > G_MAXINT) { ++ PyErr_Format (PyExc_ValueError, ++ "numerator %" G_GINT64_FORMAT " is out of bound. [-%d - %d]", ++ numerator, G_MAXINT, G_MAXINT); ++ goto fail; ++ } ++ ++ denominator_obj = PyObject_GetAttrString (object, "denom"); ++ if (denominator_obj == NULL) + goto fail; + +- gst_value_set_fraction (value, +- PyLong_AsLong (numerator), PyLong_AsLong (denominator)); ++ is_integer = PyObject_CallMethod (denominator_obj, "is_integer", NULL); ++ if (is_integer != Py_True) { ++ PyErr_Format (PyExc_TypeError, ++ "denominator %f is not an integer.", ++ PyFloat_AsDouble (denominator_obj)); ++ Py_DECREF (is_integer); ++ goto fail; ++ } ++ Py_DECREF (is_integer); ++ ++ denominator = PyFloat_AsDouble (denominator_obj); ++ if (denominator == 0) { ++ PyErr_SetString (PyExc_ValueError, "denominator is 0."); ++ goto fail; ++ } ++ ++ if (denominator < -G_MAXINT || denominator > G_MAXINT) { ++ PyErr_Format (PyExc_ValueError, ++ "denominator %" G_GINT64_FORMAT " is out of bound. [-%d - %d]", ++ denominator, G_MAXINT, G_MAXINT); ++ goto fail; ++ } ++ ++ gst_value_set_fraction (value, numerator, denominator); + + return 0; + diff --git a/dev-python/gst-python/gst-python-1.18.4.ebuild b/dev-python/gst-python/gst-python-1.18.4.ebuild index c9086a2cbfc8..9fe1069cd8a5 100644 --- a/dev-python/gst-python/gst-python-1.18.4.ebuild +++ b/dev-python/gst-python/gst-python-1.18.4.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -26,6 +26,10 @@ BDEPEND=" virtual/pkgconfig " +PATCHES=( + "${FILESDIR}/${P}-avoid-treating-float-as-int.patch" +) + src_prepare() { default diff --git a/dev-python/h2/h2-4.1.0.ebuild b/dev-python/h2/h2-4.1.0.ebuild index 6bed58359deb..83945b9966f8 100644 --- a/dev-python/h2/h2-4.1.0.ebuild +++ b/dev-python/h2/h2-4.1.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -12,7 +12,7 @@ SRC_URI="https://github.com/python-hyper/${PN}/archive/v${PV}.tar.gz -> ${P}.tar LICENSE="MIT" SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86" RDEPEND=" >=dev-python/hyperframe-6.0[${PYTHON_USEDEP}] diff --git a/dev-python/jschema_to_python/jschema_to_python-1.2.3.ebuild b/dev-python/jschema_to_python/jschema_to_python-1.2.3.ebuild index 4e740807b2bc..d633a510bd49 100644 --- a/dev-python/jschema_to_python/jschema_to_python-1.2.3.ebuild +++ b/dev-python/jschema_to_python/jschema_to_python-1.2.3.ebuild @@ -1,4 +1,4 @@ -# Copyright 2021 Gentoo Authors +# Copyright 2021-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -14,7 +14,7 @@ SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz" LICENSE="MIT" SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~riscv x86" +KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~riscv x86" RDEPEND=" dev-python/attrs[${PYTHON_USEDEP}] diff --git a/dev-python/jsondiff/jsondiff-1.3.1.ebuild b/dev-python/jsondiff/jsondiff-1.3.1.ebuild index 4568a751c191..b6e040490c42 100644 --- a/dev-python/jsondiff/jsondiff-1.3.1.ebuild +++ b/dev-python/jsondiff/jsondiff-1.3.1.ebuild @@ -17,7 +17,7 @@ SRC_URI=" LICENSE="MIT" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86 ~amd64-linux ~x86-linux" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux" BDEPEND=" test? ( diff --git a/dev-python/jsonpickle/jsonpickle-2.1.0.ebuild b/dev-python/jsonpickle/jsonpickle-2.1.0.ebuild index 62fc4fb3b79f..065c4d04d11b 100644 --- a/dev-python/jsonpickle/jsonpickle-2.1.0.ebuild +++ b/dev-python/jsonpickle/jsonpickle-2.1.0.ebuild @@ -12,7 +12,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="BSD" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86 ~amd64-linux ~x86-linux" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux" BDEPEND=" dev-python/setuptools_scm[${PYTHON_USEDEP}] diff --git a/dev-python/junit-xml/junit-xml-1.9.ebuild b/dev-python/junit-xml/junit-xml-1.9.ebuild index 3863657393bd..35b53735c64f 100644 --- a/dev-python/junit-xml/junit-xml-1.9.ebuild +++ b/dev-python/junit-xml/junit-xml-1.9.ebuild @@ -1,4 +1,4 @@ -# Copyright 2021 Gentoo Authors +# Copyright 2021-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -21,7 +21,7 @@ S=${WORKDIR}/python-junit-xml-${EGIT_COMMIT} LICENSE="MIT" SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~riscv x86" +KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~riscv x86" RDEPEND="dev-python/six[${PYTHON_USEDEP}]" diff --git a/dev-python/jupyter_packaging/jupyter_packaging-0.11.1.ebuild b/dev-python/jupyter_packaging/jupyter_packaging-0.11.1.ebuild index ba8b75fef48c..72eb31a1e97e 100644 --- a/dev-python/jupyter_packaging/jupyter_packaging-0.11.1.ebuild +++ b/dev-python/jupyter_packaging/jupyter_packaging-0.11.1.ebuild @@ -13,7 +13,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="BSD" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~x86" RDEPEND=" dev-python/packaging[${PYTHON_USEDEP}] diff --git a/dev-python/libnacl/libnacl-1.7.2-r1.ebuild b/dev-python/libnacl/libnacl-1.7.2-r1.ebuild index 570ef95170b6..2ab0b709818b 100644 --- a/dev-python/libnacl/libnacl-1.7.2-r1.ebuild +++ b/dev-python/libnacl/libnacl-1.7.2-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 diff --git a/dev-python/locket/locket-0.2.1.ebuild b/dev-python/locket/locket-0.2.1.ebuild index d2e5667a4eba..72b2c70c58d0 100644 --- a/dev-python/locket/locket-0.2.1.ebuild +++ b/dev-python/locket/locket-0.2.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -16,7 +16,7 @@ S=${WORKDIR}/${MY_P} LICENSE="BSD" SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~riscv x86 ~amd64-linux ~x86-linux" +KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~riscv x86 ~amd64-linux ~x86-linux" BDEPEND=" test? ( dev-python/spur[${PYTHON_USEDEP}] )" diff --git a/dev-python/moto/moto-3.0.1.ebuild b/dev-python/moto/moto-3.0.1.ebuild index d598806fc275..f86288652a6e 100644 --- a/dev-python/moto/moto-3.0.1.ebuild +++ b/dev-python/moto/moto-3.0.1.ebuild @@ -13,7 +13,7 @@ SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" LICENSE="Apache-2.0" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" RDEPEND=" >=dev-python/aws-xray-sdk-python-0.93[${PYTHON_USEDEP}] diff --git a/dev-python/mypy/mypy-0.930.ebuild b/dev-python/mypy/mypy-0.930.ebuild index d4297bf9617d..de7e1b99ebac 100644 --- a/dev-python/mypy/mypy-0.930.ebuild +++ b/dev-python/mypy/mypy-0.930.ebuild @@ -12,7 +12,7 @@ SRC_URI="https://github.com/python/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" LICENSE="MIT" SLOT="0" -KEYWORDS="~alpha amd64 ~arm arm64 hppa ~ia64 ~mips ppc ~ppc64 ~riscv ~s390 sparc ~x86" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc ~x86" # stubgen collides with this package: https://bugs.gentoo.org/585594 RDEPEND=" diff --git a/dev-python/nest_asyncio/nest_asyncio-1.5.4.ebuild b/dev-python/nest_asyncio/nest_asyncio-1.5.4.ebuild index 4feef72f4323..6ec6da5dc6d4 100644 --- a/dev-python/nest_asyncio/nest_asyncio-1.5.4.ebuild +++ b/dev-python/nest_asyncio/nest_asyncio-1.5.4.ebuild @@ -12,6 +12,6 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="BSD-2" SLOT="0" -KEYWORDS="amd64 arm arm64 hppa ~ia64 ppc ppc64 ~riscv ~s390 sparc x86" +KEYWORDS="amd64 arm arm64 hppa ~ia64 ~m68k ppc ppc64 ~riscv ~s390 sparc x86" distutils_enable_tests pytest diff --git a/dev-python/networkx/networkx-2.6.3.ebuild b/dev-python/networkx/networkx-2.6.3.ebuild index 39a7d261da7f..eb89b349885a 100644 --- a/dev-python/networkx/networkx-2.6.3.ebuild +++ b/dev-python/networkx/networkx-2.6.3.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -12,7 +12,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="BSD" SLOT="0" -KEYWORDS="amd64 arm arm64 ~riscv x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" +KEYWORDS="amd64 arm arm64 ~ppc64 ~riscv x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" BDEPEND=" test? ( diff --git a/dev-python/nose-random/nose-random-1.0.0.ebuild b/dev-python/nose-random/nose-random-1.0.0.ebuild index cff5801c6948..8d051213142b 100644 --- a/dev-python/nose-random/nose-random-1.0.0.ebuild +++ b/dev-python/nose-random/nose-random-1.0.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 2021 Gentoo Authors +# Copyright 2021-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -13,7 +13,7 @@ SRC_URI="https://github.com/fzumstein/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" LICENSE="MIT" SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~riscv x86" +KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~riscv x86" RDEPEND="dev-python/nose[${PYTHON_USEDEP}]" diff --git a/dev-python/nose_warnings_filters/nose_warnings_filters-0.1.5-r3.ebuild b/dev-python/nose_warnings_filters/nose_warnings_filters-0.1.5-r3.ebuild index efd20727ed49..72f3389ee8bd 100644 --- a/dev-python/nose_warnings_filters/nose_warnings_filters-0.1.5-r3.ebuild +++ b/dev-python/nose_warnings_filters/nose_warnings_filters-0.1.5-r3.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -12,7 +12,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="MIT" SLOT="0" -KEYWORDS="amd64 arm arm64 hppa ~ia64 ppc ppc64 ~riscv ~s390 sparc x86" +KEYWORDS="amd64 arm arm64 hppa ~ia64 ~m68k ppc ppc64 ~riscv ~s390 sparc x86" RDEPEND="dev-python/nose[${PYTHON_USEDEP}]" diff --git a/dev-python/notebook/notebook-6.4.8.ebuild b/dev-python/notebook/notebook-6.4.8.ebuild index db131c444e9f..126cfcc3be2c 100644 --- a/dev-python/notebook/notebook-6.4.8.ebuild +++ b/dev-python/notebook/notebook-6.4.8.ebuild @@ -15,7 +15,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="BSD" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~x86" RDEPEND=" >=dev-libs/mathjax-2.4 diff --git a/dev-python/pandocfilters/pandocfilters-1.5.0.ebuild b/dev-python/pandocfilters/pandocfilters-1.5.0.ebuild index 74a603dd6aeb..dd876dbe0577 100644 --- a/dev-python/pandocfilters/pandocfilters-1.5.0.ebuild +++ b/dev-python/pandocfilters/pandocfilters-1.5.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -12,4 +12,4 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="BSD" SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 hppa ~ia64 ppc ~ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux" +KEYWORDS="amd64 ~arm ~arm64 hppa ~ia64 ~m68k ppc ~ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux" diff --git a/dev-python/partd/partd-1.2.0.ebuild b/dev-python/partd/partd-1.2.0.ebuild index f1ac49c8f091..05badbe2fc9a 100644 --- a/dev-python/partd/partd-1.2.0.ebuild +++ b/dev-python/partd/partd-1.2.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -12,7 +12,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="BSD" SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~riscv x86 ~amd64-linux ~x86-linux" +KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~riscv x86 ~amd64-linux ~x86-linux" RDEPEND="dev-python/locket[${PYTHON_USEDEP}]" BDEPEND=" diff --git a/dev-python/pebble/pebble-4.6.3.ebuild b/dev-python/pebble/pebble-4.6.3.ebuild index c3510745777e..37bdd6b446a2 100644 --- a/dev-python/pebble/pebble-4.6.3.ebuild +++ b/dev-python/pebble/pebble-4.6.3.ebuild @@ -1,4 +1,4 @@ -# Copyright 2020-2021 Gentoo Authors +# Copyright 2020-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -17,6 +17,6 @@ S=${WORKDIR}/${P^} LICENSE="LGPL-3+" SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 hppa ~ia64 ppc ~ppc64 ~s390 ~sparc x86" +KEYWORDS="amd64 ~arm ~arm64 hppa ~ia64 ~m68k ppc ~ppc64 ~s390 ~sparc x86" distutils_enable_tests pytest diff --git a/dev-python/pretty-yaml/pretty-yaml-21.10.1.ebuild b/dev-python/pretty-yaml/pretty-yaml-21.10.1.ebuild index eb7fb6904b52..932f31acd074 100644 --- a/dev-python/pretty-yaml/pretty-yaml-21.10.1.ebuild +++ b/dev-python/pretty-yaml/pretty-yaml-21.10.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -14,7 +14,7 @@ S=${WORKDIR}/${MY_P} LICENSE="WTFPL-2" SLOT="0" -KEYWORDS="amd64 arm ~arm64 ~riscv x86" +KEYWORDS="amd64 arm ~arm64 ~ppc64 ~riscv x86" IUSE="test" RESTRICT="!test? ( test )" diff --git a/dev-python/prometheus_client/Manifest b/dev-python/prometheus_client/Manifest index c854755c9683..11b34cbe7c74 100644 --- a/dev-python/prometheus_client/Manifest +++ b/dev-python/prometheus_client/Manifest @@ -1,2 +1,3 @@ DIST prometheus_client-0.12.0.tar.gz 73521 BLAKE2B eb90c7f3991519fe132f01612d6aadd10193947069b79e67c9e37faa4e174d739ca78b12de028dfc922cb368c7405baeb4fa929b378a91db12e67190ca3561ff SHA512 ebcbbed706a96a9402eb985f5da15ee8fae09de952144a89a3323e147c0d16615ccd9be58b50b5b8ede37d4f66de1e2ce93ed53c4da939ca2e44c7aac687a1f7 DIST prometheus_client-0.13.0.tar.gz 73277 BLAKE2B 547966c22efdaaa76b821918e8e22ebc14f3a43b7f712c6c8be13d0a6ab3d94d56dd92576e63d1a9a0ba62a5ff662b717c5b6294f48a5e28fd40dfe4693706a2 SHA512 4991e534a78b08686f46ff7214cf2e19a97e302977a696460adfde1e0245d4cc115502a2cc9cb5d5f34401712ab6f84f9b77bb0f88aefaf9c534eadfe66803f3 +DIST prometheus_client-0.13.1.gh.tar.gz 73480 BLAKE2B 53b2572373024a452731c055fc115ddb3c029b905d455cf9dc6289af91866c13187e58008770aa20969b371cd0852ef20651603e153195fb4658d21a628df5a3 SHA512 8d5263ff00fc4797fa65a446bdab4dc3c717cc091f8cee571fdd2130febc480cc61e73e11145ac2bf9bc0eee132efc92d88a4d4facd61d515234748791a92255 diff --git a/dev-python/prometheus_client/prometheus_client-0.13.1.ebuild b/dev-python/prometheus_client/prometheus_client-0.13.1.ebuild new file mode 100644 index 000000000000..5096074f26e2 --- /dev/null +++ b/dev-python/prometheus_client/prometheus_client-0.13.1.ebuild @@ -0,0 +1,24 @@ +# 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_{6,7,8,9,10} ) +inherit distutils-r1 + +DESCRIPTION="Python client for the Prometheus monitoring system" +HOMEPAGE="https://pypi.org/project/prometheus-client/ + https://github.com/prometheus/client_python/" +SRC_URI=" + https://github.com/prometheus/client_python/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz" +S="${WORKDIR}/client_python-${PV}" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND="dev-python/twisted[${PYTHON_USEDEP}]" + +distutils_enable_tests pytest diff --git a/dev-python/pyclipper/Manifest b/dev-python/pyclipper/Manifest index b610642b41d5..d72b67e33a76 100644 --- a/dev-python/pyclipper/Manifest +++ b/dev-python/pyclipper/Manifest @@ -1,2 +1 @@ -DIST pyclipper-1.3.0.tar.gz 51405 BLAKE2B a7a3e81452c8178d907528b7595fb92521dfb039a6ea116d7f189639ea2975d8058ac1f685a211c98be921c41a694d89f7f431264dfe366e3acc842b25d670f4 SHA512 bee6c5f835e84baa65cbca1d812219bd94272010bbeed365b3835ef3d191042129fdcccdd85ce7841f60f46cbfd52edd270d108ff81d64b0ca712c1369394d40 DIST pyclipper-1.3.0_p2.tar.gz 51079 BLAKE2B e5af84c15a19bf2ac7f0df78d588d34451c6f0a0bc40fa6a28dd8ef5f697e1d62eb4e14ac184e325ce4d6ad1aab23254d6e91857e3a44636a1652f86aa1778e9 SHA512 08b7f8443b0e98ddf7230824a451b0b0023402c4cecb44c1a264e08d204a3da455aef742b2ffcc0acf44a4ec3b864302af0d7a7ec34bb6a2080340b2320797dd diff --git a/dev-python/pyclipper/pyclipper-1.3.0.ebuild b/dev-python/pyclipper/pyclipper-1.3.0.ebuild deleted file mode 100644 index 17e2f2f89d72..000000000000 --- a/dev-python/pyclipper/pyclipper-1.3.0.ebuild +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{6,7,8,9,10} ) -inherit distutils-r1 - -DESCRIPTION="Cython wrapper for the C++ translation of the Angus Johnson's Clipper library" -HOMEPAGE="https://github.com/fonttools/pyclipper" -SRC_URI="https://github.com/fonttools/pyclipper/archive/${PV/_p/.post}.tar.gz -> ${P}.tar.gz" -S="${WORKDIR}/${P/_p/.post}" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="amd64 ~arm arm64 ~ppc64 ~riscv x86" -IUSE="" - -BDEPEND=" - dev-python/cython[${PYTHON_USEDEP}] - dev-python/setuptools_scm[${PYTHON_USEDEP}] -" - -distutils_enable_tests pytest - -src_prepare() { - sed -i -e 's:from unittest2:from unittest:' tests/test_pyclipper.py || die - distutils-r1_src_prepare - export SETUPTOOLS_SCM_PRETEND_VERSION="${PV/_p/.post}" -} diff --git a/dev-python/pytest-mock/Manifest b/dev-python/pytest-mock/Manifest index c05c153f9057..ca407a500dc0 100644 --- a/dev-python/pytest-mock/Manifest +++ b/dev-python/pytest-mock/Manifest @@ -1 +1,2 @@ DIST pytest-mock-3.6.1.tar.gz 29933 BLAKE2B 6c22d23f3a8e9b5ef26f990325f5a2c2897b60f61f84472716a1f984e72a8c38f6992e439ef581d7772e25a5fe9e76d190697d9c7bc8b5dcbf6375bead4b3dc3 SHA512 50a8ffbac1b20b1962558789b24d50c1e7d8d2e2706ee15a576eb5fd1b40d4523482dce7a1078d532b686ff8d38b6d769d356b04241528a0196e14acae0b6199 +DIST pytest-mock-3.7.0.tar.gz 29311 BLAKE2B 27227b66008c70c4016c8e15d0021a67e84730a8b49c5664dc4f29e16d5f163df293269ab332707e44b7a0b182e15e20ab0ebaf4b9d923eb911083377972dad1 SHA512 6ba69e86bac8a430a9f1f1c615ad21f505b87848ac50fc551bc02f81306bf8769fd015615d96085d87d4c695c24b0686a95116721358687b48b64de5d0ae6901 diff --git a/dev-python/pytest-mock/pytest-mock-3.7.0.ebuild b/dev-python/pytest-mock/pytest-mock-3.7.0.ebuild new file mode 100644 index 000000000000..fa147ecc8ec5 --- /dev/null +++ b/dev-python/pytest-mock/pytest-mock-3.7.0.ebuild @@ -0,0 +1,39 @@ +# 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_{6,7,8,9,10} pypy3 ) +inherit distutils-r1 + +DESCRIPTION="Thin-wrapper around the mock package for easier use with pytest" +HOMEPAGE="https://github.com/pytest-dev/pytest-mock/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos" + +RDEPEND=" + >=dev-python/pytest-6[${PYTHON_USEDEP}]" +BDEPEND=" + dev-python/setuptools_scm[${PYTHON_USEDEP}] + test? ( + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + )" + +distutils_enable_tests pytest + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local -x PYTEST_PLUGINS=pytest_mock,pytest_asyncio.plugin + + if has_version dev-python/mock; then + local EPYTEST_DESELECT=( + tests/test_pytest_mock.py::test_standalone_mock + ) + fi + + epytest --assert=plain +} diff --git a/dev-python/pytest/files/pytest-6.2.5-py310.patch b/dev-python/pytest/files/pytest-6.2.5-py310.patch new file mode 100644 index 000000000000..89ca41954273 --- /dev/null +++ b/dev-python/pytest/files/pytest-6.2.5-py310.patch @@ -0,0 +1,81 @@ +From 5082686349185ef35f64d1a998a3062ee5a48771 Mon Sep 17 00:00:00 2001 +From: Ran Benita <ran@unusedvar.com> +Date: Thu, 13 May 2021 17:27:43 +0300 +Subject: [PATCH 1/2] Merge pull request #8664 from + hroncok/test_unittest-ignore_DeprecationWarning-from-twisted + +Ignore DeprecationWarnings in test_trial_error + +(cherry picked from commit 850a8447792f89c7d38c72b2f542536655ab0354) +--- + testing/test_unittest.py | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/testing/test_unittest.py b/testing/test_unittest.py +index 8b00cb826..de8fc5c55 100644 +--- a/testing/test_unittest.py ++++ b/testing/test_unittest.py +@@ -533,7 +533,9 @@ class TestTrialUnittest: + # will crash both at test time and at teardown + """ + ) +- result = testdir.runpytest("-vv", "-oconsole_output_style=classic") ++ result = testdir.runpytest( ++ "-vv", "-oconsole_output_style=classic", "-W", "ignore::DeprecationWarning" ++ ) + result.stdout.fnmatch_lines( + [ + "test_trial_error.py::TC::test_four FAILED", +-- +2.35.0 + +From 932792c22a300fc7794f966851df2b996f4a79bc Mon Sep 17 00:00:00 2001 +From: Bruno Oliveira <nicoddemus@gmail.com> +Date: Thu, 16 Dec 2021 10:37:52 -0300 +Subject: [PATCH 2/2] Merge pull request #9417 from + nicoddemus/fix-py3.10.1-9413 + +(cherry picked from commit 47df71d23ff13bd083b21ffcf839bd11169b42fc) +--- + .github/workflows/main.yml | 4 ++-- + testing/test_skipping.py | 2 -- + 2 files changed, 2 insertions(+), 4 deletions(-) + +diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml +index 5a9435357..a8a6406c6 100644 +--- a/.github/workflows/main.yml ++++ b/.github/workflows/main.yml +@@ -75,7 +75,7 @@ jobs: + os: windows-latest + tox_env: "py39-xdist" + - name: "windows-py310" +- python: "3.10-dev" ++ python: "3.10.1" + os: windows-latest + tox_env: "py310-xdist" + +@@ -105,7 +105,7 @@ jobs: + os: ubuntu-latest + tox_env: "py39-xdist" + - name: "ubuntu-py310" +- python: "3.10-dev" ++ python: "3.10.1" + os: ubuntu-latest + tox_env: "py310-xdist" + - name: "ubuntu-pypy3" +diff --git a/testing/test_skipping.py b/testing/test_skipping.py +index 3cb8bdff2..487793645 100644 +--- a/testing/test_skipping.py ++++ b/testing/test_skipping.py +@@ -1126,8 +1126,6 @@ def test_errors_in_xfail_skip_expressions(pytester: Pytester) -> None: + pypy_version_info = getattr(sys, "pypy_version_info", None) + if pypy_version_info is not None and pypy_version_info < (6,): + markline = markline[5:] +- elif sys.version_info[:2] >= (3, 10): +- markline = markline[11:] + elif sys.version_info >= (3, 8) or hasattr(sys, "pypy_version_info"): + markline = markline[4:] + +-- +2.35.0 + diff --git a/dev-python/pytest/pytest-6.2.5-r2.ebuild b/dev-python/pytest/pytest-6.2.5-r2.ebuild index 25f0730ecc8f..a1f6fc0ae42a 100644 --- a/dev-python/pytest/pytest-6.2.5-r2.ebuild +++ b/dev-python/pytest/pytest-6.2.5-r2.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 ) -inherit distutils-r1 +inherit distutils-r1 multiprocessing DESCRIPTION="Simple powerful testing with Python" HOMEPAGE="https://pytest.org/" @@ -33,10 +33,16 @@ BDEPEND=" >=dev-python/hypothesis-3.56[${PYTHON_USEDEP}] dev-python/mock[${PYTHON_USEDEP}] dev-python/nose[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] dev-python/requests[${PYTHON_USEDEP}] dev-python/xmlschema[${PYTHON_USEDEP}] )" +PATCHES=( + # backport fixes for py3.10 test regressions + "${FILESDIR}"/${P}-py310.patch +) + src_test() { # workaround new readline defaults echo "set enable-bracketed-paste off" > "${T}"/inputrc || die @@ -47,6 +53,25 @@ src_test() { python_test() { distutils_install_for_testing --via-root - "${EPYTHON}" -m pytest -vv --lsof -rfsxX -p no:pkgcore -p no:flaky || - die "Tests failed with ${EPYTHON}" + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + + local EPYTEST_DESELECT=( + # broken by epytest args + testing/test_warnings.py::test_works_with_filterwarnings + + # tend to be broken by random pytest plugins + # (these tests patch PYTEST_DISABLE_PLUGIN_AUTOLOAD out) + testing/test_helpconfig.py::test_version_less_verbose + testing/test_helpconfig.py::test_version_verbose + testing/test_junitxml.py::test_random_report_log_xdist + testing/test_junitxml.py::test_runs_twice_xdist + testing/test_terminal.py::TestProgressOutputStyle::test_xdist_normal + testing/test_terminal.py::TestProgressOutputStyle::test_xdist_normal_count + testing/test_terminal.py::TestProgressOutputStyle::test_xdist_verbose + testing/test_terminal.py::TestProgressWithTeardown::test_xdist_normal + testing/test_terminal.py::TestTerminalFunctional::test_header_trailer_info + testing/test_terminal.py::TestTerminalFunctional::test_no_header_trailer_info + ) + + epytest -p xdist -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" } diff --git a/dev-python/pytest/pytest-6.2.5-r3.ebuild b/dev-python/pytest/pytest-6.2.5-r3.ebuild new file mode 100644 index 000000000000..8b778ee20577 --- /dev/null +++ b/dev-python/pytest/pytest-6.2.5-r3.ebuild @@ -0,0 +1,80 @@ +# 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_{6,7,8,9,10} pypy3 ) + +inherit distutils-r1 multiprocessing + +DESCRIPTION="Simple powerful testing with Python" +HOMEPAGE="https://pytest.org/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}] + dev-python/iniconfig[${PYTHON_USEDEP}] + >=dev-python/more-itertools-4.0.0[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] + >=dev-python/pluggy-0.12[${PYTHON_USEDEP}] + >=dev-python/py-1.8.2[${PYTHON_USEDEP}] + dev-python/toml[${PYTHON_USEDEP}] +" +BDEPEND=" + >=dev-python/setuptools_scm-3.4[${PYTHON_USEDEP}] + test? ( + ${RDEPEND} + dev-python/argcomplete[${PYTHON_USEDEP}] + >=dev-python/hypothesis-3.56[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + dev-python/nose[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/xmlschema[${PYTHON_USEDEP}] + )" + +PATCHES=( + # backport fixes for py3.10 test regressions + "${FILESDIR}"/${P}-py310.patch +) + +src_test() { + # workaround new readline defaults + echo "set enable-bracketed-paste off" > "${T}"/inputrc || die + local -x INPUTRC="${T}"/inputrc + distutils-r1_src_test +} + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + + local EPYTEST_DESELECT=( + # broken by epytest args + testing/test_warnings.py::test_works_with_filterwarnings + + # tend to be broken by random pytest plugins + # (these tests patch PYTEST_DISABLE_PLUGIN_AUTOLOAD out) + testing/test_helpconfig.py::test_version_less_verbose + testing/test_helpconfig.py::test_version_verbose + testing/test_junitxml.py::test_random_report_log_xdist + testing/test_junitxml.py::test_runs_twice_xdist + testing/test_terminal.py::TestProgressOutputStyle::test_xdist_normal + testing/test_terminal.py::TestProgressOutputStyle::test_xdist_normal_count + testing/test_terminal.py::TestProgressOutputStyle::test_xdist_verbose + testing/test_terminal.py::TestProgressWithTeardown::test_xdist_normal + testing/test_terminal.py::TestTerminalFunctional::test_header_trailer_info + testing/test_terminal.py::TestTerminalFunctional::test_no_header_trailer_info + + # unstable with xdist + testing/test_terminal.py::TestTerminalFunctional::test_verbose_reporting_xdist + ) + + epytest -p xdist -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" +} diff --git a/dev-python/python-jose/python-jose-3.3.0.ebuild b/dev-python/python-jose/python-jose-3.3.0.ebuild index d6829a96e9b0..3b10727e89f0 100644 --- a/dev-python/python-jose/python-jose-3.3.0.ebuild +++ b/dev-python/python-jose/python-jose-3.3.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -13,7 +13,7 @@ SRC_URI="https://github.com/mpdavis/python-jose/archive/${PV}.tar.gz -> ${P}.tar LICENSE="MIT" SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~riscv x86 ~amd64-linux ~x86-linux" +KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~riscv x86 ~amd64-linux ~x86-linux" # TODO: require only one crypto backend? RDEPEND=" diff --git a/dev-python/python-lzo/Manifest b/dev-python/python-lzo/Manifest index 161089c5e52d..68338d30a0d2 100644 --- a/dev-python/python-lzo/Manifest +++ b/dev-python/python-lzo/Manifest @@ -1,2 +1 @@ -DIST python-lzo-1.12.tar.gz 14042 BLAKE2B 7375e9b200a17cc1ad2c4dfdbe6491082af8d120b2b659b1e9bbff00eaae568e04dc12e5c13de3a028267a1e8e02bd1522a9335db73fa6a5a4ebc7ca4b341fff SHA512 811bdb282cfaf33427ad641d0342900c5af1f17b7033d76593288c3846b0feefe6ef93253152add97b2d6420f937de2745c8e7508dadf33e72b11545cac3be4d DIST python-lzo-1.14.tar.gz 14050 BLAKE2B e1df6b842562064ca13ddbacb194047ca343694d480a5a65e7d2876ec98a4215b4badb3b2a839f308dea8624c162a0536f363c093bcb2e5b48c68b69fb472729 SHA512 036cf7199afe12cec8b9c7ee92134f58357e1f892870ade3a619541a69c9cc92155892d53bd43330732b848016c2997e096a9a492e52f15d04fa516ca7645b93 diff --git a/dev-python/python-lzo/files/python-lzo-1.12-fix-py3.10.patch b/dev-python/python-lzo/files/python-lzo-1.12-fix-py3.10.patch deleted file mode 100644 index 17bad96d6278..000000000000 --- a/dev-python/python-lzo/files/python-lzo-1.12-fix-py3.10.patch +++ /dev/null @@ -1,159 +0,0 @@ -diff --git a/lzomodule.c b/lzomodule.c -index b5fa542..e9ca432 100644 ---- a/lzomodule.c -+++ b/lzomodule.c -@@ -31,6 +31,8 @@ - - #define MODULE_VERSION "1.12" - -+#define PY_SSIZE_T_CLEAN -+ - #include <Python.h> - #include <lzo/lzo1x.h> - -@@ -83,7 +85,7 @@ compress(PyObject *dummy, PyObject *args) - lzo_uint in_len; - lzo_uint out_len; - lzo_uint new_len; -- int len; -+ Py_ssize_t len; - int level = 1; - int header = 1; - int err; -@@ -95,6 +97,16 @@ compress(PyObject *dummy, PyObject *args) - if (len < 0) - return NULL; - -+ if (len > LZO_UINT_MAX) { -+ PyErr_SetString(LzoError, "Input size is larger than LZO_UINT_MAX"); -+ return NULL; -+ } -+ -+ if ((len + len / 16 + 64 + 3) > LZO_UINT_MAX) { -+ PyErr_SetString(LzoError, "Output size is larger than LZO_UINT_MAX"); -+ return NULL; -+ } -+ - in_len = len; - out_len = in_len + in_len / 16 + 64 + 3; - -@@ -189,7 +201,7 @@ decompress(PyObject *dummy, PyObject *args) - lzo_uint in_len; - lzo_uint out_len; - lzo_uint new_len; -- int len; -+ Py_ssize_t len; - int buflen = -1; - int header = 1; - int err; -@@ -274,7 +286,7 @@ optimize(PyObject *dummy, PyObject *args) - lzo_uint in_len; - lzo_uint out_len; - lzo_uint new_len; -- int len; -+ Py_ssize_t len; - int err; - int header = 1; - int buflen = -1; -@@ -356,7 +368,7 @@ static PyObject * - adler32(PyObject *dummy, PyObject *args) - { - char *buf; -- int len; -+ Py_ssize_t len; - unsigned long val = 1; /* == lzo_adler32(0, NULL, 0); */ - - UNUSED(dummy); -@@ -392,7 +404,7 @@ static PyObject * - crc32(PyObject *dummy, PyObject *args) - { - char *buf; -- int len; -+ Py_ssize_t len; - unsigned long val = 0; /* == lzo_crc32(0, NULL, 0); */ - - UNUSED(dummy); -diff --git a/tests/test.py b/tests/test.py -index 9a96ce7..af761d9 100644 ---- a/tests/test.py -+++ b/tests/test.py -@@ -96,11 +96,17 @@ def test_version(): - - def test_lzo(): - yield gen, b"aaaaaaaaaaaaaaaaaaaaaaaa" -- yield gen_raw, b"aaaaaaaaaaaaaaaaaaaaaaaa" - yield gen, b"abcabcabcabcabcabcabcabc" -- yield gen_raw, b"abcabcabcabcabcabcabcabc" - yield gen, b"abcabcabcabcabcabcabcabc", 9 -+ -+ -+def test_lzo_raw(): -+ yield gen_raw, b"aaaaaaaaaaaaaaaaaaaaaaaa" -+ yield gen_raw, b"abcabcabcabcabcabcabcabc" - yield gen_raw, b"abcabcabcabcabcabcabcabc", 9 -+ -+ -+def test_lzo_empty(): - yield gen, b"" - yield gen_raw, b"" - -@@ -113,41 +119,8 @@ def test_lzo_raw_big(): - gen_raw(b" " * 131072) - - --def main(args): -- # display version information and module documentation -- print("LZO version %s (0x%x), %s" % (lzo.LZO_VERSION_STRING, lzo.LZO_VERSION, lzo.LZO_VERSION_DATE)) -- print(lzo.__file__) -- print() -- print(lzo.__doc__) -- -- # display additional module information -- ## print dir(lzo) -- ## print_modinfo() -- -- # compress some simple strings -- gen(b"aaaaaaaaaaaaaaaaaaaaaaaa") -- gen_raw(b"aaaaaaaaaaaaaaaaaaaaaaaa") -- gen(b"abcabcabcabcabcabcabcabc") -- gen_raw(b"abcabcabcabcabcabcabcabc") -- gen(b"abcabcabcabcabcabcabcabc", level=9) -- gen_raw(b"abcabcabcabcabcabcabcabc", level=9) -- gen(b" " * 131072) -- gen_raw(b" " * 131072) -- gen(b"") -- gen_raw(b"") -- print("Simple compression test passed.") -- -- test_version() -- -- # force an exception (because of invalid compressed data) -- assert issubclass(lzo.error, Exception) -- try: -- x = lzo.decompress("xx") -- except lzo.error: -- pass -- else: -- print("Exception handling does NOT work !") -- return 0 -- --if __name__ == '__main__': -- sys.exit(main(sys.argv)) -+if sys.maxsize > 1<<32: -+ # This test raises OverflowError on 32-bit Pythons. Compressing -+ # this much data requires a 64-bit system. -+ def test_lzo_compress_extremely_big(): -+ b = lzo.compress(bytes(bytearray((1024**3)*2))) -diff --git a/tests/util.py b/tests/util.py -index 0a2f4ed..c7bd5f0 100644 ---- a/tests/util.py -+++ b/tests/util.py -@@ -45,7 +45,7 @@ def get_sys_path(p=None): - if p: p0 = p[0] - # - plat = get_platform() -- plat_specifier = "%s-%s" % (plat, sys.version[:3]) -+ plat_specifier = "%s-%d.%d" % (plat, sys.version_info[0], sys.version_info[1]) - ##print plat, plat_specifier - # - for prefix in (p0, os.curdir, os.pardir,): diff --git a/dev-python/python-lzo/python-lzo-1.12-r2.ebuild b/dev-python/python-lzo/python-lzo-1.12-r2.ebuild deleted file mode 100644 index 0f98d6efdd6c..000000000000 --- a/dev-python/python-lzo/python-lzo-1.12-r2.ebuild +++ /dev/null @@ -1,34 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_SETUPTOOLS=no -PYTHON_COMPAT=( python3_{6,7,8,9,10} ) - -inherit distutils-r1 prefix - -DESCRIPTION="Python interface to lzo" -HOMEPAGE="https://github.com/jd-boyd/python-lzo" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux" - -RDEPEND="dev-libs/lzo:2" -DEPEND="${RDEPEND}" - -# We can't use pytest at the moment because the package uses "yield tests" -# https://docs.pytest.org/en/6.2.x/deprecations.html#yield-tests -distutils_enable_tests --install nose - -PATCHES=( - # Upstream commits: 52440984, e63333e5, 15c40595 and 0a4272fc - "${FILESDIR}/${P}-fix-py3.10.patch" -) - -python_prepare_all() { - hprefixify setup.py - distutils-r1_python_prepare_all -} diff --git a/dev-python/python-sshpubkeys/python-sshpubkeys-3.3.1.ebuild b/dev-python/python-sshpubkeys/python-sshpubkeys-3.3.1.ebuild index 03ac819211ce..25cf2b5d0b1b 100644 --- a/dev-python/python-sshpubkeys/python-sshpubkeys-3.3.1.ebuild +++ b/dev-python/python-sshpubkeys/python-sshpubkeys-3.3.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 2020-2021 Gentoo Authors +# Copyright 2020-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -15,7 +15,7 @@ SRC_URI=" LICENSE="BSD" SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~riscv x86" +KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~riscv x86" RDEPEND=" dev-python/cryptography[${PYTHON_USEDEP}] diff --git a/dev-python/rich/Manifest b/dev-python/rich/Manifest index b00addec007a..440f6f1d5a12 100644 --- a/dev-python/rich/Manifest +++ b/dev-python/rich/Manifest @@ -1,2 +1,3 @@ DIST rich-10.16.2.tar.gz 16282443 BLAKE2B ccc7292e265770880539d6a1a6b2e819b45e2e3d4d152f1a16c56f2da74c9a472ae49ea0a4a677ad71c4dd087fade2c415484073b4b2cd86869ad7c43c32b162 SHA512 9cb8b0c8105589db22d7efdc47cbfa20531cd184f07855db4bfafb667299c7d3e520b19e3b33e7818affb7a5674805849ee9f2e770927e285ccd7f4f838982c3 DIST rich-11.0.0.tar.gz 16293684 BLAKE2B bd38f84a7e0623dc9474bdc369b452fc668cd4756f00f6dd1b185f95dffb3d55f6b95a7f6dfaed5ee1ec5f2d9514af6080835b9ffd010f150005b15afb761d97 SHA512 bf8218ff43a101c4624baff1ecc316eb95912d0b634c41293b44de135ea4c6ead0fa2c6a96ab1403ce4dd80961915dbe7753415a74c7d41fc1f2d227113e9ff3 +DIST rich-11.1.0.gh.tar.gz 16295117 BLAKE2B 1d326edea18b1eaad633665c2e50aa789f9eba19ee9b4cb50b94a160a69d12604fdf87d57ffbc903835b6e1e745fe17e0c521801b515ae73c8a44bf9ef17b6c2 SHA512 9da2015a66e0924bdd04deebd8fe8e963151d0a912f78320f8de8e61d656a693595c4feb0ce2436610602308d690ed96c8d10b5c81a9fc12a350b2e40907dbcb diff --git a/dev-python/rich/rich-11.1.0.ebuild b/dev-python/rich/rich-11.1.0.ebuild new file mode 100644 index 000000000000..48457df4ec7b --- /dev/null +++ b/dev-python/rich/rich-11.1.0.ebuild @@ -0,0 +1,40 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=poetry +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) +inherit distutils-r1 optfeature + +DESCRIPTION="Python library for renrering rich text, tables, etc. to the terminal" +HOMEPAGE="https://github.com/Textualize/rich" +SRC_URI=" + https://github.com/Textualize/${PN}/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86" + +RDEPEND=" + dev-python/colorama[${PYTHON_USEDEP}] + dev-python/commonmark[${PYTHON_USEDEP}] + dev-python/pygments[${PYTHON_USEDEP}]" + +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=( + # check for exact color render string, which changes across pygments bumps + tests/test_syntax.py::test_python_render + tests/test_syntax.py::test_python_render_simple + tests/test_syntax.py::test_python_render_indent_guides + ) + epytest -p no:pytest-qt +} + +pkg_postinst() { + optfeature "integration with HTML widgets for Jupyter" dev-python/ipywidgets +} diff --git a/dev-python/sarif_om/sarif_om-1.0.4.ebuild b/dev-python/sarif_om/sarif_om-1.0.4.ebuild index ec2c9b691cfc..9214b02c9831 100644 --- a/dev-python/sarif_om/sarif_om-1.0.4.ebuild +++ b/dev-python/sarif_om/sarif_om-1.0.4.ebuild @@ -1,4 +1,4 @@ -# Copyright 2021 Gentoo Authors +# Copyright 2021-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -15,7 +15,7 @@ SRC_URI=" LICENSE="MIT" SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~riscv x86" +KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~riscv x86" RDEPEND=" dev-python/attrs[${PYTHON_USEDEP}] diff --git a/dev-python/spur/spur-0.3.22.ebuild b/dev-python/spur/spur-0.3.22.ebuild index 63202d9e17a4..580586b74d63 100644 --- a/dev-python/spur/spur-0.3.22.ebuild +++ b/dev-python/spur/spur-0.3.22.ebuild @@ -1,4 +1,4 @@ -# Copyright 2020-2021 Gentoo Authors +# Copyright 2020-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -16,7 +16,7 @@ S=${WORKDIR}/${MY_P} LICENSE="BSD-2" SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~riscv x86" +KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~riscv x86" RDEPEND=" dev-python/paramiko[${PYTHON_USEDEP}]" diff --git a/dev-python/txrequests/txrequests-0.9.6.ebuild b/dev-python/txrequests/txrequests-0.9.6.ebuild index e9f707fb5bda..f14d836e6cdc 100644 --- a/dev-python/txrequests/txrequests-0.9.6.ebuild +++ b/dev-python/txrequests/txrequests-0.9.6.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 diff --git a/dev-python/ujson/ujson-5.1.0.ebuild b/dev-python/ujson/ujson-5.1.0.ebuild index af27ad74d1e2..ff46a71d025d 100644 --- a/dev-python/ujson/ujson-5.1.0.ebuild +++ b/dev-python/ujson/ujson-5.1.0.ebuild @@ -12,7 +12,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="BSD" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86 ~amd64-linux ~x86-linux" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux" BDEPEND=" dev-python/setuptools_scm[${PYTHON_USEDEP}] diff --git a/dev-python/unidiff/Manifest b/dev-python/unidiff/Manifest index dbb8a8c0378e..c4213bac1720 100644 --- a/dev-python/unidiff/Manifest +++ b/dev-python/unidiff/Manifest @@ -1,2 +1,3 @@ DIST unidiff-0.7.0.tar.gz 18883 BLAKE2B 815c578ea02fb9e8a9a6f79e02ba8c35981f49d93b615d198bf5365df11552da84519a6b732986867dca3c329e7b43e9c79e7b158e17ec6921611a8d80aa3af6 SHA512 4f6f249219e4f36d7f753bb117123c508420ecbe6ef4f78936ceea10a5df00a4177ae45d8a56c62d824ee17ddfbc5a41ffc1f45ce1a7add9692b9c86813c2aac DIST unidiff-0.7.1.tar.gz 19547 BLAKE2B 71d3d8b187846f16e2fc1672c8b2624b4be29ef09b142a2a6c30f32c1812887d764f36ec16cb6d231f32fb84257cdb1abef3c571265f457ad2793bffbd043a74 SHA512 01a2467a10798a5427ae7d40644c881e7ed4775bab5b2bd7948d1153f1941417e2a2fd9beaa313e308900bffe8c8c1cb542d4f18e83786f9638ae20c72f1ad32 +DIST unidiff-0.7.2.tar.gz 19862 BLAKE2B 908bc7f3c33193fb5659add921c6ce4065f10026fa20df2f4bc4eb6fc56ed8d974bed1282351e094b8791103e3b93ad439dd0636fb1dc36ece2e3e62a494bee3 SHA512 fc5465db931384f4744308e155d558998d0ef393d3091e6cb3ac141525a9caf4cb4604ea00bd7f205318280113481fb987076ae6423ea29af685d482a7b3bf41 diff --git a/dev-python/unidiff/unidiff-0.7.2.ebuild b/dev-python/unidiff/unidiff-0.7.2.ebuild new file mode 100644 index 000000000000..27a1b0a5d8dd --- /dev/null +++ b/dev-python/unidiff/unidiff-0.7.2.ebuild @@ -0,0 +1,19 @@ +# 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_{6,7,8,9,10} ) +inherit distutils-r1 + +DESCRIPTION="Unified diff parsing/metadata extraction library" +HOMEPAGE="https://github.com/matiasb/python-unidiff + https://pypi.org/project/unidiff/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +distutils_enable_tests unittest diff --git a/dev-python/waitress/waitress-2.0.0.ebuild b/dev-python/waitress/waitress-2.0.0.ebuild index c014d4abf7f8..59cf0326aab0 100644 --- a/dev-python/waitress/waitress-2.0.0.ebuild +++ b/dev-python/waitress/waitress-2.0.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -15,7 +15,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="ZPL" SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos" distutils_enable_tests pytest diff --git a/dev-python/xmltodict/xmltodict-0.12.0-r1.ebuild b/dev-python/xmltodict/xmltodict-0.12.0-r1.ebuild index 220e6a7184f7..431e4b2599dc 100644 --- a/dev-python/xmltodict/xmltodict-0.12.0-r1.ebuild +++ b/dev-python/xmltodict/xmltodict-0.12.0-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 diff --git a/dev-python/zope-component/zope-component-4.4.1.ebuild b/dev-python/zope-component/zope-component-4.4.1.ebuild index da42d823d54b..36cdcc91a63d 100644 --- a/dev-python/zope-component/zope-component-4.4.1.ebuild +++ b/dev-python/zope-component/zope-component-4.4.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 |
