diff options
Diffstat (limited to 'dev-python')
119 files changed, 1691 insertions, 550 deletions
diff --git a/dev-python/argparse-manpage/Manifest b/dev-python/argparse-manpage/Manifest index 327bbae6cba0..71191cb6e580 100644 --- a/dev-python/argparse-manpage/Manifest +++ b/dev-python/argparse-manpage/Manifest @@ -1 +1,2 @@ DIST argparse-manpage-1.4.tar.gz 33661 BLAKE2B b2f6a0bb7ef3a95470e73c4c94b9fef42f130433d5f91263201d98c0afebd4c3fc38153a172aa86c50a773e3270e1f618083f968bd38a86046362367f2e8c022 SHA512 4756781dbe988541cb0e1fd8a79c4d262c7bf54397fb302ff3ad706e9a896d68f781931e73013cdd7136efc6e46914118b862e0377f49b73fb25b20d0a23744d +DIST argparse-manpage-1.5.tar.gz 34290 BLAKE2B 598a0eb0d4816a764c1ba4093b18e28d7865c9a113db1910793748eb24394636a9e1caad86fef5416933ae5341026048d1e39ce928131a8796a5d66a40e36853 SHA512 bfdea19fa62ac029754d6df26c4fb51c18f7fee4fae681c1117253627e724cf1ff1db5196ad0690fd436cebbe403536905f157cb7eae7be50d321c663b491fd0 diff --git a/dev-python/argparse-manpage/argparse-manpage-1.5.ebuild b/dev-python/argparse-manpage/argparse-manpage-1.5.ebuild new file mode 100644 index 000000000000..7faa4f1c66b4 --- /dev/null +++ b/dev-python/argparse-manpage/argparse-manpage-1.5.ebuild @@ -0,0 +1,18 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) +DISTUTILS_USE_SETUPTOOLS=rdepend +inherit distutils-r1 + +DESCRIPTION="Automatically build man-pages for your Python project" +HOMEPAGE="https://github.com/praiskup/argparse-manpage https://pypi.org/project/argparse-manpage/" +SRC_URI="https://github.com/praiskup/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +distutils_enable_tests pytest diff --git a/dev-python/attrs/Manifest b/dev-python/attrs/Manifest index 6229294990e6..a3541fe64ce9 100644 --- a/dev-python/attrs/Manifest +++ b/dev-python/attrs/Manifest @@ -1,2 +1 @@ -DIST attrs-20.2.0.tar.gz 160604 BLAKE2B 1536366a943aa2d0517e3c0aa71230c378b20e731cbac78d1c5cc96f2500fb30203ee0939e25c80f8216bcc6dc7ed1fdfc2b23ab7f5d7c712fb05f5ba65739b1 SHA512 829030d8c1fe7bffbbb8d70fc56228f4c378d85a24c89d802e51f63a78abbfa24f46f5aa8b56cb7ba26ef0bf1fb272163873c45c994145de0be45b14c6fb29cd DIST attrs-20.3.0.tar.gz 164523 BLAKE2B 66d2e038e485833f5033fbabe2ef9a6565e3f5f5e8530f2c70019e4f5bdfca51083ac6d0bbc9eb765f838070bc90e01db1c83ed6da113ced67300238e12b5f42 SHA512 640532c6b763fd96572e5d85e93c111bebc4c5e0ff9419fe92fb51280f03acb5f9f43339f57d30659e777d5578460675c60ec0a362f9ad433893e3624ce6a931 diff --git a/dev-python/attrs/attrs-20.2.0-r1.ebuild b/dev-python/attrs/attrs-20.2.0-r1.ebuild deleted file mode 100644 index 13b935d6a059..000000000000 --- a/dev-python/attrs/attrs-20.2.0-r1.ebuild +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 1999-2020 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 - -DESCRIPTION="Attributes without boilerplate" -HOMEPAGE=" - https://github.com/python-attrs/attrs - https://attrs.readthedocs.org/ - https://pypi.org/project/attrs/" -SRC_URI="mirror://pypi/${P: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 ~amd64-linux ~x86-linux ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" - -RDEPEND=" - dev-python/zope-interface[${PYTHON_USEDEP}]" -BDEPEND=" - test? ( - $(python_gen_impl_dep sqlite) - >=dev-python/hypothesis-3.6.0[${PYTHON_USEDEP}] - >=dev-python/pytest-4.3.0[${PYTHON_USEDEP}] - )" - -distutils_enable_tests pytest diff --git a/dev-python/attrs/attrs-20.3.0.ebuild b/dev-python/attrs/attrs-20.3.0.ebuild index edeb9628a442..6ba319cb3c63 100644 --- a/dev-python/attrs/attrs-20.3.0.ebuild +++ b/dev-python/attrs/attrs-20.3.0.ebuild @@ -16,7 +16,7 @@ SRC_URI="mirror://pypi/${P: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 ~amd64-linux ~x86-linux ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" RDEPEND=" dev-python/zope-interface[${PYTHON_USEDEP}]" diff --git a/dev-python/autobahn/Manifest b/dev-python/autobahn/Manifest index 7eca849b769a..f773b184fbd8 100644 --- a/dev-python/autobahn/Manifest +++ b/dev-python/autobahn/Manifest @@ -1,2 +1,4 @@ +DIST autobahn-20.12.1.tar.gz 1269156 BLAKE2B ff763accde6a2929fd777364c926132b8317d80f137d67768bf192fb72f45597ac115824783f01debacc773dcc9a60325692ac420e55b6f67f4ebc2cdc6187ae SHA512 df7c7065e050efb5f315055c05aa9b4fcf8636e7208f17b583ed0823a071c6484adcf610308e83df3b5bbb91a4df19266e739abc8405e34483b1bf3d9f2c74c7 +DIST autobahn-20.12.2.tar.gz 1269167 BLAKE2B f6ea51682c13690002796f2a45bd11fc2f8497eeee25a1786e942111f43f9dc1f7f806281e4dc37d1ed0aa302fc5c5e47a55d876e010580d7a08eb5ac7534ed0 SHA512 aa6d5e77ba6129931a07cad13f839d5c76267b8126a05ade4ed1c7183ce019faf6656105a853515b543e5ac34ab20d02821b29aa68eb51c385880ad3919d1dcc DIST autobahn-20.4.3.tar.gz 938992 BLAKE2B 259d18f4aa46f7eaeac75811c1c193f3046aca5c5e37627d9ac62eeaa3dc944d05a8d87a558e241bdef56c799be4d89f65d4c8ee7c1a2be20f892896227eb5f9 SHA512 c34f29951b8f9ff5161851cf3a7e964de136f6091b0231a8e78e7fe74cb085077be5078cee352b2c27412d9aa4303de1eb85aa1890b4fb583575638a9c47c6fb DIST autobahn-20.7.1.tar.gz 1260579 BLAKE2B 925d148836348c068d179d4871267bf79c8c42d27cacc6be09cca11396dbd213a5b86344142df886d4ff69d1214a86b49900ca3552bcdb640377cb0d6af7d0f0 SHA512 e2c241194da90ada86a2804683cb063320f75a69b76ddc016349c11614e7f298619c2eeba4fcccb8f8d65d84375681fb339d9f92f94f45f1015f4f12fa0c39b0 diff --git a/dev-python/autobahn/autobahn-20.12.1.ebuild b/dev-python/autobahn/autobahn-20.12.1.ebuild new file mode 100644 index 000000000000..869a0f56a285 --- /dev/null +++ b/dev-python/autobahn/autobahn-20.12.1.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) +DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit distutils-r1 + +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="crypt scram test xbr" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-python/cbor-1.0.0[${PYTHON_USEDEP}] + >=dev-python/cbor2-5.1.0[${PYTHON_USEDEP}] + >=dev-python/cryptography-2.9.2[${PYTHON_USEDEP}] + >=dev-python/flatbuffers-1.10.0[${PYTHON_USEDEP}] + >=dev-python/lz4-0.7.0[${PYTHON_USEDEP}] + >=dev-python/msgpack-0.6.1[${PYTHON_USEDEP}] + >=dev-python/py-ubjson-0.8.4[${PYTHON_USEDEP}] + >=dev-python/snappy-0.5[${PYTHON_USEDEP}] + >=dev-python/twisted-20.3.0[${PYTHON_USEDEP}] + >=dev-python/txaio-20.4.1[${PYTHON_USEDEP}] + >=dev-python/ujson-2.0.0[${PYTHON_USEDEP}] + >=dev-python/wsaccel-0.6.2[${PYTHON_USEDEP}] + >=dev-python/zope-interface-3.6[${PYTHON_USEDEP}] + crypt? ( + >=dev-python/pyopenssl-16.2.0[${PYTHON_USEDEP}] + >=dev-python/pynacl-1.0.1[${PYTHON_USEDEP}] + >=dev-python/pytrie-0.2[${PYTHON_USEDEP}] + >=dev-python/pyqrcode-1.1.0[${PYTHON_USEDEP}] + >=dev-python/service_identity-18.1.0[${PYTHON_USEDEP}] + ) + scram? ( + dev-python/cffi[${PYTHON_USEDEP}] + dev-python/argon2-cffi[${PYTHON_USEDEP}] + dev-python/passlib[${PYTHON_USEDEP}] + ) + " +BDEPEND=" + test? ( + dev-python/mock[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + >=dev-python/pynacl-1.0.1[${PYTHON_USEDEP}] + >=dev-python/pytrie-0.2[${PYTHON_USEDEP}] + >=dev-python/pyqrcode-1.1.0[${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 + distutils-r1_python_prepare_all +} + +python_test() { + echo "Testing all, cryptosign using twisted" + export USE_TWISTED=true + cd "${BUILD_DIR}"/lib || die + "${EPYTHON}" -m twisted.trial autobahn || die + unset USE_TWISTED + echo "RE-testing cryptosign and component_aio using asyncio" + export USE_ASYNCIO=true + py.test -v autobahn/wamp/test/test_cryptosign.py || die + py.test -v autobahn/wamp/test/test_component_aio.py || die + unset USE_ASYNCIO + rm -r .pytest_cache || die +} + +python_install_all() { + distutils-r1_python_install_all + + # delete the dropin.cache so we don't have collisions if it exists + rm "${D}"/usr/lib*/python*/site-packages/twisted/plugins//dropin.cache > /dev/null +} + +pkg_postinst() { + python_foreach_impl twisted-regen-cache || die +} + +pkg_postrm() { + python_foreach_impl twisted-regen-cache || die +} diff --git a/dev-python/autobahn/autobahn-20.12.2.ebuild b/dev-python/autobahn/autobahn-20.12.2.ebuild new file mode 100644 index 000000000000..869a0f56a285 --- /dev/null +++ b/dev-python/autobahn/autobahn-20.12.2.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) +DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit distutils-r1 + +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="crypt scram test xbr" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-python/cbor-1.0.0[${PYTHON_USEDEP}] + >=dev-python/cbor2-5.1.0[${PYTHON_USEDEP}] + >=dev-python/cryptography-2.9.2[${PYTHON_USEDEP}] + >=dev-python/flatbuffers-1.10.0[${PYTHON_USEDEP}] + >=dev-python/lz4-0.7.0[${PYTHON_USEDEP}] + >=dev-python/msgpack-0.6.1[${PYTHON_USEDEP}] + >=dev-python/py-ubjson-0.8.4[${PYTHON_USEDEP}] + >=dev-python/snappy-0.5[${PYTHON_USEDEP}] + >=dev-python/twisted-20.3.0[${PYTHON_USEDEP}] + >=dev-python/txaio-20.4.1[${PYTHON_USEDEP}] + >=dev-python/ujson-2.0.0[${PYTHON_USEDEP}] + >=dev-python/wsaccel-0.6.2[${PYTHON_USEDEP}] + >=dev-python/zope-interface-3.6[${PYTHON_USEDEP}] + crypt? ( + >=dev-python/pyopenssl-16.2.0[${PYTHON_USEDEP}] + >=dev-python/pynacl-1.0.1[${PYTHON_USEDEP}] + >=dev-python/pytrie-0.2[${PYTHON_USEDEP}] + >=dev-python/pyqrcode-1.1.0[${PYTHON_USEDEP}] + >=dev-python/service_identity-18.1.0[${PYTHON_USEDEP}] + ) + scram? ( + dev-python/cffi[${PYTHON_USEDEP}] + dev-python/argon2-cffi[${PYTHON_USEDEP}] + dev-python/passlib[${PYTHON_USEDEP}] + ) + " +BDEPEND=" + test? ( + dev-python/mock[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + >=dev-python/pynacl-1.0.1[${PYTHON_USEDEP}] + >=dev-python/pytrie-0.2[${PYTHON_USEDEP}] + >=dev-python/pyqrcode-1.1.0[${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 + distutils-r1_python_prepare_all +} + +python_test() { + echo "Testing all, cryptosign using twisted" + export USE_TWISTED=true + cd "${BUILD_DIR}"/lib || die + "${EPYTHON}" -m twisted.trial autobahn || die + unset USE_TWISTED + echo "RE-testing cryptosign and component_aio using asyncio" + export USE_ASYNCIO=true + py.test -v autobahn/wamp/test/test_cryptosign.py || die + py.test -v autobahn/wamp/test/test_component_aio.py || die + unset USE_ASYNCIO + rm -r .pytest_cache || die +} + +python_install_all() { + distutils-r1_python_install_all + + # delete the dropin.cache so we don't have collisions if it exists + rm "${D}"/usr/lib*/python*/site-packages/twisted/plugins//dropin.cache > /dev/null +} + +pkg_postinst() { + python_foreach_impl twisted-regen-cache || die +} + +pkg_postrm() { + python_foreach_impl twisted-regen-cache || die +} diff --git a/dev-python/autobahn/metadata.xml b/dev-python/autobahn/metadata.xml index 7b30dba080d8..044d8807003b 100644 --- a/dev-python/autobahn/metadata.xml +++ b/dev-python/autobahn/metadata.xml @@ -5,6 +5,10 @@ <email>dolsen@gentoo.org</email> <name>Brian Dolbec</name> </maintainer> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> <use> <flag name="scram">Add support for WAMP-SCRAM authentication</flag> <flag name="xbr">Add support for XBR decentralized data markets and etherium blockchain</flag> diff --git a/dev-python/boto3/Manifest b/dev-python/boto3/Manifest index abedde06f0b1..a2115a889bac 100644 --- a/dev-python/boto3/Manifest +++ b/dev-python/boto3/Manifest @@ -10,4 +10,5 @@ DIST boto3-1.16.26.tar.gz 340309 BLAKE2B df2c193b5e40f52381a4214fd5c6db9dcb0f32e DIST boto3-1.16.28.tar.gz 340709 BLAKE2B 3c5520531efbb5e20f679f28f4c60964a7be38a0601f73dc0fa5ab3e2cb96939d985c1ebc20869b3fd2f556e9da836fdce4d92377fb9168eccd13cbcffd7c8c6 SHA512 72c10598560ad8d227250274fb296f11e6a1c417f8430221fd8a85e920c8a783be77193dd83ac53dc5000c2ea27c8ff626a5ef3cdee0a467237e732dd6442cdd DIST boto3-1.16.29.tar.gz 340743 BLAKE2B 1ef74d98aecf8dfd46bc340984d65e5dc2a70f320149b6bab18588a8371d0da6c93102da96f12950d0730c871fb6f13c7441f7ca148f974cb8678bd01b3af24a SHA512 59f8dba245c7525e4ddeec121d85919310e2bd6cf90419c19612434beff66bab4cca22968347512b0f9f2563ff3ee4d85e2d01bf10ce175c3a12a9a09c2e09a6 DIST boto3-1.16.30.tar.gz 340801 BLAKE2B fcf87b43d2c18ecf1e9d7f0c8c423143e44777a6249a9893d0ebb4016703a9d87a157ed71fca98c8bd73419e6dd2bd2621d42406220e67e6dd462e1088837334 SHA512 66d3e4ae6296b1fbd31187228246c99e472ccfba756d6ca304eca134271d43dd80d1bc35af1fb63336a7c63f2341212329dde307cbbb2dce25e2aa0705c6a436 +DIST boto3-1.16.36.tar.gz 341458 BLAKE2B 7e4cf667cd59caa8433226eb6914412370bfa4c002f6f5d992fe49c93528d59d5740de6c8782af71d94461ea704a36d8ed46ccadfbf83982504ab507aab9b058 SHA512 06d9c6e721d1ab529e6a598b14ba6f740bec32a8165582853149b9aa294f0a272d0da4222f0dc7ef83055d91b4b0a0176e65bb34784990aca43e44db43650a2d DIST boto3-1.16.9.tar.gz 337905 BLAKE2B ed01e28fd7e62e5e5028307c93f92004bfbecffa77bc2ba1d6574b92ec2c515d910eb5107ac5ee03e0aca909f97f379aa65b5f839c8067634fa69266c58de33f SHA512 7343b8432788ef981819f91fe2ba27c4ec3947d01ff55914f7c89607250ecf60db2da8d25c8a2c7001ef546a9abed4cb744c5937ca09497aa1a983049648bd5e diff --git a/dev-python/boto3/boto3-1.16.36.ebuild b/dev-python/boto3/boto3-1.16.36.ebuild new file mode 100644 index 000000000000..af8cbcbae607 --- /dev/null +++ b/dev-python/boto3/boto3-1.16.36.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) +DISTUTILS_USE_SETUPTOOLS=bdepend +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 ~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 nose + +python_prepare_all() { + # don't lock versions to narrow ranges + sed -e '/botocore/ d' \ + -e '/jmespath/ d' \ + -e '/s3transfer/ d' \ + -i setup.py || die + + # prevent an infinite loop + rm tests/functional/docs/test_smoke.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + nosetests -v tests/unit/ tests/functional/ || die "test failed under ${EPYTHON}" +} diff --git a/dev-python/botocore/Manifest b/dev-python/botocore/Manifest index d08c30b41e06..c332fcea1ee0 100644 --- a/dev-python/botocore/Manifest +++ b/dev-python/botocore/Manifest @@ -10,4 +10,5 @@ DIST botocore-1.19.26.tar.gz 7124956 BLAKE2B 6091c9536de9a3171a2327ca1d1531799fa DIST botocore-1.19.28.tar.gz 7208608 BLAKE2B eab5731c530747421186c3e24cc0cb0f5b120b37e4a4d587a5ec0b118d138ff13fb9608bd028a3182aa353f188f56f0c2a05c918aafc8d79eaa87ba89d5b4265 SHA512 71de40c171b1aabdcad159b2e6817740e793a29eda99c6cdad28643bc444a26fbcd7594d927bfbe031c4e4c8b74826ba51efb37376f5a70d8a2591c524a2301a DIST botocore-1.19.29.tar.gz 7219708 BLAKE2B c5468be09300edf1acfb82780ad026ad78537b641b9f8f9384c41397e293a51559259c64925dac2852b888a28b49c23b7802b2c3adaca097424029fe9717044c SHA512 674f76a443541ff3665dbb1834ac69f8776e497526001db9bd229f22ea2137452c3bf954d8a6b74a732bd9e7212545cae19c9058357a38c357ed09d89c9c1cc5 DIST botocore-1.19.30.tar.gz 7224700 BLAKE2B 50712be7e6e4a8a22607d567a8d227bbc6d9a7156c245a9faa5adf0e94364d5e5738dd558534e072d071e88315fd79555454fd5f36dfb5d309effca6a39f2247 SHA512 8d9a0becad072ac01e04c1709e8851344bbcd35ecb6c269cace7c229e3b2e48b8fd91ca31be96c67831030a75a63027e8700772601a65eb529bcfd8a58434b6c +DIST botocore-1.19.36.tar.gz 7291325 BLAKE2B d1f79298a0f47d704418cac8390a5d500b1f300fc9bdbc0b215a3630adb70c29a951c6dff2a6ebfde42872cbc3af4c442d09fa0233b2c957521e6a5e05816c60 SHA512 420ad7c59496b2b74ba6ecde8dc40ac3e47c5676335f7471448fcdde5b70bda3bd7516963788d8a7a940aaa9cf488b6529e6fbd2842806f58520cd8e2dc15a60 DIST botocore-1.19.9.tar.gz 6972834 BLAKE2B 3407c056c7995cc1ccb1b5b4c5b3a6254e38672b52e7889a7a022520283416e4dfcabd05c8ca0ed78e4624c7a20c9f43bfde87a76d7a72660b4c95256e4f9ca4 SHA512 8433f22ae7652e524a82da8d2ccda48da9eef44788333898b7526335d57a7757b80754f0d5c6a2c84ec3bde2ec9fc7da5cf872cbda7286f620b4f4878fe9a583 diff --git a/dev-python/botocore/botocore-1.19.36.ebuild b/dev-python/botocore/botocore-1.19.36.ebuild new file mode 100644 index 000000000000..7bbd989ca3a9 --- /dev/null +++ b/dev-python/botocore/botocore-1.19.36.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2020 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="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 ~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/mock[${PYTHON_USEDEP}] + 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 nose + +src_prepare() { + # unpin deps + sed -i -e "s:>=.*':':" setup.py || die + # very unstable + sed -i -e 's:test_stress_test_token_bucket:_&:' \ + tests/functional/retries/test_bucket.py || die + distutils-r1_src_prepare +} + +python_test() { + # note: suites need to be run separately as one of the unit tests + # seems to be leaking mocks and breaking a few functional tests + nosetests -v tests/unit || + die "unit tests failed under ${EPYTHON}" + nosetests -v tests/functional || + die "functional tests failed under ${EPYTHON}" +} diff --git a/dev-python/breathe/Manifest b/dev-python/breathe/Manifest index 98ff68592f14..95a7506660d5 100644 --- a/dev-python/breathe/Manifest +++ b/dev-python/breathe/Manifest @@ -1,2 +1 @@ -DIST breathe-4.14.1.tar.gz 69369 BLAKE2B 93c394d7174aff8e8e8b1c95435d88c5f344ea1a26f46e9ef6ea8e7457bb9650d0cce96d03bc5c23e58704e3dcda3228ef1a61b16cd9ab45b07c2f1989eea88f SHA512 7247aae71c8e3e2491b76e6a5889fd9b97100e921e8c724c26e6c75b904c4e5dca825ae824b015f156960d5afbbf622b29535a46261c7fa0c24dd52deb46d096 DIST breathe-4.22.1.tar.gz 76241 BLAKE2B 1b410eefe47610abf2e55bba86d13169449a03be2503839fa7a0f4f351e79d2e5f24d208c95d06a58e2d8cacef55ef52ea5921d5d71ce50b94fb0eed207918a2 SHA512 3b49819821356929a18d8ad9e25edd93d91661f3baea452121afb74308e11afa9a3cc96e31a063d380cfc1b0973ac646d5917279d9b56131be25dbb13dd632bf diff --git a/dev-python/breathe/breathe-4.14.1.ebuild b/dev-python/breathe/breathe-4.14.1.ebuild deleted file mode 100644 index 4c3b69fba306..000000000000 --- a/dev-python/breathe/breathe-4.14.1.ebuild +++ /dev/null @@ -1,29 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{6,7,8,9,10} ) -DISTUTILS_USE_SETUPTOOLS=rdepend - -inherit distutils-r1 - -DESCRIPTION="Sphinx Doxygen renderer" -HOMEPAGE="https://breathe.readthedocs.io/en/latest/" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ppc ~ppc64 ~s390 ~sparc x86 ~amd64-linux ~x86-linux" - -RDEPEND=" - app-doc/doxygen - dev-python/docutils[${PYTHON_USEDEP}] - dev-python/sphinx[${PYTHON_USEDEP}] - dev-python/six[${PYTHON_USEDEP}] - dev-texlive/texlive-bibtexextra - dev-texlive/texlive-fontsextra - dev-texlive/texlive-fontutils - dev-texlive/texlive-latex - dev-texlive/texlive-latexextra -" diff --git a/dev-python/chardet/chardet-4.0.0.ebuild b/dev-python/chardet/chardet-4.0.0.ebuild index e9bc2eb1c1d3..4c56b5615369 100644 --- a/dev-python/chardet/chardet-4.0.0.ebuild +++ b/dev-python/chardet/chardet-4.0.0.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 DISTUTILS_USE_SETUPTOOLS=rdepend PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 ) @@ -12,19 +12,12 @@ DESCRIPTION="Universal encoding detector" HOMEPAGE="https://github.com/chardet/chardet https://pypi.org/project/chardet/" SRC_URI="https://github.com/chardet/chardet/archive/${PV}.tar.gz -> ${P}.tar.gz" -# SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" -# PyPI tarball is missing test.py: https://github.com/chardet/chardet/pull/118 - LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~x64-solaris" -DEPEND=" +BDEPEND=" test? ( dev-python/hypothesis[${PYTHON_USEDEP}] ) " -PATCHES=( - "${FILESDIR}"/${P}-pytest-4.patch -) - distutils_enable_tests pytest diff --git a/dev-python/cx_Freeze/Manifest b/dev-python/cx_Freeze/Manifest index 610d52b41b1c..62b3839afdfc 100644 --- a/dev-python/cx_Freeze/Manifest +++ b/dev-python/cx_Freeze/Manifest @@ -1 +1,2 @@ DIST cx_Freeze-6.1.tar.gz 92474 BLAKE2B 5341b30b202ab96c34c82e5b12dc6a99ebaf429b6a4b6356a55c5d4fefae7504fd017cb5d29cd1601a6affca0e8e8aa1e01ececbf57011f9235b4c516b21a772 SHA512 029753e8b9eafdad383254af0f7296052c124b662473f4453b6bda0ea500430642d93941a59c23df1d0bbbee462f7d61390b5f66c946372c96bf41ea6ffbc685 +DIST cx_Freeze-6.4.2.tar.gz 108571 BLAKE2B 742d2491154706f51ebb3e072428afac1ce5c647f2b8cb6325ea166bbedc1852503ad40e56a532345f1e2a045532620cdad24622e19ecb12d9577cf57abd291d SHA512 4c9a92b6f8dc458f82abb144171b18db1349e75b237f707ca37b7b68527508e8fb3adcf5d7b142922709727501fdc46f16a01619b29e98a6af1a0c09f9306b82 diff --git a/dev-python/cx_Freeze/cx_Freeze-6.4.2.ebuild b/dev-python/cx_Freeze/cx_Freeze-6.4.2.ebuild new file mode 100644 index 000000000000..300da8ed3cd0 --- /dev/null +++ b/dev-python/cx_Freeze/cx_Freeze-6.4.2.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) +inherit distutils-r1 + +DESCRIPTION="Create standalone executables from Python scripts" +HOMEPAGE="https://cx-freeze.readthedocs.io/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="PYTHON" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +PATCHES=( + # bug #491602 + "${FILESDIR}/${PN}-6.4.2-buildsystem.patch" +) + +# Test folder is missing needed content diff --git a/dev-python/cx_Freeze/files/cx_Freeze-6.4.2-buildsystem.patch b/dev-python/cx_Freeze/files/cx_Freeze-6.4.2-buildsystem.patch new file mode 100644 index 000000000000..5d23a8ded944 --- /dev/null +++ b/dev-python/cx_Freeze/files/cx_Freeze-6.4.2-buildsystem.patch @@ -0,0 +1,13 @@ +diff --git a/setup.py b/setup.py +index fd24ec9..068119f 100755 +--- a/setup.py ++++ b/setup.py +@@ -68,8 +68,6 @@ class build_ext(distutils.command.build_ext.build_ext): + # PY_LDFLAGS_NODIST = "-flto -Wl,-export_dynamic -g" + if get_config_var("PY_LDFLAGS_NODIST"): + extraArgs.extend(get_config_var("PY_LDFLAGS_NODIST").split()) +- else: +- extraArgs.append("-s") + self.compiler.link_executable( + objects, + fullName, diff --git a/dev-python/dataclasses/Manifest b/dev-python/dataclasses/Manifest index 558e8a943c25..9610838fc5fe 100644 --- a/dev-python/dataclasses/Manifest +++ b/dev-python/dataclasses/Manifest @@ -1 +1,2 @@ DIST dataclasses-0.7.tar.gz 35690 BLAKE2B 8d3c60d1e2ad4c9ceb3c502fa74f8fdae75717e52c698984b6def96e867cae633864de711856a69992df6a207617d17d7116f5e0daa7d757076dc8b97d7e0e9b SHA512 ff921237a99bac21e091ff253824eb07eb09be7e7ec02b869da9c68c35141fc1bee526b3d2942963bac7762827438ea8fdc89fa72404991b78d1d063a3c18661 +DIST dataclasses-0.8.tar.gz 36581 BLAKE2B fb4cad844f00157a8affc85a0c5d949d7d44fd67ca8083262247af46d93be189628c4ab7b37d34dea983059615603342d50d8b9d0ab75f5365463a337d312b6a SHA512 81b27dd10077084ca82b0a3cbbcee428a5c5cb2e6ade5de46a39731507c2d6f93f9038b704e6555c850044683516a0d130b95a14c91881d04b0bd2c496ca8d6a diff --git a/dev-python/dataclasses/dataclasses-0.8.ebuild b/dev-python/dataclasses/dataclasses-0.8.ebuild new file mode 100644 index 000000000000..08b9fdaf45f0 --- /dev/null +++ b/dev-python/dataclasses/dataclasses-0.8.ebuild @@ -0,0 +1,26 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +# this is a backport. do not add extra impls +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) +inherit distutils-r1 + +DESCRIPTION="A backport of the dataclasses module for Python 3.6" +HOMEPAGE=" + https://pypi.org/project/dataclasses/ + https://github.com/ericvsmith/dataclasses" +SRC_URI=" + mirror://pypi/${PN::1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" + +src_test() { + cd test || die + distutils-r1_src_test +} + +distutils_enable_tests unittest diff --git a/dev-python/denonavr/Manifest b/dev-python/denonavr/Manifest index 6900f0a2792f..9773bdf6d15a 100644 --- a/dev-python/denonavr/Manifest +++ b/dev-python/denonavr/Manifest @@ -1,2 +1,2 @@ -DIST denonavr-0.9.5.tar.gz 94016 BLAKE2B b6a013e6831600316dd4e1e33caec7da18774e17a1e9423dd2ae989c4f787cac471e21e2de06db0e01427345234a87825e298dc27881f21fbf69a720bbb04df4 SHA512 798fe126ab3c57ef285f45978e3b06ff5fab99eb3fc47e277c2d2eeb1786ac30fc09de8d23f2b4f59a1240bc2df4fca8e6946baf5135e051f387d1195a070ac7 DIST denonavr-0.9.7.tar.gz 101839 BLAKE2B d44600e6963c2e17ffc12f203926b522d2bf2d9a853e4f061583158fb087b8fb5dbc43be835aa639ffe11391aa494a8b061b2c177bccfc2568781b304547e311 SHA512 2b8a8224ec46b90d2256d7d516801c6ae18b4434a0ee901b0a9aa80cc0481216fa33566bf33d41928f0112361b165bbe40e5f44b65cd17f09beb7cb3f4d9d803 +DIST denonavr-0.9.8.tar.gz 101850 BLAKE2B b02a18d1f61547e7e63fbd51a72de57803ec6e78232be0027fb6b77176fa872227afcb5a414b0cb92ca4373116a5c6ec4975fea73ae272742ec399e4c0e3ad81 SHA512 30ca12ffffcf66b45c17434c96e496fe61af5cd42aa85dcb25502f6a21593ec4d884937d52726a430b405d9807ad024456e48e144a759ea1351fccc906a95af3 diff --git a/dev-python/denonavr/denonavr-0.9.5.ebuild b/dev-python/denonavr/denonavr-0.9.8.ebuild index f7231b3b430b..f7231b3b430b 100644 --- a/dev-python/denonavr/denonavr-0.9.5.ebuild +++ b/dev-python/denonavr/denonavr-0.9.8.ebuild diff --git a/dev-python/denonavr/metadata.xml b/dev-python/denonavr/metadata.xml index 7e6816d2091e..ce38e1a69cc1 100644 --- a/dev-python/denonavr/metadata.xml +++ b/dev-python/denonavr/metadata.xml @@ -5,6 +5,10 @@ <email>sbraz@gentoo.org</email> <name>Louis Sautier</name> </maintainer> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> <upstream> <remote-id type="pypi">denonavr</remote-id> <remote-id type="github">scarface-4711/denonavr</remote-id> diff --git a/dev-python/dill/Manifest b/dev-python/dill/Manifest index 8a6cf96ba1c9..3a0452ee3dad 100644 --- a/dev-python/dill/Manifest +++ b/dev-python/dill/Manifest @@ -1,2 +1 @@ -DIST dill-0.3.2.gh.tar.gz 148972 BLAKE2B a807350a2d2bb84e705d20c9c60d47834b41863b862a5d347ebc32273c1b9479c568cd3018126adb1cd052bb00f50e8424f7118b37524329458150b9a3e59e3d SHA512 74a0c01dd7c0126c7de21a3b3660e51486fec17f64f23b8e7f23b70243209908573fef8851f6eda53868e89ef1a8a5e351a3ef81dd9cb3e122a2dba33a86bbe1 DIST dill-0.3.3.gh.tar.gz 149103 BLAKE2B b08830ad1eb47ceb29c6be6ae88ab38338d9a8a325188bc3890b71c7f393792988da4962819f9b82bf7ad9ebd668c96989ef8c55072a2c82483660c4ec01d072 SHA512 bb514c37902412380d99f38293d5cb9d3d6a6643a34e59e6e889c89d845f9b83e9fa3fa9f0a75218575aa56670f287144f2b00abc8359b5fc6cb450351b43b68 diff --git a/dev-python/dill/dill-0.3.2.ebuild b/dev-python/dill/dill-0.3.2.ebuild deleted file mode 100644 index e777bb6e9e62..000000000000 --- a/dev-python/dill/dill-0.3.2.ebuild +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 1999-2020 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="Serialize all of python (almost)" -HOMEPAGE="https://pypi.org/project/dill/" -SRC_URI=" - https://github.com/uqfoundation/dill/archive/${P}.tar.gz - -> ${P}.gh.tar.gz" -S=${WORKDIR}/${PN}-${P} - -LICENSE="BSD" -SLOT="0" -KEYWORDS="amd64 ~arm64 ppc x86 ~amd64-linux ~x86-linux" - -python_test() { - local fail= t - for t in tests/test_*.py; do - ebegin "\t${t}" - "${EPYTHON}" "${t}" - eend || fail=1 - done - - [[ ${fail} ]] && die "Tests fail with ${EPYTHON}" -} diff --git a/dev-python/eventlet/Manifest b/dev-python/eventlet/Manifest index 9ba86992d664..d60a7b85c864 100644 --- a/dev-python/eventlet/Manifest +++ b/dev-python/eventlet/Manifest @@ -1,2 +1,2 @@ DIST eventlet-0.26.1.tar.gz 398200 BLAKE2B f14024d0825fb5530929766c63dceea7446057d9ad5dfb98ab013e96cab9b0eef5440f2d4d7ceeef17691c8a2a9055cac2b93fb23653a6facba4967c4e7cb0b3 SHA512 55b9b214130d0482ea005ea570a5aa3eafdf66e6d315a95c5ba60186a2d9a9df5c2638c86d886968954ce39e5ac2153e1f9e11631e6aef237078c3776af7d6c5 -DIST eventlet-0.29.1.tar.gz 400673 BLAKE2B 2b317e0c445a7b9c7f96147c033b1a6b4b4d27eeaebe0d40102b4e25d7825861db15e9d77cf6c9e6795e1bc946b1a613d5bb4ffa60a7077c39d575f01bdd8506 SHA512 194544e8fafeb0847673abd84c8fbc876bb407bb76cb86c5a8a92fdb7571d3585e895f0063375e43b74de81b47e49cd6002f5b7a4f266d37bacc1b23e9ce4ef3 +DIST eventlet-0.30.0.tar.gz 401035 BLAKE2B 94a272ce810b28c00fc8a468f160e38f3c58c98750455e5eb096c266c46257a7e30e0278a6a8f509e47e6ab40297129ccf52b347a723037f9cc9b85a3e06a203 SHA512 c2ba283063333e9e74536dcda33276f98f74051ea0e9c8669506d2e3b11715f37cd5963af6130f14761a42cc6c8346e59c756efe2cef0ea3547dc30ccb8bf0fb diff --git a/dev-python/eventlet/eventlet-0.29.1.ebuild b/dev-python/eventlet/eventlet-0.30.0.ebuild index cd71f19d3c4a..956b8ddabacc 100644 --- a/dev-python/eventlet/eventlet-0.29.1.ebuild +++ b/dev-python/eventlet/eventlet-0.30.0.ebuild @@ -27,8 +27,8 @@ DEPEND="doc? ( >=dev-python/python-docs-2.7.6-r1:2.7 ) dev-python/nose[${PYTHON_USEDEP}] )" PATCHES=( - "${FILESDIR}/eventlet-0.25.1-tests.patch" - "${FILESDIR}/${P}-tests.patch" + "${FILESDIR}/${PN}-0.25.1-tests.patch" + "${FILESDIR}/${PN}-0.30.0-tests-socket.patch" ) distutils_enable_sphinx doc @@ -51,6 +51,7 @@ python_prepare_all() { python_test() { unset PYTHONPATH + export TMPDIR="${T}" nosetests -v || die } diff --git a/dev-python/eventlet/files/eventlet-0.29.1-tests.patch b/dev-python/eventlet/files/eventlet-0.29.1-tests.patch deleted file mode 100644 index 3cd20823899d..000000000000 --- a/dev-python/eventlet/files/eventlet-0.29.1-tests.patch +++ /dev/null @@ -1,71 +0,0 @@ -https://github.com/eventlet/eventlet/issues/646 -From 087ba743c7af8a40ac1e4e2ec89409eee3b4233e Mon Sep 17 00:00:00 2001 -From: Tim Burke <tim.burke@gmail.com> -Date: Mon, 2 Nov 2020 16:09:46 -0800 -Subject: [PATCH] py39: Add _at_fork_reinit method to Semaphores - -CPython expects to be able to call such a method on RLocks, Conditions, -and Events in threading; since we may monkey-patch threading to use -Semaphores as locks, they need the method, too. - -Addresses #646 ---- - eventlet/semaphore.py | 5 +++++ - tests/semaphore_test.py | 21 +++++++++++++++++++++ - 2 files changed, 26 insertions(+) - -diff --git a/eventlet/semaphore.py b/eventlet/semaphore.py -index 18b5b05f4..5e2b5e32f 100644 ---- a/eventlet/semaphore.py -+++ b/eventlet/semaphore.py -@@ -39,6 +39,7 @@ def __init__(self, value=1): - if value < 0: - msg = 'Semaphore() expect value >= 0, actual: {0}'.format(repr(value)) - raise ValueError(msg) -+ self._original_value = value - self.counter = value - self._waiters = collections.deque() - -@@ -51,6 +52,10 @@ def __str__(self): - params = (self.__class__.__name__, self.counter, len(self._waiters)) - return '<%s c=%s _w[%s]>' % params - -+ def _at_fork_reinit(self): -+ self.counter = self._original_value -+ self._waiters.clear() -+ - def locked(self): - """Returns true if a call to acquire would block. - """ -diff --git a/tests/semaphore_test.py b/tests/semaphore_test.py -index d6c11d1f6..cf6a29daf 100644 ---- a/tests/semaphore_test.py -+++ b/tests/semaphore_test.py -@@ -42,6 +42,27 @@ def test_timeout_non_blocking(self): - sem = eventlet.Semaphore() - self.assertRaises(ValueError, sem.acquire, blocking=False, timeout=1) - -+ def test_reinit(self): -+ # py39+ expects locks to have a _at_fork_reinit() method; since we -+ # patch in Semaphores in eventlet.green.thread, they need it, too -+ sem = eventlet.Semaphore() -+ sem.acquire() -+ sem._at_fork_reinit() -+ self.assertEqual(sem.acquire(blocking=False), True) -+ self.assertEqual(sem.acquire(blocking=False), False) -+ -+ sem = eventlet.Semaphore(0) -+ sem.release() -+ sem._at_fork_reinit() -+ self.assertEqual(sem.acquire(blocking=False), False) -+ -+ sem = eventlet.Semaphore(2) -+ sem.acquire() -+ sem._at_fork_reinit() -+ self.assertEqual(sem.acquire(blocking=False), True) -+ self.assertEqual(sem.acquire(blocking=False), True) -+ self.assertEqual(sem.acquire(blocking=False), False) -+ - - def test_semaphore_contention(): - g_mutex = eventlet.Semaphore() diff --git a/dev-python/eventlet/files/eventlet-0.30.0-tests-socket.patch b/dev-python/eventlet/files/eventlet-0.30.0-tests-socket.patch new file mode 100644 index 000000000000..4dd309c68a38 --- /dev/null +++ b/dev-python/eventlet/files/eventlet-0.30.0-tests-socket.patch @@ -0,0 +1,13 @@ +Let's use TMPDIR as the base for this test's unix socket to help it pass. +We set TMPDIR in the ebuild to ${T}. +--- a/tests/backdoor_test.py ++++ b/tests/backdoor_test.py +@@ -47,7 +47,7 @@ class BackdoorTest(tests.LimitedTestCase): + self._run_test_on_client_and_server(client, serv) + + def test_server_on_unix_socket(self): +- SOCKET_PATH = '/tmp/eventlet_backdoor_test.socket' ++ SOCKET_PATH = os.getenv('TMPDIR', '/tmp') + '/eventlet_backdoor_test.socket' + if os.path.exists(SOCKET_PATH): + os.unlink(SOCKET_PATH) + listener = socket.socket(socket.AF_UNIX) diff --git a/dev-python/feedparser/feedparser-5.2.1-r1.ebuild b/dev-python/feedparser/feedparser-5.2.1-r1.ebuild index 5a28959a98a7..311c4af274f6 100644 --- a/dev-python/feedparser/feedparser-5.2.1-r1.ebuild +++ b/dev-python/feedparser/feedparser-5.2.1-r1.ebuild @@ -14,7 +14,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" # sgmllib is licensed under PSF-2. LICENSE="BSD-2 PSF-2" SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-solaris" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 s390 sparc x86 ~amd64-linux ~x86-linux ~x86-solaris" IUSE="" # Tests have issues with chardet installed, and are just kind of buggy. diff --git a/dev-python/google-api-core/Manifest b/dev-python/google-api-core/Manifest index 620b2c9076ac..f3ce28c71547 100644 --- a/dev-python/google-api-core/Manifest +++ b/dev-python/google-api-core/Manifest @@ -1 +1,2 @@ DIST google-api-core-1.17.0.tar.gz 98660 BLAKE2B 7959f429dbbfd8de658b11d0ee5be253cb53d930f8b37a140dbdc89a0d25ecdc640fc91476138471603efbe1e6078d668bc3f0e06c1fb1481960970a6f5632dc SHA512 fd609ce85bde22b09653bf46dd7bcc504ed93b19f8832c28f1d26ecb38a01e00380bd715191152a8d109e8c3235951b60525d4692fb4ba0eccb11a3b1df58cd2 +DIST google-api-core-1.24.0.tar.gz 129718 BLAKE2B 08bb8aef03d5f5cbc96c06c01d103e1e569f15bad5084ba24a5e13f732b10d9d97a299fe22db7dfdaea73809e9458b811de87a028f77dcb00ca62fc069af63b1 SHA512 9517e86389edb824fe178128003fa245857de47f4b2416e0a345b66e02fe5fb109b7a72f2e9adfd52478862165548ce6945761a5a2ca02eda4a0187ca608760b diff --git a/dev-python/google-api-core/google-api-core-1.24.0.ebuild b/dev-python/google-api-core/google-api-core-1.24.0.ebuild new file mode 100644 index 000000000000..8abac9c5dc56 --- /dev/null +++ b/dev-python/google-api-core/google-api-core-1.24.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) +DISTUTILS_USE_SETUPTOOLS=rdepend +inherit distutils-r1 + +DESCRIPTION="Core Library for Google Client Libraries" +HOMEPAGE="https://github.com/googleapis/python-api-core + https://googleapis.dev/python/google-api-core/latest" +SRC_URI="https://github.com/googleapis/${PN//google/python}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${P//google/python}" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" + +RDEPEND=" + dev-python/namespace-google[${PYTHON_USEDEP}] + dev-python/protobuf-python[${PYTHON_USEDEP}] + dev-python/googleapis-common-protos[${PYTHON_USEDEP}] + >=dev-python/google-auth-1.21.0[${PYTHON_USEDEP}] + >=dev-python/requests-2.18.0[${PYTHON_USEDEP}] + <dev-python/requests-3[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] + dev-python/pytz[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/grpcio[${PYTHON_USEDEP}] + dev-python/rsa[${PYTHON_USEDEP}] + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + distutils_install_for_testing + pytest -vv || die "tests fail with ${EPYTHON}" +} + +python_install_all() { + distutils-r1_python_install_all + find "${D}" -name '*.pth' -delete || die +} diff --git a/dev-python/google-auth/Manifest b/dev-python/google-auth/Manifest index 317d5c49f9ba..a31de1663821 100644 --- a/dev-python/google-auth/Manifest +++ b/dev-python/google-auth/Manifest @@ -1 +1,2 @@ DIST google-auth-1.20.1.tar.gz 107375 BLAKE2B 2f57cd9752c46891c59ed13e2ec8c6f98e5b3cd07d329769a78872877a17580c1ff5bb9da0381ef9bd4b6b9f72f04125ef71102543cfe1dc7bc3b09a5d5d9039 SHA512 6aad44b58c71f96c686606d6e8b6f273c64ce1559737920ccc31ad761442cad7f5fab19a59daee9408b284405a00c2de769c00221ac91bcfdd48851dba6f680f +DIST google-auth-1.24.0.tar.gz 120351 BLAKE2B b0a78ad87622bc806cce72847d5dad3844afe080ffbcd822575dab6208952806360bed4e8756133d5b4fe2755f6cbeeb239b8f51634dd3d4cede9346372b689a SHA512 3e678dd946eb6c3c865cd35df1480a96ed35cf14b973f2239c5213b223a6569b4a9642609ac51243af75c662a08bbf0518d8592db97af297cf67c52b83019e30 diff --git a/dev-python/google-auth/google-auth-1.24.0.ebuild b/dev-python/google-auth/google-auth-1.24.0.ebuild new file mode 100644 index 000000000000..718fca9387bb --- /dev/null +++ b/dev-python/google-auth/google-auth-1.24.0.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) +DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit distutils-r1 + +DESCRIPTION="Google Authentication Library" +HOMEPAGE="https://github.com/GoogleCloudPlatform/google-auth-library-python https://pypi.org/project/google-auth/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-python/namespace-google[${PYTHON_USEDEP}] + >=dev-python/pyasn1-0.1.7[${PYTHON_USEDEP}] + >=dev-python/pyasn1-modules-0.2.1[${PYTHON_USEDEP}] + >=dev-python/rsa-3.1.4[${PYTHON_USEDEP}] + >=dev-python/six-1.9.0[${PYTHON_USEDEP}] + >=dev-python/cachetools-2.0.0[${PYTHON_USEDEP}] + " +DEPEND="${RDEPEND} + test? ( + dev-python/cryptography[${PYTHON_USEDEP}] + dev-python/flask[${PYTHON_USEDEP}] + dev-python/freezegun[${PYTHON_USEDEP}] + dev-python/grpcio[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + dev-python/moto[${PYTHON_USEDEP}] + dev-python/oauth2client[${PYTHON_USEDEP}] + dev-python/pyopenssl[${PYTHON_USEDEP}] + dev-python/pytest-localserver[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/responses[${PYTHON_USEDEP}] + dev-python/urllib3[${PYTHON_USEDEP}] + )" + +distutils_enable_tests pytest + +src_prepare() { + # delete stray files included in the tarball + find "${S}"/tests -name '*.pyc' -delete || die + distutils-r1_src_prepare +} + +python_install_all() { + distutils-r1_python_install_all + find "${ED}" -name '*.pth' -delete || die +} diff --git a/dev-python/googleapis-common-protos/Manifest b/dev-python/googleapis-common-protos/Manifest index 149389b39c49..33b26cd26986 100644 --- a/dev-python/googleapis-common-protos/Manifest +++ b/dev-python/googleapis-common-protos/Manifest @@ -1 +1,2 @@ DIST googleapis-common-protos-1.51.0.tar.gz 35176 BLAKE2B 517004426bb04dc58b85a43fc4268407bbb3a5b6abc1949bda39e03a08a506e727e2bd1741180dc03695b09f4f094c55fe836d275b2c2de146459c399f584355 SHA512 31b6754d5541de4a6ce13e1e54dc54ee29c8153b57de3d0faf40bb236b6af9bee0516957f4b1f64f4404d713e3185126ef782a7825747fede827a8a8e604e303 +DIST googleapis-common-protos-1.52.0.tar.gz 39383 BLAKE2B 0b2a21b62c1e48cec91b6fe0d141baa1c1081b621c27d60d0a045932388d8c1b8c1eaee3219cdc3af1919b19358e6ec759e109865367b1b7879b3af05f7ec9be SHA512 470d949379a6aa21875b1c5851de54391847f89136b0b7ee84ac68931388a6294f53be167b6095265b2c2c0f30c7d8c71a4e5a546638670d24a9bd544538ff1a diff --git a/dev-python/googleapis-common-protos/googleapis-common-protos-1.52.0.ebuild b/dev-python/googleapis-common-protos/googleapis-common-protos-1.52.0.ebuild new file mode 100644 index 000000000000..47423952d5e7 --- /dev/null +++ b/dev-python/googleapis-common-protos/googleapis-common-protos-1.52.0.ebuild @@ -0,0 +1,27 @@ +# Copyright 2020 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="python classes generated from the common protos in the googleapis repository" +HOMEPAGE="https://pypi.org/project/googleapis-common-protos/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" + +RDEPEND=" + dev-python/namespace-google[${PYTHON_USEDEP}] + dev-python/protobuf-python[${PYTHON_USEDEP}] +" + +python_install_all() { + distutils-r1_python_install_all + find "${D}" -name '*.pth' -delete || die +} + +# no tests as this is all generated code diff --git a/dev-python/importlib_metadata/Manifest b/dev-python/importlib_metadata/Manifest index 56da65fabad7..2faf35dee409 100644 --- a/dev-python/importlib_metadata/Manifest +++ b/dev-python/importlib_metadata/Manifest @@ -2,3 +2,5 @@ DIST importlib_metadata-1.7.0.tar.gz 29233 BLAKE2B a8cd97a384ab06201025fcbdc401f DIST importlib_metadata-2.0.0.tar.gz 29289 BLAKE2B 4ec24db057006affe1dee20e021a47d385770b1aa905db4ff4223d59f19b53dc85c21475875074664a84a0fb6994493735f5e098d38f938816ebc69dced7a40d SHA512 3f789d717f04f7649dd4a75895669b4f9b875671937035c1c76bd089504afff8c2ba5bfb6a91096ba29eccadc88dca98ea1da5107772fd2053541db15c52b16a DIST importlib_metadata-3.1.0.tar.gz 29246 BLAKE2B 2144e10601e089e26e1d85269ed067d505de8ca86071524e038e87850420f42701b36fad5e1fe01529230333d5f23e0882f17a279bacfa39da335f3d968987dd SHA512 24d20d7658c2d15d2207d3660bd181016a16d0a2e3c86b8e86f7f95baab18f01f1a8753942d15ab648a40431bfc6db7d5109339575ef1a50802403eb580baede DIST importlib_metadata-3.1.1.tar.gz 32217 BLAKE2B 85155574f554146d89fedbaeffa5b5842c5c76f98d0f8488a019cded9fc7e45323b31a9cb612f81c379feb822a0e5a44f86566510c5bccaa344cbe10ef8676e9 SHA512 a0a3fc0c4cb08ba5676ae144a2176e9b2e02d122a09c1be67fe0c1e1c8304aeac4f624fa060898b20f99f67f9cfee2bdf1177d82cd12e5879edfa268e02cdce3 +DIST importlib_metadata-3.2.0.tar.gz 32793 BLAKE2B e99fc4544ec64bc320754b1bac80ab021fd4212930cb2b28fc44cd6f6c9691214fce2fc408aa65147ae45df589e5ad64d4681e29620a16ffd1d3231faebde077 SHA512 3e744ebaa4606477252243b6e473c33b70332879385719835a4187d5edad135f0f9076c26e4843aea4497c2a5a2b51fa7b5654e9ff97a8f5ec3808053dccc734 +DIST importlib_metadata-3.3.0.tar.gz 33549 BLAKE2B 6646cf7f8dbbeeadd7b4e9e572a59c14e2f17444dcd84aef817e27b299cbc3f0fa868657a59221a42ea8c49c5cc75e9e170a787df3e3014808d19eff1f89debf SHA512 af2215405b0f7e120d2745f3736d021174e611ad226abe64b496192a210e85786e78560349f1188deb3bffbfceb36385e9fbac20f4447aafb025a1d735c333ac diff --git a/dev-python/importlib_metadata/importlib_metadata-3.2.0.ebuild b/dev-python/importlib_metadata/importlib_metadata-3.2.0.ebuild new file mode 100644 index 000000000000..05a98db2f94c --- /dev/null +++ b/dev-python/importlib_metadata/importlib_metadata-3.2.0.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +# Included in Python >= 3.8 +PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Read metadata from Python packages" +HOMEPAGE="https://github.com/python/importlib_metadata" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" + +RDEPEND=" + $(python_gen_cond_dep 'dev-python/typing-extensions[${PYTHON_USEDEP}]' python3_{6,7}) + dev-python/zipp[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/setuptools_scm[${PYTHON_USEDEP}] + test? ( + >=dev-python/importlib_resources-1.3.0[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] + dev-python/pyfakefs[${PYTHON_USEDEP}] + ) +" + +distutils_enable_sphinx docs dev-python/jaraco-packaging dev-python/rst-linker +distutils_enable_tests unittest + +python_prepare_all() { + # Skip a test that requires pep517 which is not in the tree + sed -e 's:test_find_local:_&:' -i tests/test_integration.py || die + + distutils-r1_python_prepare_all +} diff --git a/dev-python/importlib_metadata/importlib_metadata-3.3.0.ebuild b/dev-python/importlib_metadata/importlib_metadata-3.3.0.ebuild new file mode 100644 index 000000000000..05a98db2f94c --- /dev/null +++ b/dev-python/importlib_metadata/importlib_metadata-3.3.0.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +# Included in Python >= 3.8 +PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Read metadata from Python packages" +HOMEPAGE="https://github.com/python/importlib_metadata" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" + +RDEPEND=" + $(python_gen_cond_dep 'dev-python/typing-extensions[${PYTHON_USEDEP}]' python3_{6,7}) + dev-python/zipp[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/setuptools_scm[${PYTHON_USEDEP}] + test? ( + >=dev-python/importlib_resources-1.3.0[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] + dev-python/pyfakefs[${PYTHON_USEDEP}] + ) +" + +distutils_enable_sphinx docs dev-python/jaraco-packaging dev-python/rst-linker +distutils_enable_tests unittest + +python_prepare_all() { + # Skip a test that requires pep517 which is not in the tree + sed -e 's:test_find_local:_&:' -i tests/test_integration.py || die + + distutils-r1_python_prepare_all +} diff --git a/dev-python/iniconfig/Manifest b/dev-python/iniconfig/Manifest index 83d9ec04a493..9834a43946fc 100644 --- a/dev-python/iniconfig/Manifest +++ b/dev-python/iniconfig/Manifest @@ -1 +1,2 @@ DIST iniconfig-1.0.0.tar.gz 7807 BLAKE2B a77c4d8c6f549db911110505ac5a367be5175adbb580211d4aded14d1108e189fd6d6a229ac4e0e742baafa9b037d58c2bbc810897c8b274c07493c518ef752e SHA512 639a4e765637110f69627fb18a5e719b6d648e5549fd857168183d97da7880434d447c9af1e254dd2aa5d0e36cbd3f5c4ffabf8a949ed3d6294002e7e1b2f6e1 +DIST iniconfig-1.1.1.tar.gz 8104 BLAKE2B 31301484887018a6aa75c944e2f8643f85b2433534ae46a8da893a113f2376eca14cbee88095a3784d1c52f26d4c748260c1df59c46b8f94cd342038f93242e8 SHA512 c9341db7e3ec2204b6a674fca7824cbeb492e3576d5ac3f084b234c82842b28f2f6acbfdb812e183f4334a95b990551f942a4caf548f5ce7ef14885f931535ee diff --git a/dev-python/iniconfig/iniconfig-1.1.1.ebuild b/dev-python/iniconfig/iniconfig-1.1.1.ebuild new file mode 100644 index 000000000000..8475ca2ee691 --- /dev/null +++ b/dev-python/iniconfig/iniconfig-1.1.1.ebuild @@ -0,0 +1,19 @@ +# Copyright 2020 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 + +DESCRIPTION="Brain-dead simple config-ini parsing" +HOMEPAGE="https://github.com/RonnyPfannschmidt/iniconfig" +SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos" + +BDEPEND="dev-python/setuptools_scm[${PYTHON_USEDEP}]" + +distutils_enable_tests pytest diff --git a/dev-python/isort/isort-5.6.3.ebuild b/dev-python/isort/isort-5.6.3.ebuild index 8aecfef0e0a9..9b346fc3971e 100644 --- a/dev-python/isort/isort-5.6.3.ebuild +++ b/dev-python/isort/isort-5.6.3.ebuild @@ -14,7 +14,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="MIT" SLOT="0" -KEYWORDS="~alpha ~amd64 arm64 ~ia64 ~ppc ~ppc64 ~x86 ~x64-macos" +KEYWORDS="~alpha ~amd64 ~arm arm64 ~ia64 ~ppc ~ppc64 ~x86 ~x64-macos" BDEPEND=" test? ( diff --git a/dev-python/joblib/Manifest b/dev-python/joblib/Manifest index 6e16f8204efb..e59752ac5b68 100644 --- a/dev-python/joblib/Manifest +++ b/dev-python/joblib/Manifest @@ -1 +1,2 @@ DIST joblib-0.17.0.tar.gz 345984 BLAKE2B 4f4cb83037fc02ce9ea17e7dc5d284235b847eeb90bf1a877c4168aabd9ad4dd762e45a6485806efc759cdfcb98e6ee70e6d9a498cd7645b1d6b0051a9f9ba2e SHA512 73c42a9f5949478a4a03b97ec31549cabca2ebc968d2c869632696b671c175dc85ae7aa8ac92905f13f830083b2305b56df1552f1d70fa7fe51945ae7286840a +DIST joblib-1.0.0.tar.gz 346996 BLAKE2B 6f31dba31e451fe1d05e7a34bc211b641e10a6dda21cc6a4d283a594744caa3434748a2c2c661c468931e509d815596db18ce1cbed287ae6b0da287490256dec SHA512 3fad2f3d4d6651d2c0376403b3658defc9ae1acf08b2e187f77b440040ad414bf723241d685df862c08b88d784ded915f5794d0e0c29841d9acae4db200d7213 diff --git a/dev-python/joblib/joblib-1.0.0.ebuild b/dev-python/joblib/joblib-1.0.0.ebuild new file mode 100644 index 000000000000..31a9ed6b3883 --- /dev/null +++ b/dev-python/joblib/joblib-1.0.0.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2020 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="Tools to provide lightweight pipelining in Python" +HOMEPAGE="https://joblib.readthedocs.io/en/latest/ + https://github.com/joblib/joblib" +SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" + +RDEPEND=" + dev-python/cloudpickle[${PYTHON_USEDEP}] + dev-python/loky[${PYTHON_USEDEP}] +" +# joblib is imported by setup.py so we need ${RDEPEND} +BDEPEND=" + ${RDEPEND} + test? ( + dev-python/threadpoolctl[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_prepare_all() { + # unbundle + rm -r joblib/externals || die + sed -e "s:'joblib.externals[^']*',\?::g" -i setup.py || die + find -name '*.py' -exec \ + sed -e 's:\(joblib\)\?\.externals\.::' \ + -e 's:from \.externals ::' \ + -i {} + || die + + # https://github.com/joblib/joblib/issues/1115 + sed -e 's:test_parallel_call_cached_function_defined_in_jupyter:_&:' \ + -i joblib/test/test_memory.py || die + + distutils-r1_python_prepare_all +} diff --git a/dev-python/kaitaistruct/metadata.xml b/dev-python/kaitaistruct/metadata.xml index fac48c9a6cd0..8814d3489d31 100644 --- a/dev-python/kaitaistruct/metadata.xml +++ b/dev-python/kaitaistruct/metadata.xml @@ -17,8 +17,7 @@ </longdescription> <upstream> <remote-id type="github">kaitai-io/kaitai_struct_python_runtime</remote-id> - <remote-id type="pypi">mitmproxy</remote-id> + <remote-id type="pypi">kaitaistruct</remote-id> </upstream> <origin>gentoo-staging</origin> </pkgmetadata> - diff --git a/dev-python/keep/keep-2.10.ebuild b/dev-python/keep/keep-2.10.ebuild index b987c1096b65..b1df258cbb81 100644 --- a/dev-python/keep/keep-2.10.ebuild +++ b/dev-python/keep/keep-2.10.ebuild @@ -15,7 +15,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="MIT" SLOT="0" -KEYWORDS="~amd64 x86" +KEYWORDS="amd64 x86" IUSE="" RDEPEND=" diff --git a/dev-python/keep/metadata.xml b/dev-python/keep/metadata.xml index 19a46bbaec6f..349793879ddd 100644 --- a/dev-python/keep/metadata.xml +++ b/dev-python/keep/metadata.xml @@ -4,6 +4,7 @@ <maintainer type="person"> <email>kensington@gentoo.org</email> </maintainer> + <stabilize-allarches/> <upstream> <remote-id type="pypi">keep</remote-id> <remote-id type="github">orkohunter/keep</remote-id> diff --git a/dev-python/m2crypto/Manifest b/dev-python/m2crypto/Manifest index 3b685547eb2e..549be477b1bd 100644 --- a/dev-python/m2crypto/Manifest +++ b/dev-python/m2crypto/Manifest @@ -1,2 +1,3 @@ DIST M2Crypto-0.35.2.tar.gz 1117706 BLAKE2B efa15e023be7755b94c642bb23eade912edcbbb76bcdfed3414d27937cd705ec4c83069ca620fe20e58e126549ba7f98e84f6f8330b78133a8a8b953d18f467b SHA512 3608b29a8e7d0732a2359e35fcaae191447aa7c0211ca3d057eed6cee7f0819f5c1121e7d41caca8cdea3c7911f8c447ee475b1b3d125e8dc3adde2718a59f36 DIST M2Crypto-0.36.0.tar.gz 1127584 BLAKE2B 5cdbbb11ff67d4ddffb2853a72383f3c7f1e1aa53ab84166aeda4fbea1b0d7f506761bb07bf8cb5b36f94bdbeb2ea2b46e0693da8355f81b4bf5c4c1c1cc18b1 SHA512 5b7d6d10c943ff0e09e0e9748d5578e7e0f7659a73de4ba49481152bca05871aef2bfbb869e1636a7cebcf2dd8b9f67fb0d299a833d1d4ebd538031c35d7bca1 +DIST M2Crypto-0.37.1.tar.gz 1247031 BLAKE2B 3628150b8da15d7356298b6e52e0d8fa7875921a184a0eba3a97eff0588c9e0fee340c92fd486919057d900d6e3b2b711174dde9761fe247848f92ac6434df0a SHA512 9a5e0220704b4897a9ca7efa4b3b57447b9175c52e8039a85bff7bb1a43b709c69f3c8b5903df461f8de39d3f8a20f9bf494df6f5882771846adfe2c03fbea9e diff --git a/dev-python/m2crypto/m2crypto-0.37.1.ebuild b/dev-python/m2crypto/m2crypto-0.37.1.ebuild new file mode 100644 index 000000000000..d6abdd5b698e --- /dev/null +++ b/dev-python/m2crypto/m2crypto-0.37.1.ebuild @@ -0,0 +1,69 @@ +# Copyright 2018-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 toolchain-funcs + +MY_PN="M2Crypto" +DESCRIPTION="A Python crypto and SSL toolkit" +HOMEPAGE="https://gitlab.com/m2crypto/m2crypto https://pypi.org/project/M2Crypto/" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz" +S="${WORKDIR}/${MY_PN}-${PV}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" +IUSE="libressl test" +RESTRICT="!test? ( test )" + +BDEPEND=" + >=dev-lang/swig-2.0.9 + test? ( dev-python/parameterized[${PYTHON_USEDEP}] ) +" +RDEPEND=" + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) +" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}/${PN}-libressl-0.31.0.patch" +) + +swig_define() { + local x + for x; do + if tc-cpp-is-true "defined(${x})"; then + SWIG_FEATURES+=" -D${x}" + fi + done +} + +src_prepare() { + # TODO + sed -e 's:test_server_simple_timeouts:_&:' \ + -i tests/test_ssl.py || die + distutils-r1_src_prepare +} + +python_compile() { + # setup.py looks at platform.machine() to determine swig options. + # For exotic ABIs, we need to give swig a hint. + local -x SWIG_FEATURES= + + # https://bugs.gentoo.org/617946 + swig_define __ILP32__ + + # https://bugs.gentoo.org/674112 + swig_define __ARM_PCS_VFP + + distutils-r1_python_compile --openssl="${ESYSROOT}"/usr +} + +python_test() { + esetup.py test +} diff --git a/dev-python/markdown2/Manifest b/dev-python/markdown2/Manifest index 24c69a1f8296..73ed1b10a298 100644 --- a/dev-python/markdown2/Manifest +++ b/dev-python/markdown2/Manifest @@ -1,2 +1 @@ DIST markdown2-2.3.10.tar.gz 102543 BLAKE2B 78c20c0b183c90d2f7e0a3e92660619761f1cd754bf3f142e5d6e29736242fb847e1ab4e4aa316378a8943912bd3a0270c0f26cfe74cf224969974ad1632cf77 SHA512 0d695cae9e131930ef67b0f389e0c14b062ddd009e441ec8b70553e4a71d7f4a0ec63f9e039624059c3fe09ad37480e3ddafcf31ffa1b031be26490c6b6b89c4 -DIST markdown2-2.3.9.tar.gz 101067 BLAKE2B 4b1ba9e90e2cd370edaff4d61bec9182ca30952351274c4aa508e2e3573a79bac7ab70a1d29d279eb2a94da56a823222a9413b0f3f871f3bd2dfb2ed60621158 SHA512 1be193b27efff9bd084da94cf4121fc91cffda57165333ac644a4ad31b33da62bcda1df0fdb450a02421c0199484de5d6b65131a0afe2dd941c52a3f81bb218d diff --git a/dev-python/markdown2/markdown2-2.3.9.ebuild b/dev-python/markdown2/markdown2-2.3.9.ebuild deleted file mode 100644 index 2a02c893f6ec..000000000000 --- a/dev-python/markdown2/markdown2-2.3.9.ebuild +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 1999-2020 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="Python Markdown language reimplementation" -SRC_URI="mirror://pypi/m/markdown2/${P}.tar.gz" -HOMEPAGE="https://github.com/trentm/python-markdown2" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="amd64 ppc sparc x86 ~amd64-linux ~x86-linux" - -RDEPEND="dev-python/pygments[${PYTHON_USEDEP}]" - -distutils_enable_tests unittest - -src_test() { - cd test || die - distutils-r1_src_test -} - -python_test() { - "${EPYTHON}" -m unittest test_markdown2.py -v || - die "Tests fail with ${EPYTHON}" -} diff --git a/dev-python/mock/Manifest b/dev-python/mock/Manifest index b1ce22da1f2e..aa1a821a9f47 100644 --- a/dev-python/mock/Manifest +++ b/dev-python/mock/Manifest @@ -1,2 +1,2 @@ DIST mock-3.0.5.gh.tar.gz 67887 BLAKE2B b9c49b3627275889d73aff9ea9c7925093f9cafb304448b2f06eda2fff26152a031aafb4844537e4d58bc112709e59a44e08d32602776386a30d039743def29c SHA512 9ab4f0c794f5701ba1367d982cf79a5662d4233753d12ed9c88ae20282db1f44be73f84c4d9f6d03ff64926b8c1b6d0c9a79b2a4724a3eb36c247ffd4ab03e2d -DIST mock-4.0.2.gh.tar.gz 79450 BLAKE2B 529d8564a8f236b428745838fbc3bfd1cfc540a5feb5527653b7d4becb6ff118056bb301cb186964570c50588b42b7be22338c8c2b844c932284fdc359648add SHA512 348b67a62d1937de1778e3030fb4940bb11c58e839d212a75924aa94ed9a993b47b04612de92f073ec3fe4af4be15468e843f70a2d94bb31edb0a4c57cb46cc6 +DIST mock-4.0.3.gh.tar.gz 80318 BLAKE2B bc0dc8b97129eaa2f0f9c89898157ea5de398f59f4e2ebc07318cf745b74d1f1bcc989774600ec88ce1956f9fe16f9464f101ea5df5cd23b3a58b432d19feb8a SHA512 adfdab253eb3bc1b6cb767c58ffa3a8a5c5f88da0f04ea6680e0d87da59177972d2d99bfe0a770ac2ed4f809ca6a090a9d0f789eea8f4365ef2c54f8e8792e89 diff --git a/dev-python/mock/mock-4.0.2.ebuild b/dev-python/mock/mock-4.0.3.ebuild index ea859e662d9d..ea859e662d9d 100644 --- a/dev-python/mock/mock-4.0.2.ebuild +++ b/dev-python/mock/mock-4.0.3.ebuild diff --git a/dev-python/mongoengine/Manifest b/dev-python/mongoengine/Manifest index d3d7786870dc..2d38719ecc65 100644 --- a/dev-python/mongoengine/Manifest +++ b/dev-python/mongoengine/Manifest @@ -1,2 +1,3 @@ DIST mongoengine-0.20.0.tar.gz 311698 BLAKE2B 11bae8d342a77bcc241884beb92d67a6d4f7112d0af3a467196eb94233b003aa27d019ab346140ce7430b4019879c8c86e01f3067677254559243b6d1f0ddc80 SHA512 ef973af9893f6e53811e1a47a131989f5a057af04ab9d512059f968af89fcd23f05d910c7de03330b5f4771db8e11ea2e48060f95ed790f8d238df6c6f7b9306 DIST mongoengine-0.21.0.tar.gz 320173 BLAKE2B 6c53c8dd967209039a3c2b6e279e6a27cf7073a6284b0df70aff25004c8499e88088d934eadf2e23dc3f43cd2ebc0d3c202cfbee618772b8a794a6ef933a9a75 SHA512 37642e9c9333fb4480262e916d678ef04a1f839b62e7d58528485b7df7cb9b22d3cb0b093084fcb92e331698c7d5bf2411df5d0c6e6b9324748189b9084c3f54 +DIST mongoengine-0.22.0.tar.gz 319893 BLAKE2B dc58cad3a93b5c391012fcbc7f0f9cc372bae970847c629bbe6dd158b8d6d9b032b26c118a7931f51f6754333fdbd890904699417076a84ff295233e33daa48c SHA512 293cf0124c18d4c67ecd70e129ab51a0a29a919fecddffbf24619275012534d7c5cb7ee97a65d933654cd582554a276772dc933b1fba357ddac8d3a295f4fda8 diff --git a/dev-python/mongoengine/mongoengine-0.22.0.ebuild b/dev-python/mongoengine/mongoengine-0.22.0.ebuild new file mode 100644 index 000000000000..63cf2969dbe8 --- /dev/null +++ b/dev-python/mongoengine/mongoengine-0.22.0.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2020 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="A Python Object-Document-Mapper for working with MongoDB" +HOMEPAGE="https://github.com/MongoEngine/mongoengine/" +SRC_URI="https://github.com/MongoEngine/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +# TODO: make it run a local database server +RESTRICT="test" + +RDEPEND="dev-python/blinker[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] + dev-python/pymongo[${PYTHON_USEDEP}]" +BDEPEND=" + test? ( dev-python/mongomock[${PYTHON_USEDEP}] )" + +distutils_enable_tests pytest + +src_prepare() { + # TODO: investigate + sed -e 's:test_covered_index:_&:' \ + -i tests/document/test_indexes.py || die + # no $eval + sed -e 's:test_exec_js_field_sub:_&:' \ + -e 's:test_exec_js_query:_&:' \ + -e 's:test_item_frequencies_normalize:_&:' \ + -e 's:test_item_frequencies_with_0_values:_&:' \ + -e 's:test_item_frequencies_with_False_values:_&:' \ + -e 's:test_item_frequencies_with_null_embedded:_&:' \ + -i tests/queryset/test_queryset.py || die + # TODO: investigate (wrong order? bad comparison?) + sed -e 's:test_distinct_ListField_EmbeddedDocumentField:_&:' \ + -i tests/queryset/test_queryset.py || die + + distutils-r1_src_prepare +} diff --git a/dev-python/msgpack/Manifest b/dev-python/msgpack/Manifest index e32e9ba2b1cf..6a0fd07fa5a5 100644 --- a/dev-python/msgpack/Manifest +++ b/dev-python/msgpack/Manifest @@ -1,2 +1,3 @@ DIST msgpack-0.6.2.tar.gz 119062 BLAKE2B 6b20a0d31b811ae66e66dbfaacec6f0cf2152b2937423b78f3e6244bfa49c87767788c5ee1db41b9020801b8777a4c15b1fe1853182718adf622bc7e1bff858e SHA512 95b92e3d35e0500dd4256d18bf76e586e57cc66319b4459ac5daef599277a5049177a89ad86e291dbdc4c7a918901a89d9218353ddc4a7d0b399e8a98afef363 DIST msgpack-1.0.0.tar.gz 232331 BLAKE2B ab7b3aede06c31e0cf70a7f7fbdf2b1dddd89aa2d5d9847b11117c66a2f4572ac468674cdbcaf79bc571278f02429d223aeeb0ea8cb50c31ad251142642cc05f SHA512 6dc168b111cd37807e8e8a09840d1b116d7f38d56f4622b9d36ab7dbd983ebe2f34e763f48c6348148c6945c9f1c9a0f83f5f03e12d12bc18f7b8e0cbd669f87 +DIST msgpack-1.0.1.tar.gz 123151 BLAKE2B 4f040d6e292c588f20043e0091702e9a848d94357784ec7ef7a2ed2d1b5a08cae0bfea4a16cbb67e32b071260f25a43b0507d154ba7f6e180e65a60e3a2b4e9c SHA512 87412cc4022ce7ec82cfe376fbb3c663e5b7a430c2178cacbfe95b35489d95f314bdaf83a6170a7956f42939535ada3c5cbe45c6d7c105410494fe7e9a5cb870 diff --git a/dev-python/msgpack/msgpack-1.0.1.ebuild b/dev-python/msgpack/msgpack-1.0.1.ebuild new file mode 100644 index 000000000000..ad6d2599da80 --- /dev/null +++ b/dev-python/msgpack/msgpack-1.0.1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2020 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 + +DESCRIPTION="MessagePack (de)serializer for Python" +HOMEPAGE="https://msgpack.org + https://github.com/msgpack/msgpack-python/ + https://pypi.org/project/msgpack/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86 ~x64-macos" +IUSE="+native-extensions" + +BDEPEND=" + native-extensions? ( + $(python_gen_cond_dep '>=dev-python/cython-0.16[${PYTHON_USEDEP}]' 'python*') + ) + test? ( dev-python/six[${PYTHON_USEDEP}] ) +" + +distutils_enable_tests pytest + +python_prepare_all() { + # Remove pre-generated cython files + rm msgpack/{_packer,_unpacker,_cmsgpack}.pyx || die + + if ! use native-extensions ; then + sed -i -e "/have_cython/s:True:False:" setup.py || die + fi + distutils-r1_python_prepare_all +} diff --git a/dev-python/mypy/mypy-0.790.ebuild b/dev-python/mypy/mypy-0.790.ebuild index 9b99d6f5da43..9c381d875228 100644 --- a/dev-python/mypy/mypy-0.790.ebuild +++ b/dev-python/mypy/mypy-0.790.ebuild @@ -22,7 +22,7 @@ SRC_URI=" LICENSE="MIT" SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm64 ~ia64 ~ppc ~ppc64 ~x86" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86" # stubgen collides with this package: https://bugs.gentoo.org/585594 RDEPEND=" diff --git a/dev-python/piexif/files/piexif-1.1.3-tests-pillow-7.2.0.patch b/dev-python/piexif/files/piexif-1.1.3-tests-pillow-7.2.0.patch new file mode 100644 index 000000000000..b13425a0fc21 --- /dev/null +++ b/dev-python/piexif/files/piexif-1.1.3-tests-pillow-7.2.0.patch @@ -0,0 +1,40 @@ +From 5209b53e9689ce28dcd045f384633378d619718f Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Jan=20Wi=C5=9Bniewski?= <vuko@vuko.pl> +Date: Thu, 5 Nov 2020 16:18:52 +0100 +Subject: [PATCH] convert IFDRational to tuples in tests + +This fixes tests with Pillow version >= 7.2.0 +--- + tests/s_test.py | 12 ++++++++++++ + 1 file changed, 12 insertions(+) + +diff --git a/tests/s_test.py b/tests/s_test.py +index 5d105de..a7cad54 100644 +--- a/tests/s_test.py ++++ b/tests/s_test.py +@@ -9,6 +9,7 @@ + import time + import unittest + ++import PIL + from PIL import Image + import piexif + from piexif import _common, ImageIFD, ExifIFD, GPSIFD, TAGS, InvalidImageDataError +@@ -580,6 +581,17 @@ def test_print_exif(self): + # test utility methods---------------------------------------------- + + def _compare_value(self, v1, v2): ++ if isinstance(v2, PIL.TiffImagePlugin.IFDRational): ++ v2 = (v2.numerator, v2.denominator) ++ if isinstance(v2, tuple): ++ converted_v2 = [] ++ for el in v2: ++ if isinstance(el, PIL.TiffImagePlugin.IFDRational): ++ converted_v2.append((el.numerator, el.denominator)) ++ else: ++ converted_v2.append(el) ++ v2 = tuple(converted_v2) ++ + if type(v1) != type(v2): + if isinstance(v1, tuple): + self.assertEqual(pack_byte(*v1), v2) diff --git a/dev-python/piexif/piexif-1.1.3-r1.ebuild b/dev-python/piexif/piexif-1.1.3-r1.ebuild new file mode 100644 index 000000000000..e7dd8c9ba60a --- /dev/null +++ b/dev-python/piexif/piexif-1.1.3-r1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2020 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 edos2unix distutils-r1 + +DESCRIPTION="Exif manipulation with pure Python" +HOMEPAGE="https://github.com/hMatoba/Piexif + https://pypi.org/project/piexif/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + app-arch/unzip + test? ( dev-python/pillow[jpeg,${PYTHON_USEDEP}] )" +RDEPEND="" + +PATCHES=( + # From https://github.com/hMatoba/Piexif/pull/109 + "${FILESDIR}"/${P}-tests-pillow-7.2.0.patch +) + +src_prepare() { + edos2unix tests/s_test.py # to be able to patch it + default +} + +python_test() { + "${PYTHON}" setup.py test || die +} diff --git a/dev-python/piexif/piexif-1.1.3.ebuild b/dev-python/piexif/piexif-1.1.3.ebuild index 2ee96f6045b1..62f016bbbb9c 100644 --- a/dev-python/piexif/piexif-1.1.3.ebuild +++ b/dev-python/piexif/piexif-1.1.3.ebuild @@ -5,7 +5,7 @@ EAPI=7 PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 ) -inherit distutils-r1 +inherit edos2unix distutils-r1 DESCRIPTION="Exif manipulation with pure Python" HOMEPAGE="https://github.com/hMatoba/Piexif @@ -23,6 +23,16 @@ DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] test? ( dev-python/pillow[jpeg] )" RDEPEND="" +PATCHES=( + # From https://github.com/hMatoba/Piexif/pull/109 + "${FILESDIR}"/${P}-tests-pillow-7.2.0.patch +) + +src_prepare() { + edos2unix tests/s_test.py # to be able to patch it + default +} + python_test() { "${PYTHON}" setup.py test || die } diff --git a/dev-python/pillow/pillow-8.0.1.ebuild b/dev-python/pillow/pillow-8.0.1.ebuild index bb810360a7ed..2be72eaad426 100644 --- a/dev-python/pillow/pillow-8.0.1.ebuild +++ b/dev-python/pillow/pillow-8.0.1.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_{6,7,8,9,10} ) +PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 ) PYTHON_REQ_USE='tk?,threads(+)' inherit distutils-r1 toolchain-funcs virtualx diff --git a/dev-python/pip/Manifest b/dev-python/pip/Manifest index 4cb7d2c8cf5d..129d44595d3a 100644 --- a/dev-python/pip/Manifest +++ b/dev-python/pip/Manifest @@ -1,4 +1,5 @@ DIST pip-20.2.4.tar.gz 8723163 BLAKE2B 4b892950b6752b61af2f6a9d2c0a6f5db124cb7605d6cb9d4787bdbd88911cc6013474dd299f6eb5b1af4a8fa0ab6d3c5253513af182045a50cb463ced8382ea SHA512 649fdc6baa1ebe741717bd1e5ed8f2450d79f8bc0d06f2804c27488be9018f6fa6cc2eccc3ec2801442073f59ac0b8c377612c25116126aa919aa95050f4214f DIST pip-20.3.1.tar.gz 8753852 BLAKE2B dbcf719ed6a1e4f39f08c39df0cb4abf4284f6cd68c9fbd1282b17714aff9df9e33dd2a4a1af89f45ce5131a858f7d392c11447fe9aceba9d3be2ebe1529818d SHA512 6061004b51e57e428a7eef02968fbbde02311ee184019c491012758010bffcb49d371c7612bc43cfacf96fe8de37fdcad34e3cadefc46b3b5962b0c716ee5d59 +DIST pip-20.3.2.tar.gz 8757391 BLAKE2B 934e689dd42529269798fbd5e45e7392167492f5c723394f2fca3d12d7fa3408ca1108dd4ed517cd40cf2f20ded5a06344cb23cc22fbcc4eefeef74dd2024762 SHA512 aa794e57f440deb238215141854b58e67a682cd5ca70febde13d8e3b92c9897e7f5ef11be6bd2a9594a8233348e406402b91fd3caaadffc5ff377ede6fc4a480 DIST setuptools-44.0.0-py2.py3-none-any.whl 583230 BLAKE2B 823e6792471660f247e30a938aa869d345a63db7294e5f9b4bd88f15a7694779011d29740fe317149620985f705fc6e18cbb07a18e5680cc11d7c229ffbc74f6 SHA512 7006fd303181afbeeec0e30cafb9fd1e4d3c6f55cfdd6343fedbc32b17dbb96b3d96ae37f4db27bfb168738727474cf425904ec280ff1d2b789fc48077a8fa84 DIST wheel-0.34.2-py2.py3-none-any.whl 26502 BLAKE2B 3a1bd4571c582245b60ff33c9bf74ff8a2ebafb26e56fc7b9bd215058d059b6bd13bbe21ce46002af257813a54126f27e19253f211e21c4548c7cf84cd15caf7 SHA512 4f1a44f4691ed8baad777d7874f7f4da96a5019eb485fd3a9eed9259aa2a9d5acccc6dc63a72128664347c64ee039a6076c6ca9c3b75a1f94457967864e522ed diff --git a/dev-python/pip/pip-20.3.2.ebuild b/dev-python/pip/pip-20.3.2.ebuild new file mode 100644 index 000000000000..4c1b980cee62 --- /dev/null +++ b/dev-python/pip/pip-20.3.2.ebuild @@ -0,0 +1,150 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 ) +PYTHON_REQ_USE="ssl(+),threads(+)" + +inherit bash-completion-r1 distutils-r1 multiprocessing + +SETUPTOOLS_PV="44.0.0" +WHEEL_PV="0.34.2" + +DESCRIPTION="Installs python packages -- replacement for easy_install" +HOMEPAGE=" + https://pip.pypa.io/en/stable/ + https://pypi.org/project/pip/ + https://github.com/pypa/pip/" +SRC_URI=" + https://github.com/pypa/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz + test? ( + https://files.pythonhosted.org/packages/py2.py3/s/setuptools/setuptools-${SETUPTOOLS_PV}-py2.py3-none-any.whl + https://files.pythonhosted.org/packages/py2.py3/w/wheel/wheel-${WHEEL_PV}-py2.py3-none-any.whl + ) +" +# PyPI archive does not have tests, so we need to download from GitHub. +# setuptools & wheel .whl files are required for testing, exact version is not very important. + +LICENSE="MIT" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos" +SLOT="0" +IUSE="test -vanilla" + +# disable-system-install patch breaks tests +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-python/setuptools-39.2.0[${PYTHON_USEDEP}] +" +DEPEND=" + ${RDEPEND} + test? ( + dev-python/cryptography[${PYTHON_USEDEP}] + dev-python/csv23[${PYTHON_USEDEP}] + dev-python/freezegun[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + dev-python/pretend[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/scripttest[${PYTHON_USEDEP}] + <dev-python/virtualenv-20[${PYTHON_USEDEP}] + dev-python/werkzeug[${PYTHON_USEDEP}] + dev-python/wheel[${PYTHON_USEDEP}] + ) +" + +python_prepare_all() { + local PATCHES=( + "${FILESDIR}/${PN}-19.3-disable-version-check.patch" + "${FILESDIR}/${PN}-20.2-no-coverage.patch" + ) + if ! use vanilla; then + PATCHES+=( "${FILESDIR}/pip-20.0.2-disable-system-install.patch" ) + fi + + # TODO + rm tests/functional/test_new_resolver_user.py || die + + distutils-r1_python_prepare_all + + if use test; then + mkdir tests/data/common_wheels/ || die + cp "${DISTDIR}"/setuptools-${SETUPTOOLS_PV}-py2.py3-none-any.whl \ + tests/data/common_wheels/ || die + + cp "${DISTDIR}"/wheel-${WHEEL_PV}-py2.py3-none-any.whl \ + tests/data/common_wheels/ || die + fi +} + +python_test() { + if [[ ${EPYTHON} == pypy* ]]; then + ewarn "Skipping tests on ${EPYTHON} since they are very broken" + return 0 + fi + + local -a exclude_tests + + # these will be built in to an expression passed to pytest to exclude + exclude_tests=( + git + svn + bazaar + mercurial + version_check + uninstall_non_local_distutils + pep518_uses_build_env + install_package_with_root + install_editable_with_prefix + install_user_wheel + install_from_current_directory_into_usersite + uninstall_editable_from_usersite + uninstall_from_usersite_with_dist_in_global_site + build_env_isolation + user_config_accepted + # these fail with new setuptools + distutils_install_for_testing + double_install_fail + multiple_exclude_and_normalization + ) + + distutils_install_for_testing --via-root + + # generate the expression to exclude failing tests + local exclude_expr + printf -v exclude_expr "or %s " "${exclude_tests[@]}" || die + exclude_expr="not (${exclude_expr#or })" || die + + local -x GENTOO_PIP_TESTING=1 \ + PATH="${TEST_DIR}/scripts:${PATH}" \ + PYTHONPATH="${TEST_DIR}/lib:${BUILD_DIR}/lib" + + pytest -vv \ + -k "${exclude_expr}" \ + -m "not network" \ + || die "Tests fail with ${EPYTHON}" +} + +python_install_all() { + # Prevent dbus auto-launch + # https://bugs.gentoo.org/692178 + export DBUS_SESSION_BUS_ADDRESS="disabled:" + + local DOCS=( AUTHORS.txt docs/html/**/*.rst ) + distutils-r1_python_install_all + + COMPLETION="${T}"/completion.tmp + + # 'pip completion' command embeds full $0 into completion script, which confuses + # 'complete' and causes QA warning when running as "${PYTHON} -m pip". + # This trick sets correct $0 while still calling just installed pip. + local pipcmd='import sys; sys.argv[0] = "pip"; import pip.__main__; sys.exit(pip.__main__._main())' + + ${PYTHON} -c "${pipcmd}" completion --bash > "${COMPLETION}" || die + newbashcomp "${COMPLETION}" ${PN} + + ${PYTHON} -c "${pipcmd}" completion --zsh > "${COMPLETION}" || die + insinto /usr/share/zsh/site-functions + newins "${COMPLETION}" _pip +} diff --git a/dev-python/py/Manifest b/dev-python/py/Manifest index 84b3b6162325..458db88fb1ac 100644 --- a/dev-python/py/Manifest +++ b/dev-python/py/Manifest @@ -1 +1,2 @@ +DIST py-1.10.0.tar.gz 206984 BLAKE2B 94abc8f348a0ae1b64a1417fbb5ea1e29929a0a98130a968ed80d92824c242a9614493c8c7f87c3db8294d2baf3bdb35ce0254fe2aac0fb6af2c151b682c5d33 SHA512 7a0eb964067bc01fa4f8ffe70b043abfd4619134fbee2935713e28382085d0b8972c319ed665a643b879b18ce662db8a9bd722937af7cf36c233214eea211dd1 DIST py-1.9.0.tar.gz 210098 BLAKE2B d7f9b22ebaedd12534198912c1fa0be80f42e97751701442e060e1c244b06ab82239fe78a3cc7119fa4df5d87ecfd97bfb2568744693d3ffe9824ae1d73e59f9 SHA512 965b2adfe1b13177629ccfcdf6d0a13460683ca7a01d585163deb1af15d926fc86680d9e51660f6cbb8569f822a4d54ce281c029e363d244ddf67e33b102ad0a diff --git a/dev-python/py/py-1.10.0.ebuild b/dev-python/py/py-1.10.0.ebuild new file mode 100644 index 000000000000..b945aab341dc --- /dev/null +++ b/dev-python/py/py-1.10.0.ebuild @@ -0,0 +1,24 @@ +# Copyright 1999-2020 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 + +DESCRIPTION="library with cross-python path, ini-parsing, io, code, log facilities" +HOMEPAGE="https://pylib.readthedocs.io/en/latest/ https://pypi.org/project/py/" +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 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +# This package is unmaintained and keeps being broken periodically. +RESTRICT=test + +BDEPEND=" + dev-python/setuptools_scm[${PYTHON_USEDEP}]" + +distutils_enable_sphinx doc +distutils_enable_tests pytest diff --git a/dev-python/pycryptodome/pycryptodome-3.9.9.ebuild b/dev-python/pycryptodome/pycryptodome-3.9.9.ebuild index c08cbba23e98..196de1bd4efe 100644 --- a/dev-python/pycryptodome/pycryptodome-3.9.9.ebuild +++ b/dev-python/pycryptodome/pycryptodome-3.9.9.ebuild @@ -18,7 +18,7 @@ SRC_URI=" LICENSE="BSD-2 Unlicense" SLOT="0" -KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 s390 sparc x86 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" IUSE="" DEPEND=" diff --git a/dev-python/pydocstyle/pydocstyle-5.1.1.ebuild b/dev-python/pydocstyle/pydocstyle-5.1.1.ebuild index 96bace9cfc12..3186a87c54b0 100644 --- a/dev-python/pydocstyle/pydocstyle-5.1.1.ebuild +++ b/dev-python/pydocstyle/pydocstyle-5.1.1.ebuild @@ -14,7 +14,7 @@ SRC_URI="https://github.com/PyCQA/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" LICENSE="MIT" SLOT="0" -KEYWORDS="~alpha amd64 arm64 ~ia64 ~ppc ~ppc64 ~sparc x86 ~x64-macos" +KEYWORDS="~alpha amd64 ~arm arm64 ~ia64 ~ppc ~ppc64 ~sparc x86 ~x64-macos" RDEPEND="dev-python/snowballstemmer[${PYTHON_USEDEP}]" diff --git a/dev-python/pyenchant/Manifest b/dev-python/pyenchant/Manifest index 4ece3fe2d8bb..fdf9ceeef8ec 100644 --- a/dev-python/pyenchant/Manifest +++ b/dev-python/pyenchant/Manifest @@ -1 +1,2 @@ DIST pyenchant-3.1.0.gh.tar.gz 75012 BLAKE2B dde78c4f8e986be7e7b4f82979bc446d68a88c3289d472948bb704120fb0dfc3064b8fd46b1883724b0084eefb9e52dfd522bcda290ed5e7a99ae62c948f828c SHA512 d2bf872c15fca1e2c1aa8de06a9ee2c0e6128a69f728383ae9b91fb0ead2d66f804388671cc8156716e240548c29da41eb6c0678dd889012009c690bd078a7de +DIST pyenchant-3.2.0.gh.tar.gz 75395 BLAKE2B bff9d4d5038252473fd7673758ecf1304f74f96514d984f5b6cd052042d0b2cf6fe2e149e3675777899107794c9d2fe1c630e87b031f38512ed2499ee1053f34 SHA512 63ca44aea9e7af3fecf554dc6156513c42d278a92170bd6b88b71a737def2e9fe7f7d2ecafd5fea2b860b4d5de55c9e8a6e4b30a58d6f28533bba71cc407850c diff --git a/dev-python/pyenchant/pyenchant-3.2.0.ebuild b/dev-python/pyenchant/pyenchant-3.2.0.ebuild new file mode 100644 index 000000000000..974bc2033c38 --- /dev/null +++ b/dev-python/pyenchant/pyenchant-3.2.0.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2020 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 + +DESCRIPTION="Python bindings for the Enchant spellchecking system" +HOMEPAGE="https://github.com/pyenchant/pyenchant + https://pypi.org/project/pyenchant/" +SRC_URI=" + https://github.com/pyenchant/pyenchant/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86" + +RDEPEND="app-text/enchant:*" +BDEPEND=" + test? ( + app-dicts/myspell-en + )" + +distutils_enable_tests pytest diff --git a/dev-python/pylama/pylama-7.7.1-r1.ebuild b/dev-python/pylama/pylama-7.7.1-r1.ebuild index 0940937997dd..888dff5c06d2 100644 --- a/dev-python/pylama/pylama-7.7.1-r1.ebuild +++ b/dev-python/pylama/pylama-7.7.1-r1.ebuild @@ -16,7 +16,7 @@ SRC_URI="https://github.com/klen/pylama/archive/${PV}.tar.gz -> ${P}.tar.gz" LICENSE="LGPL-3" SLOT="0" -KEYWORDS="~alpha ~amd64 arm64 ~ia64 ~ppc ~ppc64 ~x86 ~x64-macos" +KEYWORDS="~alpha ~amd64 ~arm arm64 ~ia64 ~ppc ~ppc64 ~x86 ~x64-macos" RDEPEND=" >=dev-python/mccabe-0.5.2[${PYTHON_USEDEP}] diff --git a/dev-python/pynest2d/pynest2d-4.8.0.ebuild b/dev-python/pynest2d/pynest2d-4.8.0.ebuild index 660c8d29853c..41f96e7ceb54 100644 --- a/dev-python/pynest2d/pynest2d-4.8.0.ebuild +++ b/dev-python/pynest2d/pynest2d-4.8.0.ebuild @@ -13,7 +13,7 @@ SRC_URI="https://github.com/Ultimaker/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" LICENSE="LGPL-3" SLOT="0" -KEYWORDS="~amd64 ~x86" +KEYWORDS="~amd64 ~arm64 ~x86" IUSE="" diff --git a/dev-python/pytest-xdist/Manifest b/dev-python/pytest-xdist/Manifest index 1a85694e4cdd..ef25b548c207 100644 --- a/dev-python/pytest-xdist/Manifest +++ b/dev-python/pytest-xdist/Manifest @@ -1,2 +1,3 @@ DIST pytest-xdist-1.34.0.tar.gz 66151 BLAKE2B ac5274e32b3ef6b72113efd4300eb6946a977e0e202d3383abcdbc022126b7806edb326ddc16abb1219e22eb091e06a9c39fce3031aaf5943d4ad653a47af142 SHA512 69e9877ee0268d71d7c0ca202ccc46b3ba1a9271f0e6e4ac4b76602833f9b7012364eb6924ae994e76c1d48d63adf1702d4c5e6ed5b75c52ac7ebae958210e24 DIST pytest-xdist-2.1.0.tar.gz 66332 BLAKE2B ac3c19a32bb9153537edfcf55bc656011661cf0d166da1aba969055a398616bb5782534a12ba354175be722c070fcfb2013d58405048814a3d11434a314e38b8 SHA512 85c69d8e649a19de5639738eae4cb213dc7323d96883ec82f39ab51a196346edd9fadbaf97f9763ac0dea104bc123d521264a39d2701878edfa76ce7e5bb347b +DIST pytest-xdist-2.2.0.tar.gz 64781 BLAKE2B 17287c28f31c42c6a8fe3622d4ba920a530e0ced3bc99cffd8f9de91c3498cc2a3b654cc32bd5b09ee8ec6c1f64226aec736acafd73397be2eb34bd3d192bb46 SHA512 2027f8512fbd6cb68ab36eb774b9d8b7e855c181733b884f394d0e84994926b4fe6158dbd55808328b262497036f101e71cb86553340eba0031d654f34541689 diff --git a/dev-python/pytest-xdist/files/pytest-xdist-2.2.0-services-conflict.patch b/dev-python/pytest-xdist/files/pytest-xdist-2.2.0-services-conflict.patch new file mode 100644 index 000000000000..2c911601b070 --- /dev/null +++ b/dev-python/pytest-xdist/files/pytest-xdist-2.2.0-services-conflict.patch @@ -0,0 +1,31 @@ +From 082beb2ce0fe1f338311d85e656b962df8a16ce1 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Tue, 15 Dec 2020 11:38:53 +0100 +Subject: [PATCH] Disable pytest-services plugin in test to avoid worker_id + conflict + +Pass "-p no:pytest-services" in test_worker_id_fixture() to ensure +that the presence (and implicit loading) of pytest-services will not +cause the test to fail via overriding worker name. + +Fixes #611 +--- + testing/acceptance_test.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/testing/acceptance_test.py b/testing/acceptance_test.py +index c273bfa..3bea8fc 100644 +--- a/testing/acceptance_test.py ++++ b/testing/acceptance_test.py +@@ -1025,7 +1025,7 @@ def test_worker_id_fixture(testdir, n): + f.write(worker_id) + """ + ) +- result = testdir.runpytest(f, "-n%d" % n) ++ result = testdir.runpytest(f, "-n%d" % n, "-p", "no:pytest-services") + result.stdout.fnmatch_lines("* 2 passed in *") + worker_ids = set() + for fname in glob.glob(str(testdir.tmpdir.join("*.txt"))): +-- +2.29.2 + diff --git a/dev-python/pytest-xdist/pytest-xdist-2.2.0.ebuild b/dev-python/pytest-xdist/pytest-xdist-2.2.0.ebuild new file mode 100644 index 000000000000..07b3272253f4 --- /dev/null +++ b/dev-python/pytest-xdist/pytest-xdist-2.2.0.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2020 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 + +DESCRIPTION="Distributed testing and loop-on-failing modes" +HOMEPAGE="https://pypi.org/project/pytest-xdist/ https://github.com/pytest-dev/pytest-xdist" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +SLOT="0" +LICENSE="MIT" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" + +# please do not depend on pytest to avoid unnecessary USEDEP enforcement +RDEPEND=" + dev-python/execnet[${PYTHON_USEDEP}] + dev-python/psutil[${PYTHON_USEDEP}] + dev-python/pytest-forked[${PYTHON_USEDEP}] +" + +BDEPEND=" + dev-python/setuptools_scm[${PYTHON_USEDEP}] + test? ( + dev-python/filelock[${PYTHON_USEDEP}] + ) +" + +PATCHES=( + "${FILESDIR}"/${P}-services-conflict.patch +) + +distutils_enable_tests --install pytest diff --git a/dev-python/pytest/Manifest b/dev-python/pytest/Manifest index da313e1669df..1a28961a671a 100644 --- a/dev-python/pytest/Manifest +++ b/dev-python/pytest/Manifest @@ -1,3 +1,4 @@ DIST pytest-4.6.11.tar.gz 952305 BLAKE2B af07adf5e8fc614b1fdb7b5673fb9c557ff0dd3f22e2f3bf853c643c5c8bd38f307018579299b700d90034a826db73a3e569857d6d6f7ac6646ace894b35a39b SHA512 6fddf4944bd9fab83024aa2d338d54aaf3d164bd5c7f634357376f3b0d2dab6a43d784e7fb567236c2d2f029151c5d9e2cb36c22e9b551c2c8823c52a2246e9c DIST pytest-5.4.3.tar.gz 1022353 BLAKE2B 70d4f23cbbfc4c4ce63c512ee0a01556973761a6d3ebb71a6d9ed4fb4a4a21531e1b151ed0e4c5e56e5dd3243a1a272441f17c4c2c4e3b0b19c24654b74e8e52 SHA512 0a07d4f4f791969c6f21961a0ba0f8c6670e5870c6cc1cebf93766587bb9cb3e10db8e57f0bd33dd22b275f3aad7aa674949f124ac80e0ccca64e35be4beee4e DIST pytest-6.1.2.tar.gz 1084943 BLAKE2B cbdf29c54118b5daf699f11fb674d37d5972a163a7a53f42f6ddf9224e2d8d9e84b9a88106d5a77e70f470ccbffb15c2cf9a939be69bc0a2cab1fc4c76054562 SHA512 6335e994c5273881c8d1c334fe6bfa9cd0a3e5c251f3d6a9332f7f7c1427e6560ff48d8f235b307ea5eb53491072daf30c41f566bb67b304354fd88d286c61b1 +DIST pytest-6.2.0.tar.gz 1101619 BLAKE2B c59d5c23c70aaa7670eb0e96cd5d57c6cdf21f2cdfacc2fb9c01a6baf211f85e5f757d7087589db2dc9a6f0b387ec7b25da5816d4cffc86f6e2c3c08b9f07f59 SHA512 58315bb5f9a696f5196da08912a0f32fd367ea11987d37ff74b0d00d961bb706e0d3604bc7c25a762e4ee66bd46ef4389b50eca11b3109406c169aefff395d51 diff --git a/dev-python/pytest/pytest-6.2.0.ebuild b/dev-python/pytest/pytest-6.2.0.ebuild new file mode 100644 index 000000000000..161e76e304f4 --- /dev/null +++ b/dev-python/pytest/pytest-6.2.0.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 ) + +inherit distutils-r1 + +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 ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/importlib_metadata[${PYTHON_USEDEP}] + ' python3_{6,7} pypy3) + 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/pluggy-1 + >=dev-python/py-1.8.2[${PYTHON_USEDEP}] + dev-python/toml[${PYTHON_USEDEP}] +" +# flake cause a number of tests to fail +DEPEND=" + >=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/requests[${PYTHON_USEDEP}] + dev-python/xmlschema[${PYTHON_USEDEP}] + !!dev-python/flaky + )" + +python_prepare_all() { + # fragile to warnings from other packages (setuptools) + # little value for us to run it + sed -i -e 's:test_no_warnings:_&:' \ + testing/test_meta.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + distutils_install_for_testing --via-root + + "${EPYTHON}" -m pytest -vv --lsof -rfsxX || + die "Tests failed with ${EPYTHON}" +} diff --git a/dev-python/pytools/Manifest b/dev-python/pytools/Manifest index 5c3319f523c1..3a48efaff2ff 100644 --- a/dev-python/pytools/Manifest +++ b/dev-python/pytools/Manifest @@ -1,2 +1,3 @@ DIST pytools-2020.4.3.tar.gz 62980 BLAKE2B 692d3aec649c89e473754ceeb13d141df6709f287ae45ae793d84de4321ba13a7fca766456a99f2134e81be4e3a084169f0e1f8f8b9595182efbaab89aefb616 SHA512 4f162114fee298812c0f63b0af1c4113fa1636b6dd4bb750b18decb60d7ad89adc2e460b9861c46ee1c8e11ca3ec437836ff173abe4436ba7784f18b1d6455a6 +DIST pytools-2020.4.4.tar.gz 61208 BLAKE2B e124ae0f2c6be9c760ac178f2043e2d63af7e1eaa79e343b52dc183724bac7e869185d14d43a79efb91cfc55f39c81747581c61badbcb8cbd3d02d6e9a9a79a0 SHA512 32dc47a5a6c39c806c0bc4ffc34a41a1bb51ada537dbba36cfefad7f4370793879b3cb143b37d6fd3542aad0d64ac663cca4c8f7a05db36a9522e9919a1ef3d1 DIST pytools-2020.4.tar.gz 67157 BLAKE2B 57fd583a7d5cc1337e20fedb5bc1c53c4025a01e7d4e3a5b05a0770a86e2bcabdde31dd535321215cf1bf2c7f3ed0b54e2407583bea63b63ca5b829f590a00be SHA512 66dea0d67c99c152edd7cd44e1262b6d163f065f5a4b697a5997f7453145af8fb0539d8eafa606fa18128908ce933c724b51bd1a76a6f7ab02e27db24496dc4c diff --git a/dev-python/pytools/pytools-2020.4.4.ebuild b/dev-python/pytools/pytools-2020.4.4.ebuild new file mode 100644 index 000000000000..cb1dd7a7c86e --- /dev/null +++ b/dev-python/pytools/pytools-2020.4.4.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) +PYTHON_REQ_USE='sqlite' +DISTUTILS_USE_SETUPTOOLS=bdepend + +inherit distutils-r1 + +DESCRIPTION="Collection of tools missing from the Python standard library" +HOMEPAGE="https://mathema.tician.de/software/pytools/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + >=dev-python/appdirs-1.4.0[${PYTHON_USEDEP}] + >=dev-python/decorator-3.2.0[${PYTHON_USEDEP}] + >=dev-python/numpy-1.6.0[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest diff --git a/dev-python/requests_download/metadata.xml b/dev-python/requests_download/metadata.xml index 6fc77f6bc0a1..a0e2c56e17c4 100644 --- a/dev-python/requests_download/metadata.xml +++ b/dev-python/requests_download/metadata.xml @@ -5,6 +5,7 @@ <email>chutzpah@gentoo.org</email> <name>Patrick McLean</name> </maintainer> + <stabilize-allarches/> <upstream> <remote-id type="pypi">requests_download</remote-id> <remote-id type="github">takluyver/requests_download</remote-id> diff --git a/dev-python/requests_download/requests_download-0.1.2.ebuild b/dev-python/requests_download/requests_download-0.1.2.ebuild index e9e97c0ecd01..970d4491eed9 100644 --- a/dev-python/requests_download/requests_download-0.1.2.ebuild +++ b/dev-python/requests_download/requests_download-0.1.2.ebuild @@ -12,7 +12,7 @@ SRC_URI="https://github.com/takluyver/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" LICENSE="MIT" SLOT="0" -KEYWORDS="~amd64 ~x86" +KEYWORDS="amd64 ~x86" RDEPEND="dev-python/requests[${PYTHON_USEDEP}]" BDEPEND="${RDEPEND}" diff --git a/dev-python/rq/Manifest b/dev-python/rq/Manifest index 4ddc9fdfd8cd..c6250e6d280c 100644 --- a/dev-python/rq/Manifest +++ b/dev-python/rq/Manifest @@ -1,3 +1,2 @@ -DIST rq-1.5.2.tar.gz 570138 BLAKE2B de1f9b9b1d790d0ea3efcd93e916f79b2f28521571652ba048adc725bd53b657cab5a7b2bc65b320a1c2766f77dba399ae62e90fa0a2514fc59565b8949c0327 SHA512 2e2cfe97d427057281415cfb1593ad504485b0398b72f55a93cfa48c7bae8f800ed1b1ad2aa447fe3f6baabd7bb112af29181577d31b270aee58cf4558d15a5b DIST rq-1.6.1.tar.gz 572668 BLAKE2B 4a1990492ed0c5e999fa918cdf49c03cf664e809b74f75c0aa941a72d9f3f45481e66c0d04780b88efa8e8ac2a8a94b11a0ad620d4c5f99e8abb3582db28e3d3 SHA512 8fc5f0cb87fb43fd6a0981dfb24a21d858e2d9fb2003c955d6d83b33a10b3cbaa713c11e422a91b4e020073d931fd3942530f3368fc8688dcff1a71fbe83fb15 DIST rq-1.7.0.tar.gz 579373 BLAKE2B 835868a294478af07b9fa97fef14b0f2013abe125263efa15c4988eeaf564ee61ab2e8d68842c730a0f8b02a19a4d66f328828fb939a05b9d3b36996688192e0 SHA512 4027a8e1474cc350cf539ecf5734c2f851ef4e61bf0e106e44f359736f4f1ec4e690af97a119d12b1b7614b38ec4da286acff98b718ef604b5c367b3cc2af741 diff --git a/dev-python/rq/rq-1.5.2.ebuild b/dev-python/rq/rq-1.5.2.ebuild deleted file mode 100644 index 16bcd7197943..000000000000 --- a/dev-python/rq/rq-1.5.2.ebuild +++ /dev/null @@ -1,66 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{6,7,8,9,10} ) -DISTUTILS_USE_SETUPTOOLS=rdepend - -inherit distutils-r1 - -DESCRIPTION="simple, lightweight library for creating and processing background jobs" -HOMEPAGE="https://python-rq.org https://github.com/rq/rq" -SRC_URI="https://github.com/rq/rq/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 x86" - -BDEPEND=" - test? ( - dev-db/redis - dev-python/mock[${PYTHON_USEDEP}] - dev-python/sentry-sdk[${PYTHON_USEDEP}] - ) -" -DEPEND=" - >=dev-python/click-5.0[${PYTHON_USEDEP}] - >=dev-python/redis-py-3.5.0[${PYTHON_USEDEP}] -" -RDEPEND="${DEPEND}" - -distutils_enable_tests pytest - -PATCHES=( - "${FILESDIR}/${PN}-1.5.0-no-install-tests.patch" -) - -src_test() { - local redis_pid="${T}"/redis.pid - local redis_port=6379 - local redis_test_config="daemonize yes - pidfile ${redis_pid} - port ${redis_port} - bind 127.0.0.1 - " - - # Spawn Redis itself for testing purposes - # NOTE: On sam@'s machine, spawning Redis can hang in the sandbox. - # I'm not restricting tests yet because this doesn't happen for anyone else AFAICT. - elog "Spawning Redis" - elog "NOTE: Port ${redis_port} must be free" - /usr/sbin/redis-server - <<< "${redis_test_config}" || die - - # Run the actual tests - distutils-r1_src_test - - # Clean up afterwards - kill "$(<"${redis_pid}")" || die -} - -python_test() { - # Tests needing rqworker: - # TestWorkerSubprocess::test_run_access_self, test_run_empty_queue, test_run_scheduled_access_self - distutils_install_for_testing - PATH="${BUILD_DIR}/test/scripts:${PATH}" pytest -vv || die "Testsuite failed under ${EPYTHON}" -} diff --git a/dev-python/rq/rq-1.6.1.ebuild b/dev-python/rq/rq-1.6.1.ebuild index baf13724f9e0..56c0afd42807 100644 --- a/dev-python/rq/rq-1.6.1.ebuild +++ b/dev-python/rq/rq-1.6.1.ebuild @@ -14,7 +14,7 @@ SRC_URI="https://github.com/rq/rq/archive/v${PV}.tar.gz -> ${P}.tar.gz" LICENSE="BSD" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" +KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 x86" BDEPEND=" test? ( diff --git a/dev-python/setuptools_scm/Manifest b/dev-python/setuptools_scm/Manifest index ee75f20f9a6d..4ded01287b40 100644 --- a/dev-python/setuptools_scm/Manifest +++ b/dev-python/setuptools_scm/Manifest @@ -1 +1,3 @@ DIST setuptools_scm-4.1.2.tar.gz 48784 BLAKE2B 258fab119d3c37c17bd173e4ac34d338a222cee5f55f6b4756f2cb7feeb09e366f8578eead56caeeebc02d1b048199c0b560609e5aecacb23870398ae86f0cf7 SHA512 3d9d1e0479f00f6159b57f9e5b24e34df035d2009ec50d3779c77b1246aabc6d816f2a2d3e6651791316009e39dfcc8a1b84b779077c39501b9de5740abe6af6 +DIST setuptools_scm-5.0.0.tar.gz 51575 BLAKE2B 60f1faefe48eda74836ad4927fa851b014a7ead7da1dcd04d102052944fb4f48e18680b9e334d2c3578fa610b3ef7efc76bb0cfc9feb0fe51868290a7abcf180 SHA512 4e8dcb1528e48e76804e3c5eec97f2052b509b672d2671545e1dcd6a1c9604bfd1ad32fc7aecc5f4c48841dda0e36b083632463b2f14b263e857482ab4df19f6 +DIST setuptools_scm-5.0.1.tar.gz 51679 BLAKE2B 33f43b437b675291ded4408dd5e68ffbf4615938f963516c0047ead023b2f2a50b28a0d91c7c72a8bdff678d9b8b292aeec36bf418b43f8d039f13560b1fbeb6 SHA512 055403539a26caeb119f3d6623e7b32ef52ccc11a39757fdd9b265ba191265346be5a062a5926a381ba47bbd1a666ffa632653ee6055050689cc38fe0f90cd0f diff --git a/dev-python/setuptools_scm/metadata.xml b/dev-python/setuptools_scm/metadata.xml index 62d25348c673..a565d594cb3e 100644 --- a/dev-python/setuptools_scm/metadata.xml +++ b/dev-python/setuptools_scm/metadata.xml @@ -7,8 +7,7 @@ </maintainer> <stabilize-allarches/> <upstream> - <remote-id type="pypi">setuptools_scm</remote-id> - <remote-id type="bitbucket">pypa/setuptools_scm</remote-id> + <remote-id type="pypi">setuptools-scm</remote-id> <remote-id type="github">pypa/setuptools_scm</remote-id> </upstream> <origin>gentoo-staging</origin> diff --git a/dev-python/setuptools_scm/setuptools_scm-5.0.0.ebuild b/dev-python/setuptools_scm/setuptools_scm-5.0.0.ebuild new file mode 100644 index 000000000000..a7bf379f055a --- /dev/null +++ b/dev-python/setuptools_scm/setuptools_scm-5.0.0.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Manage versions by scm tags via setuptools" +HOMEPAGE=" + https://github.com/pypa/setuptools_scm/ + https://pypi.org/project/setuptools-scm/" +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-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND=" + !!<dev-python/setuptools_scm-2 + test? ( + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/toml[${PYTHON_USEDEP}] + dev-vcs/git + !sparc? ( dev-vcs/mercurial ) )" + +python_prepare_all() { + # network access + sed -i -e 's:test_pip_download:_&:' testing/test_regressions.py || die + # all fetch specific setuptools versions + rm testing/test_setuptools_support.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + distutils_install_for_testing + pytest -v -v -x || die "Tests fail with ${EPYTHON}" +} diff --git a/dev-python/setuptools_scm/setuptools_scm-5.0.1.ebuild b/dev-python/setuptools_scm/setuptools_scm-5.0.1.ebuild new file mode 100644 index 000000000000..a7bf379f055a --- /dev/null +++ b/dev-python/setuptools_scm/setuptools_scm-5.0.1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Manage versions by scm tags via setuptools" +HOMEPAGE=" + https://github.com/pypa/setuptools_scm/ + https://pypi.org/project/setuptools-scm/" +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-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND=" + !!<dev-python/setuptools_scm-2 + test? ( + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/toml[${PYTHON_USEDEP}] + dev-vcs/git + !sparc? ( dev-vcs/mercurial ) )" + +python_prepare_all() { + # network access + sed -i -e 's:test_pip_download:_&:' testing/test_regressions.py || die + # all fetch specific setuptools versions + rm testing/test_setuptools_support.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + distutils_install_for_testing + pytest -v -v -x || die "Tests fail with ${EPYTHON}" +} diff --git a/dev-python/slixmpp/slixmpp-1.5.2.ebuild b/dev-python/slixmpp/slixmpp-1.5.2.ebuild index fa41551865d6..d8d3c57f2d55 100644 --- a/dev-python/slixmpp/slixmpp-1.5.2.ebuild +++ b/dev-python/slixmpp/slixmpp-1.5.2.ebuild @@ -31,4 +31,6 @@ RDEPEND=" ${DEPEND} " -distutils_enable_tests pytest +python_test() { + "${EPYTHON}" ./run_tests.py || die "Tests failed with ${EPYTHON}" +} diff --git a/dev-python/slixmpp/slixmpp-9999.ebuild b/dev-python/slixmpp/slixmpp-9999.ebuild index fa41551865d6..d8d3c57f2d55 100644 --- a/dev-python/slixmpp/slixmpp-9999.ebuild +++ b/dev-python/slixmpp/slixmpp-9999.ebuild @@ -31,4 +31,6 @@ RDEPEND=" ${DEPEND} " -distutils_enable_tests pytest +python_test() { + "${EPYTHON}" ./run_tests.py || die "Tests failed with ${EPYTHON}" +} diff --git a/dev-python/sphinxcontrib-asyncio/sphinxcontrib-asyncio-0.2.0-r2.ebuild b/dev-python/sphinxcontrib-asyncio/sphinxcontrib-asyncio-0.2.0-r2.ebuild index 145b9ae47192..f8098607e6b1 100644 --- a/dev-python/sphinxcontrib-asyncio/sphinxcontrib-asyncio-0.2.0-r2.ebuild +++ b/dev-python/sphinxcontrib-asyncio/sphinxcontrib-asyncio-0.2.0-r2.ebuild @@ -12,7 +12,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="Apache-2.0" SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 ~riscv s390 sparc x86 ~amd64-linux ~x86-linux" IUSE="doc" DEPEND=" diff --git a/dev-python/sphinxcontrib-issuetracker/sphinxcontrib-issuetracker-0.11-r1.ebuild b/dev-python/sphinxcontrib-issuetracker/sphinxcontrib-issuetracker-0.11-r1.ebuild deleted file mode 100644 index 791672aced14..000000000000 --- a/dev-python/sphinxcontrib-issuetracker/sphinxcontrib-issuetracker-0.11-r1.ebuild +++ /dev/null @@ -1,57 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -PYTHON_COMPAT=( python3_{6,7,8,9,10} ) - -inherit distutils-r1 - -DESCRIPTION="Extension to sphinx to create links to issue trackers" -HOMEPAGE="https://sphinxcontrib-issuetracker.readthedocs.org/" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="BSD-2" -SLOT="0" -KEYWORDS="~alpha amd64 arm ~arm64 hppa ~ia64 ppc ppc64 ~s390 sparc x86" -IUSE="doc test" -RESTRICT="!test? ( test )" - -RDEPEND=" - >=dev-python/requests-0.13[${PYTHON_USEDEP}] - >=dev-python/sphinx-1.1[${PYTHON_USEDEP}]" -DEPEND="${RDEPEND} - dev-python/setuptools[${PYTHON_USEDEP}] - test? ( - dev-python/mock[${PYTHON_USEDEP}] - dev-python/pytest[${PYTHON_USEDEP}] - )" - -python_prepare_all() { - # test requires network access (bug #425694) - rm tests/test_builtin_trackers.py || die - - # Tests from tests/test_stylesheet.py require dev-python/PyQt4[X,webkit] - # and virtualx.eclass. - rm tests/test_stylesheet.py || die - - # Avoid redundant objects.inv from downloading, sed more lightwieght - if use doc; then - sed -e "s:^intersphinx_mapping:#intersphinx_mapping:" \ - -e "s:^ 'sphinx':#:" \ - -i doc/conf.py || die - fi - - distutils-r1_python_prepare_all -} - -python_compile_all() { - if use doc; then - emake -C doc html - HTML_DOCS=( doc/_build/html/. ) - fi -} - -python_test() { - py.test || die -} diff --git a/dev-python/sphinxcontrib-issuetracker/sphinxcontrib-issuetracker-0.11-r2.ebuild b/dev-python/sphinxcontrib-issuetracker/sphinxcontrib-issuetracker-0.11-r2.ebuild index 2ff99a53b349..b10170035473 100644 --- a/dev-python/sphinxcontrib-issuetracker/sphinxcontrib-issuetracker-0.11-r2.ebuild +++ b/dev-python/sphinxcontrib-issuetracker/sphinxcontrib-issuetracker-0.11-r2.ebuild @@ -8,7 +8,7 @@ PYTHON_COMPAT=( python3_{6,7,8,9,10} ) inherit distutils-r1 DESCRIPTION="Extension to sphinx to create links to issue trackers" -HOMEPAGE="https://sphinxcontrib-issuetracker.readthedocs.org/" +HOMEPAGE="https://pypi.org/project/sphinxcontrib-issuetracker/" SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="BSD-2" diff --git a/dev-python/sshtunnel/Manifest b/dev-python/sshtunnel/Manifest index 135312938def..9e0f87790788 100644 --- a/dev-python/sshtunnel/Manifest +++ b/dev-python/sshtunnel/Manifest @@ -1,3 +1,2 @@ -DIST sshtunnel-0.1.4.tar.gz 48330 BLAKE2B 5fdc5dd602274a16025f250fcc3a36453a17c921f51367cac0cb0ef36be6251f687b53b1df6072d1e32456a5c0fa5ec6d2fd8e5d4874977a641a6c9ba81ac57c SHA512 c228fe79cf5172c950777a40b27ababd42a31b7aad8a8472d55a2b3babf5aa4c5308799bb271f33f0e943c309eb9adedee321045a03324cb5e30a385178751ca DIST sshtunnel-0.1.5.tar.gz 49345 BLAKE2B dde497296ebf84cd34a485ac82de3ca138671b4b8ad2d2307a5e40dc0bb9c6a6daa8c8f3888db942133a9a0fb5321c240c5f2db7c93baf824c9cefaf361ef7c9 SHA512 ae804865a83bae8443cff1a73b168ffb8aac0c5c4fa6c7a5e142f4f95b4eef34bc7674588fa8797fa35b2685016828bcb137f4102e84ea15089671cf64503d17 DIST sshtunnel-0.3.1.tar.gz 51392 BLAKE2B 9cf5c0e1f12489e482abf73e74d1a59bdc619b5248265add15744357ef49bf502e013b9d4494efff27e45817e0728f2cee3629f5cf21ba9849f564e84ac9c4a9 SHA512 5c24243cae959cf38f2cdcad4351950ca3abd1c6d289829b6603cd8e93b8d61480c4c7b3607bb38615854825c0bf08890c2362f79104c8bae7f9bf8e0931aa85 diff --git a/dev-python/sshtunnel/sshtunnel-0.1.4-r2.ebuild b/dev-python/sshtunnel/sshtunnel-0.1.4-r2.ebuild deleted file mode 100644 index 7c0feb3ac3bc..000000000000 --- a/dev-python/sshtunnel/sshtunnel-0.1.4-r2.ebuild +++ /dev/null @@ -1,24 +0,0 @@ -# Copyright 1999-2020 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="Pure python SSH tunnels" -HOMEPAGE="https://pypi.python.org/pypi/sshtunnel" -SRC_URI="mirror://pypi/s/sshtunnel/${P}.tar.gz" - -KEYWORDS="amd64 ~arm x86" -LICENSE="MIT" -SLOT="0" - -RDEPEND="dev-python/paramiko[${PYTHON_USEDEP}]" - -DEPEND="${RDEPEND} - dev-python/setuptools[${PYTHON_USEDEP}] -" - -# https://bugs.gentoo.org/683774 -RESTRICT="test" diff --git a/dev-python/sshtunnel/sshtunnel-0.1.5.ebuild b/dev-python/sshtunnel/sshtunnel-0.1.5.ebuild index be5418f5cfe6..b074ed16351e 100644 --- a/dev-python/sshtunnel/sshtunnel-0.1.5.ebuild +++ b/dev-python/sshtunnel/sshtunnel-0.1.5.ebuild @@ -10,7 +10,7 @@ DESCRIPTION="Pure Python SSH tunnels" HOMEPAGE="https://pypi.python.org/pypi/sshtunnel" SRC_URI="mirror://pypi/s/sshtunnel/${P}.tar.gz" -KEYWORDS="~amd64 ~arm x86" +KEYWORDS="amd64 ~arm x86" LICENSE="MIT" SLOT="0" diff --git a/dev-python/stomp-py/Manifest b/dev-python/stomp-py/Manifest new file mode 100644 index 000000000000..36c72ae4158f --- /dev/null +++ b/dev-python/stomp-py/Manifest @@ -0,0 +1 @@ +DIST stomp.py-6.1.0.tar.gz 34690 BLAKE2B bf7ec2899be25bdc373e7d0d73281a6c4aa8b91a05e6ede263f0f9498b2ba3b9bd2c90b0fe472664c930dadf68ccaf09c74b69e7270259c3959396edff04e07b SHA512 73284b5dac8b9ef0d1251cc1059c4b1a545018a39498303d211fd165f0fb80439f2e01f82e18644cfd5d77a4badedcbced57d184ffc7c19f57945e5262f2394a diff --git a/dev-python/stomp-py/metadata.xml b/dev-python/stomp-py/metadata.xml new file mode 100644 index 000000000000..c1dccf917509 --- /dev/null +++ b/dev-python/stomp-py/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>marecki@gentoo.org</email> + <name>Marek Szuba</name> + </maintainer> + <upstream> + <remote-id type="pypi">stomp.py</remote-id> + <remote-id type="github">jasonrbriggs/stomp.py</remote-id> + </upstream> + <origin>gentoo-staging</origin> +</pkgmetadata> diff --git a/dev-python/stomp-py/stomp-py-6.1.0.ebuild b/dev-python/stomp-py/stomp-py-6.1.0.ebuild new file mode 100644 index 000000000000..7baf401a5d64 --- /dev/null +++ b/dev-python/stomp-py/stomp-py-6.1.0.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) +DISTUTILS_USE_SETUPTOOLS="pyproject.toml" + +inherit distutils-r1 + +MY_PN="${PN//-/.}" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Python client library for the STOMP messaging protocol" +HOMEPAGE="https://pypi.org/project/stomp.py/ https://github.com/jasonrbriggs/stomp.py/" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND="<dev-python/docopt-0.7.0[${PYTHON_USEDEP}]" + +# stomp.py test suite requires quite a few appropriately configured +# messaging servers (as of 6.1.0: RabbitMQ, ActiveMQ, ActiveMQ Artemis, +# stompserver). Upstream relies on Docker to provide those servers, however +# doing the same in src_test would require both granting the portage user +# extra permissions and packaging the base image (trying to download it +# on the fly would violate the network sandbox). +# Side note: PyPI tarballs do not include tests. +RESTRICT="test" + +S="${WORKDIR}"/${MY_P} diff --git a/dev-python/subunit/files/subunit-1.4.0-werror.patch b/dev-python/subunit/files/subunit-1.4.0-werror.patch new file mode 100644 index 000000000000..e64f74a655ef --- /dev/null +++ b/dev-python/subunit/files/subunit-1.4.0-werror.patch @@ -0,0 +1,34 @@ +# https://bugs.gentoo.org/744313 + +--- a/configure.ac ++++ b/configure.ac +@@ -4,11 +4,11 @@ + m4_define([SUBUNIT_VERSION], + m4_defn([SUBUNIT_MAJOR_VERSION]).m4_defn([SUBUNIT_MINOR_VERSION]).m4_defn([SUBUNIT_MICRO_VERSION])) + AC_PREREQ([2.59]) + AC_INIT([subunit], [SUBUNIT_VERSION], [subunit-dev@lists.launchpad.net]) + AC_CONFIG_SRCDIR([c/lib/child.c]) +-AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects]) ++AM_INIT_AUTOMAKE([-Wall foreign subdir-objects]) + AC_CONFIG_MACRO_DIR([m4]) + [SUBUNIT_MAJOR_VERSION]=SUBUNIT_MAJOR_VERSION + [SUBUNIT_MINOR_VERSION]=SUBUNIT_MINOR_VERSION + [SUBUNIT_MICRO_VERSION]=SUBUNIT_MICRO_VERSION + [SUBUNIT_VERSION]=SUBUNIT_VERSION +@@ -26,14 +26,14 @@ + AC_PROG_LIBTOOL + AM_PATH_PYTHON + + AS_IF([test "$GCC" = "yes"], + [ +- SUBUNIT_CFLAGS="-Wall -Werror -Wextra -Wstrict-prototypes " ++ SUBUNIT_CFLAGS="-Wall -Wextra -Wstrict-prototypes " + SUBUNIT_CFLAGS="$SUBUNIT_CFLAGS -Wmissing-prototypes -Wwrite-strings " + SUBUNIT_CFLAGS="$SUBUNIT_CFLAGS -Wno-variadic-macros " +- SUBUNIT_CXXFLAGS="-Wall -Werror -Wextra -Wwrite-strings -Wno-variadic-macros" ++ SUBUNIT_CXXFLAGS="-Wall -Wextra -Wwrite-strings -Wno-variadic-macros" + ]) + + AM_CFLAGS="$SUBUNIT_CFLAGS -I\$(top_srcdir)/c/include" + AM_CXXFLAGS="$SUBUNIT_CXXFLAGS -I\$(top_srcdir)/c/include" + AC_SUBST(AM_CFLAGS) diff --git a/dev-python/subunit/subunit-1.4.0.ebuild b/dev-python/subunit/subunit-1.4.0.ebuild index a01df0118da7..b7c37768b937 100644 --- a/dev-python/subunit/subunit-1.4.0.ebuild +++ b/dev-python/subunit/subunit-1.4.0.ebuild @@ -5,7 +5,7 @@ EAPI=7 PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 ) -inherit distutils-r1 multilib-minimal +inherit distutils-r1 multilib-minimal autotools DESCRIPTION="A streaming protocol for test results" HOMEPAGE="https://launchpad.net/subunit https://pypi.org/project/python-subunit/" @@ -34,6 +34,10 @@ DEPEND=" dev-python/testscenarios[${PYTHON_USEDEP}] )" +PATCHES=( + "${FILESDIR}/subunit-1.4.0-werror.patch" +) + src_prepare() { sed -i -e 's/os.chdir(os.path.dirname(__file__))//' setup.py || die @@ -45,6 +49,7 @@ src_prepare() { python/subunit/tests/test_subunit_tags.py || die distutils-r1_src_prepare + eautoreconf multilib_copy_sources } diff --git a/dev-python/sympy/Manifest b/dev-python/sympy/Manifest index 7b13eac266d4..3beb69c6899d 100644 --- a/dev-python/sympy/Manifest +++ b/dev-python/sympy/Manifest @@ -1,2 +1,3 @@ DIST sympy-1.6.2.tar.gz 6811705 BLAKE2B 4cd894d28bedc986acc8ef67aa60f82e0899c2ed028658a8f340d7538b890e0ed380b3614a464eb58d71873b29b0795508b4556bb8115bf0c108336ef1e4cca3 SHA512 e16a1d85aba438e4248bac48a163ea1827e2cee57c28f7670ed19cc69d4c08d6796d62f79d245e269d75765b8f7ff4f4ca2841f98534e136ceeb5d3f7a5d252a +DIST sympy-1.7.1.tar.gz 6974183 BLAKE2B 4bd8c9d60c46b05a7fc6c622667858fe17d25798756dbe967ce19abc8047263fe540f332e39418e877852c0565270377bd01fea7e65aa35ed4e03079bc130805 SHA512 eb9387bb9c632203af650279f896427556725b7496c00d8dfe97b7476beedbbee5714659f7fb44b4fa986c9567cdcaefcc19401d63e1ca0e9a6c7317855440ea DIST sympy-1.7.tar.gz 6969594 BLAKE2B c4ebd395e50f589dba2d01bf50a1a9cd7fb34e95e2b8632a64df5fe1a6625889c4e161b8a22aa815857cc3eb0d502f03ec8d9de694f369aaca7e573a2fab03ee SHA512 f7bdaff7432436dc888e56d4b56d023c8da5cfb54dfa6955cf7999acceedfd5175f910fb9b3c5776145f3dc3036f78e66813cdba4201be854dfa2c5c9f4e9f4d diff --git a/dev-python/sympy/sympy-1.7.1.ebuild b/dev-python/sympy/sympy-1.7.1.ebuild new file mode 100644 index 000000000000..f1fccb5232a0 --- /dev/null +++ b/dev-python/sympy/sympy-1.7.1.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) + +inherit distutils-r1 virtualx + +DESCRIPTION="Computer Algebra System in pure Python" +HOMEPAGE="https://www.sympy.org/" +SRC_URI="https://github.com/sympy/sympy/archive/${P}.tar.gz" +S="${WORKDIR}/${PN}-${P}" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="examples imaging ipython latex mathml opengl pdf png pyglet symengine test texmacs theano" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" +RESTRICT="!test? ( test )" + +BDEPEND="test? ( dev-python/pytest[${PYTHON_USEDEP}] )" +RDEPEND="dev-python/mpmath[${PYTHON_USEDEP}] + dev-python/pexpect[${PYTHON_USEDEP}] + imaging? ( dev-python/pillow[${PYTHON_USEDEP}] ) + ipython? ( dev-python/ipython[${PYTHON_USEDEP}] ) + latex? ( + virtual/latex-base + dev-texlive/texlive-fontsextra + png? ( app-text/dvipng ) + pdf? ( app-text/ghostscript-gpl ) + ) + mathml? ( dev-libs/libxml2:2[${PYTHON_USEDEP}] ) + opengl? ( dev-python/pyopengl[${PYTHON_USEDEP}] ) + pyglet? ( dev-python/pyglet[${PYTHON_USEDEP}] ) + symengine? ( dev-python/symengine[${PYTHON_USEDEP}] ) + texmacs? ( app-office/texmacs ) + theano? ( dev-python/theano[${PYTHON_USEDEP}] ) +" + +src_test() { + virtx distutils-r1_src_test +} + +python_test() { + "${EPYTHON}" setup.py test || die "Tests failed with ${EPYTHON}" +} + +python_install_all() { + local DOCS=( AUTHORS README.md ) + + if use examples; then + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + fi + + distutils-r1_python_install_all + + if use texmacs; then + exeinto /usr/libexec/TeXmacs/bin/ + doexe data/TeXmacs/bin/tm_sympy + insinto /usr/share/TeXmacs/plugins/sympy/ + doins -r data/TeXmacs/progs + fi +} diff --git a/dev-python/translate-toolkit/Manifest b/dev-python/translate-toolkit/Manifest index f05d250ad231..f14204949a4c 100644 --- a/dev-python/translate-toolkit/Manifest +++ b/dev-python/translate-toolkit/Manifest @@ -1,2 +1 @@ -DIST translate-toolkit-2.5.1.tar.gz 5984081 BLAKE2B 55e158d0d354f181a4e23d9638306eb82bda0dd3133a507de682a54c4197d36ae6ad6bf3d733eb841d9406933407eb98c5874a13e55c7840a672971e87721d94 SHA512 57bdd7f824527955fde6db3a69ffadc27814336c6f792d08bb70e56e95a646d0366e8a3a48ac187ef62804f79dd8a61a4a0b76c8a28e57047c310fcfdf79e999 DIST translate-toolkit-3.2.0.tar.gz 6029254 BLAKE2B fe4c30e09fcba6755a928775f931f1027bb5678606e74aa435fd5803642ab39b8b55d763bb96dba6b1a957d6656cfca4ec6400b735afd8df7f2c1273ac173c89 SHA512 1045762a5c63cc2bc8459b61a85ef56e4f1d1f705d74646b8235169f22d8d5aa4ab5e3599af52a860d9e434df0fad3e98836b0c021bb0a9697b36a59edbfb6ec diff --git a/dev-python/translate-toolkit/translate-toolkit-2.5.1.ebuild b/dev-python/translate-toolkit/translate-toolkit-2.5.1.ebuild deleted file mode 100644 index 15dfa15f9613..000000000000 --- a/dev-python/translate-toolkit/translate-toolkit-2.5.1.ebuild +++ /dev/null @@ -1,77 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{6,7,8,9,10} ) -PYTHON_REQ_USE="sqlite" -DISTUTILS_USE_SETUPTOOLS=rdepend -inherit distutils-r1 - -DESCRIPTION="Toolkit to convert between many translation formats" -HOMEPAGE="https://github.com/translate/translate" -SRC_URI="https://github.com/translate/translate/releases/download/${PV}/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 arm64 x86 ~amd64-linux ~x86-linux" -IUSE="doc +html +ical +ini +subtitles +yaml" - -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -BDEPEND=" - doc? ( >=dev-python/sphinx-3.0.2 ) -" -DEPEND=" - >=dev-python/six-1.11.0[${PYTHON_USEDEP}] -" -RDEPEND="${DEPEND} - !dev-python/pydiff - app-text/iso-codes - >=dev-python/chardet-3.0.4[${PYTHON_USEDEP}] - >=dev-python/lxml-4.3.1[${PYTHON_USEDEP}] - >=dev-python/pycountry-19.8.18[${PYTHON_USEDEP}] - >=dev-python/python-levenshtein-0.12.0[${PYTHON_USEDEP}] - sys-devel/gettext - html? ( dev-python/utidylib[${PYTHON_USEDEP}] ) - ical? ( dev-python/vobject[${PYTHON_USEDEP}] ) - ini? ( >=dev-python/iniparse-0.5[${PYTHON_USEDEP}] ) - subtitles? ( media-video/gaupol[${PYTHON_USEDEP}] ) - yaml? ( dev-python/pyyaml[${PYTHON_USEDEP}] ) -" - -python_prepare_all() { - # Prevent unwanted d'loading in doc build - sed -e "/^ 'sphinx.ext.intersphinx',/d" \ - -e "/html_theme/ s/sphinx-bootstrap/classic/" \ - -i docs/conf.py || die - - distutils-r1_python_prepare_all -} - -python_compile_all() { - if use doc; then - emake -C docs html - HTML_DOCS=( "${S}"/docs/_build/html/. ) - fi -} - -python_install_all() { - distutils-r1_python_install_all - - rm -Rf docs || die - if ! use html; then - rm "${ED}"/usr/bin/{html2po,po2html} || die - fi - if ! use ical; then - rm "${ED}"/usr/bin/{ical2po,po2ical} || die - fi - if ! use ini; then - rm "${ED}"/usr/bin/{ini2po,po2ini} || die - fi - if ! use subtitles; then - rm "${ED}"/usr/bin/{sub2po,po2sub} || die - fi - - python_optimize -} diff --git a/dev-python/translate-toolkit/translate-toolkit-3.2.0.ebuild b/dev-python/translate-toolkit/translate-toolkit-3.2.0.ebuild index 84af1856afe4..8d61df13e8ea 100644 --- a/dev-python/translate-toolkit/translate-toolkit-3.2.0.ebuild +++ b/dev-python/translate-toolkit/translate-toolkit-3.2.0.ebuild @@ -14,7 +14,7 @@ SRC_URI="https://github.com/translate/translate/releases/download/${PV}/${P}.tar LICENSE="GPL-2" SLOT="0" -KEYWORDS="~amd64 ~arm64 ~x86" +KEYWORDS="amd64 arm64 x86" IUSE="doc +html +ical +ini +subtitles +yaml" REQUIRED_USE="${PYTHON_REQUIRED_USE}" diff --git a/dev-python/tree-sitter/tree-sitter-0.2.0.ebuild b/dev-python/tree-sitter/tree-sitter-0.2.0.ebuild index 861c4cfa2399..696d9e5f152f 100644 --- a/dev-python/tree-sitter/tree-sitter-0.2.0.ebuild +++ b/dev-python/tree-sitter/tree-sitter-0.2.0.ebuild @@ -15,6 +15,6 @@ SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_P}.tar.gz" LICENSE="MIT" SLOT="0" -KEYWORDS="~amd64 ~x86" +KEYWORDS="~amd64 ~x86 ~x64-macos" S="${WORKDIR}/${MY_P}" diff --git a/dev-python/wheel/Manifest b/dev-python/wheel/Manifest index 23434ac64934..a7c35f1fb5d7 100644 --- a/dev-python/wheel/Manifest +++ b/dev-python/wheel/Manifest @@ -1,3 +1,4 @@ DIST wheel-0.35.1.gh.tar.gz 63563 BLAKE2B d1432a638b91e821cb9b9fc748567b9ad18bbfd4737cee915ee3e2c585c4758e79bcf163edac56a09f9e356d81a057214c8e84c5c75b45505c67aa761e97fe3f SHA512 34cd6d1a649842abd895418c0183e68f44e228be905041e1dd8562987fbab8aa617da9b78479cb8d56fb6bb8714ec1085b87640c385bfc933e215f6e33ccf55b DIST wheel-0.36.0.gh.tar.gz 65186 BLAKE2B 384dea20a6fdc2e9cc581c1e30814ac84285b8ca2ac5588fc837a1e27add493dedd38ead643776d1353a98cafa45a609e9655168fd09944cfe016d99e357fcd2 SHA512 1f851dfc18fa96d67bb96c61eec15999c46ea77c490173b71121810480f3c30f2de770a2e6e0712d04f35c91fcadbb276b05968e2b5db76dea882929f555f983 DIST wheel-0.36.1.gh.tar.gz 65846 BLAKE2B 906bd8887ab0efc6542547c603d613e6b12e4ea56e8d037c3a4532e064f3d337cd5c161e2c2557cc832262a42eeda2850303f1d92e8de45f44321ebc9d47c955 SHA512 1f9a27604b0fa0d1ae4782bdba57956a70d74a9a736f4c41481b417cd1e8a86938705555c37835ffe1a061ef55f8adad3475bfc20e2c1fd8de8083dd5c72cca0 +DIST wheel-0.36.2.gh.tar.gz 67999 BLAKE2B 0bb6742ddb25a5b94f94fd071dfe63ae5fa555731625b4b8ca2c7abb1a255e24590ae9ea250ada0473fcd74f19bdca7e529f8eda1a79d8e394d8b339bd2a257a SHA512 23f3dd0540ecc8e762f37a4bb69713abe99125a605c03b1a3412cec910fb7a6cea3eee3910d7c98122b276170a17414c9132b57b57a30a4ba1283cea8f9e20fa diff --git a/dev-python/wheel/wheel-0.36.2.ebuild b/dev-python/wheel/wheel-0.36.2.ebuild new file mode 100644 index 000000000000..0475f2c77666 --- /dev/null +++ b/dev-python/wheel/wheel-0.36.2.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 ) + +inherit distutils-r1 eutils + +DESCRIPTION="A built-package format for Python" +HOMEPAGE="https://pypi.org/project/wheel/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" +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 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" + +distutils_enable_tests pytest + +src_prepare() { + sed \ + -e 's:--cov=wheel::g' \ + -i setup.cfg || die + distutils-r1_src_prepare +} + +python_test() { + if ! python_is_python3; then + # install fails due to unicode in paths + ewarn "Testing is broken with py2.7, please test externally" + return + fi + + distutils_install_for_testing --via-root + pytest -vv || die "Tests failed with ${EPYTHON}" +} diff --git a/dev-python/wsaccel/Manifest b/dev-python/wsaccel/Manifest index 4e029850745d..91766826cb0b 100644 --- a/dev-python/wsaccel/Manifest +++ b/dev-python/wsaccel/Manifest @@ -1 +1,2 @@ DIST wsaccel-0.6.2_p20170108.zip 21344 BLAKE2B ecb8ef7888fb2ca8e6566d2b3fcbd3911a0df5a8c9f4be86a3cffb95afc31603c2477bd983f9d24ee7cf48c33cbcfb10068c38640ee2a888f46402756313cf29 SHA512 d0cf13360bd6cc0b51b8bee1d36a8ee544816c318e828bf6129ff85827636642cfebae4ef0e99d841cdf64f6c67006a649994804aa42d3d76e977a861aafb3b9 +DIST wsaccel-0.6.3.tar.gz 9723 BLAKE2B 75da0f27e07b52ed730d239ef807da7ba9dd342144ca2e78c32dc09b20c1ebfc006aa9969b1f811d172ca18b75533a4560a29112e56d6dfd472117a0d072fc8e SHA512 0fe97c7fa94cec1b9cf019507f55ce633a9b4bda86329937cddcfa25ba94755010813688cda77ee4fea1c50918e45cd50770bb27e7583e630c46e84d27c155da diff --git a/dev-python/wsaccel/wsaccel-0.6.3.ebuild b/dev-python/wsaccel/wsaccel-0.6.3.ebuild new file mode 100644 index 000000000000..774553bcb166 --- /dev/null +++ b/dev-python/wsaccel/wsaccel-0.6.3.ebuild @@ -0,0 +1,19 @@ +# Copyright 1999-2020 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="Accelerator for ws4py, autobahn and tornado" +HOMEPAGE="https://pypi.org/project/wsaccel/ https://github.com/methane/wsaccel" +SRC_URI="https://github.com/methane/wsaccel/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +SLOT="0" +LICENSE="Apache-2.0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux" + +BDEPEND="dev-python/cython[${PYTHON_USEDEP}]" + +distutils_enable_tests pytest diff --git a/dev-python/xarray/Manifest b/dev-python/xarray/Manifest index 9d4b9a60cdee..53282ff96824 100644 --- a/dev-python/xarray/Manifest +++ b/dev-python/xarray/Manifest @@ -1,4 +1,2 @@ -DIST xarray-0.12.1.tar.gz 1745116 BLAKE2B f38380503347a17cfe11e930b5e275912fb4fb3f02de057e61b21ad1515c8f5e2d5c28007ebb20cecda0f4398b7c71ce239fb3d6f25a79600f5da509f0976359 SHA512 f9e8033b9387ec4175c9d65199aff9cdfc442abb9d2736fb47ab6170ab1e1860b4eb693317a64dad560ab6974f08f7c13f24ecf24c087154ae2d71203e584426 -DIST xarray-0.16.0.tar.gz 1987841 BLAKE2B 9e191d0c8416b3cbeac484b4bdb12a702314bd6bb982c958f346152ce31832f901c257c59adeca6d32f513de62245648610fd21f4d2ba0e9d6360239c2c4134a SHA512 25a4c967d316eac97389ac4f7e43483655ba93bec0af0f338416f8cd9493dc22b6709c7c66640dc5021f70438d2e26c8f419bda178bb6f27f951b8515b2610fc DIST xarray-0.16.1.tar.gz 2007111 BLAKE2B 426485a921669e2a5c92eec143d5470c5fabcbe9c0ec440c39b27b3b95aa2e87d494397c3b3ad69b0856a2c467b025beccd188aee40a5b96a5d411bb2d66ada6 SHA512 b02dc0a0993c1a41b839d693fb1b3639cfe2a449ae53da39adac01a19749e7945217716a8a07bedd9ef4d63f333a0ac4ce3fed6a8da9042468fdce2290656321 DIST xarray-0.16.2.tar.gz 2018053 BLAKE2B 3b95c688a3979323b93ec46c9f218795fbf9df56a7ba1459a507ac36379b3240c351cbb3f1907a204199c6c0c4c0c1c516552548d1e03fb987ad718561aa9772 SHA512 f6cd3eee2012e3b544874388c4824e911ce5d213cd393bf01b10deb9742a1168f41629e4f1e49220228771cac920980eaa98a599a6d62c383dd3da7b3bfe0dd8 diff --git a/dev-python/xarray/files/xarray-0.10.8-skip-broken-test.patch b/dev-python/xarray/files/xarray-0.10.8-skip-broken-test.patch deleted file mode 100644 index 62798cbcb5ba..000000000000 --- a/dev-python/xarray/files/xarray-0.10.8-skip-broken-test.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff --git a/xarray/tests/test_variable.py b/xarray/tests/test_variable.py -index 290c7a6e..d49a048e 100644 ---- a/xarray/tests/test_variable.py -+++ b/xarray/tests/test_variable.py -@@ -373,6 +373,7 @@ class VariableSubclassTestCases(object): - assert v[0].values == np.asarray(data)[0] - assert np.asarray(v[0]) == np.asarray(data)[0] - -+ @pytest.mark.skip("Fails on Gentoo") - def test_equals_all_dtypes(self): - for v, _ in self.example_1d_objects(): - v2 = v.copy() diff --git a/dev-python/xarray/xarray-0.12.1.ebuild b/dev-python/xarray/xarray-0.12.1.ebuild deleted file mode 100644 index 4ea49b4f500a..000000000000 --- a/dev-python/xarray/xarray-0.12.1.ebuild +++ /dev/null @@ -1,37 +0,0 @@ -# Copyright 1999-2020 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="N-D labeled arrays and datasets in Python" -HOMEPAGE="https://xarray.pydata.org/" -SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux" -IUSE="test" -RESTRICT="!test? ( test )" - -RDEPEND=" - >=dev-python/numpy-1.14[${PYTHON_USEDEP}] - >=dev-python/pandas-0.19.2[${PYTHON_USEDEP}]" - -DEPEND=" - dev-python/setuptools[${PYTHON_USEDEP}] - test? ( - >=dev-python/dask-0.18.2[${PYTHON_USEDEP}] - dev-python/pytest[${PYTHON_USEDEP}] - >=dev-python/scipy-1.1[${PYTHON_USEDEP}] - )" - -PATCHES=( - "${FILESDIR}/${PN}-0.10.8-skip-broken-test.patch" -) - -python_test() { - pytest -v || die -} diff --git a/dev-python/xarray/xarray-0.16.0.ebuild b/dev-python/xarray/xarray-0.16.0.ebuild deleted file mode 100644 index 66b8779783e4..000000000000 --- a/dev-python/xarray/xarray-0.16.0.ebuild +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -# pkg_resources use in code -DISTUTILS_USE_SETUPTOOLS=manual -PYTHON_COMPAT=( python3_{6,7,8,9,10} ) - -inherit distutils-r1 - -DESCRIPTION="N-D labeled arrays and datasets in Python" -HOMEPAGE="https://xarray.pydata.org/" -SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux" - -RDEPEND=" - >=dev-python/numpy-1.15[${PYTHON_USEDEP}] - >=dev-python/pandas-0.25[${PYTHON_USEDEP}] - >=dev-python/setuptools-41.2[${PYTHON_USEDEP}]" -# note: most of test dependencies are optional -BDEPEND=" - test? ( - dev-python/bottleneck[${PYTHON_USEDEP}] - dev-python/hypothesis[${PYTHON_USEDEP}] - dev-python/matplotlib[${PYTHON_USEDEP}] - dev-python/toolz[${PYTHON_USEDEP}] - >=dev-python/scipy-1.1[${PYTHON_USEDEP}] - )" - -distutils_enable_tests pytest - -PATCHES=( -# "${FILESDIR}/${PN}-0.10.8-skip-broken-test.patch" -) diff --git a/dev-python/xarray/xarray-0.16.1.ebuild b/dev-python/xarray/xarray-0.16.1.ebuild index 81b10852e10a..562a713aec5b 100644 --- a/dev-python/xarray/xarray-0.16.1.ebuild +++ b/dev-python/xarray/xarray-0.16.1.ebuild @@ -15,7 +15,7 @@ SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" LICENSE="Apache-2.0" SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux" +KEYWORDS="amd64 ~arm ~arm64 x86 ~amd64-linux ~x86-linux" RDEPEND=" >=dev-python/numpy-1.15[${PYTHON_USEDEP}] diff --git a/dev-python/zeroconf/Manifest b/dev-python/zeroconf/Manifest index 42234f5e00d9..30e0c3bfd214 100644 --- a/dev-python/zeroconf/Manifest +++ b/dev-python/zeroconf/Manifest @@ -1,2 +1,3 @@ +DIST python-zeroconf-0.28.7.gh.tar.gz 60821 BLAKE2B e8c99505d1b149319552c808ee17bd3cd37a016c094d5f273f5d3545670ecf6f9cff58178293816e9cd671cf9e342b0a99641d6b9b3d32626dac4e72d983380e SHA512 8cc5c9b2e964c170c2aa53a3c07f2cd634cb113737fdf2e7a924b0b1c5ffb7c2d1e97b589cce36a4216f427e0e64dfba373f9f96b6117e835a9aa68a911edea0 DIST zeroconf-0.24.4.tar.gz 51866 BLAKE2B dd71bda4b0759c61a3e5895e766dff6516ea81ca0c8c9f5a95a8093de8a3a9b15722b99a6af0092b02c1b292bcdb11c02c9f165003b56ca8a793f4a4ca8fd891 SHA512 71678521b05016a7404005a06c8109f861cc8bfe2b3375ac6f1da8f63771271a3d9a095a8db6ccea2e062c5cc28b750a50fbe69218de72646b13a5f03359ea17 DIST zeroconf-0.28.6.tar.gz 61487 BLAKE2B 2ded05d0e63d9f4918da925c179ee198dac68cf7a51d8f63beaaa697b04d297c7e892c97b1cedd51f9ab4af23e79e50bd3d85eb1af804c0fc0c67461501a508e SHA512 405786a25531efc42acf967838e74b67960b7ecdbee5db0633a56ba3e1774b9bd71fac58bcf29ab57ef6328560ee0f0f8cfa126ea42637ff53fb18c479a92f62 diff --git a/dev-python/zeroconf/zeroconf-0.28.7.ebuild b/dev-python/zeroconf/zeroconf-0.28.7.ebuild new file mode 100644 index 000000000000..fdea8958c2f7 --- /dev/null +++ b/dev-python/zeroconf/zeroconf-0.28.7.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2020 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 + +MY_P=python-zeroconf-${PV} +DESCRIPTION="Pure Python Multicast DNS Service Discovery Library (Bonjour/Avahi compatible)" +HOMEPAGE=" + https://github.com/jstasiak/python-zeroconf/ + https://pypi.org/project/zeroconf/" +SRC_URI=" + https://github.com/jstasiak/python-zeroconf/archive/${PV}.tar.gz + -> ${MY_P}.gh.tar.gz" +S=${WORKDIR}/${MY_P} + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=">=dev-python/ifaddr-0.1.7[${PYTHON_USEDEP}]" + +distutils_enable_tests unittest + +src_prepare() { + # broken in network-sandbox + sed -e 's:test_launch_and_close:_&:' \ + -e 's:test_integration_with_listener_ipv6:_&:' \ + -i zeroconf/test.py || die + distutils-r1_src_prepare +} |
