diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2021-05-18 13:45:27 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2021-05-18 13:45:27 +0000 |
| commit | aa3a513695d35eeaff334adc4008b41f8ca70980 (patch) | |
| tree | ee686b984793b617b480528f06f55b63d75c33ab /dev-python | |
| parent | 5a34f8bf0a83c761c70f021bb56c9eda6f635f29 (diff) | |
| download | baldeagleos-repo-aa3a513695d35eeaff334adc4008b41f8ca70980.tar.gz baldeagleos-repo-aa3a513695d35eeaff334adc4008b41f8ca70980.tar.xz baldeagleos-repo-aa3a513695d35eeaff334adc4008b41f8ca70980.zip | |
Adding metadata
Diffstat (limited to 'dev-python')
47 files changed, 847 insertions, 166 deletions
diff --git a/dev-python/QtPy/QtPy-1.9.0-r2.ebuild b/dev-python/QtPy/QtPy-1.9.0-r2.ebuild index e9e305b6897a..f0679d11bb57 100644 --- a/dev-python/QtPy/QtPy-1.9.0-r2.ebuild +++ b/dev-python/QtPy/QtPy-1.9.0-r2.ebuild @@ -1,13 +1,13 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 PYTHON_COMPAT=( python3_{6,7,8,9,10} ) -inherit distutils-r1 +inherit distutils-r1 virtualx -DESCRIPTION="Abstraction layer for PyQt5/PySide" +DESCRIPTION="Abstraction layer on top of PyQt5 and PySide2 and additional custom QWidgets" HOMEPAGE="https://github.com/spyder-ide/qtpy" SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" @@ -16,11 +16,24 @@ SLOT="0" KEYWORDS="amd64 arm64 x86" IUSE="designer gui opengl printsupport svg testlib webengine" +# WARNING: the obvious solution of using || for PyQt5/pyside2 is not going +# to work. The package only checks whether PyQt5/pyside2 is installed, it does +# not verify whether they have the necessary modules (i.e. satisfy the USE dep). RDEPEND=" dev-python/PyQt5[${PYTHON_USEDEP},designer?,opengl?,printsupport?,svg?] gui? ( dev-python/PyQt5[${PYTHON_USEDEP},gui,widgets] ) testlib? ( dev-python/PyQt5[${PYTHON_USEDEP},testlib] ) webengine? ( dev-python/PyQtWebEngine[${PYTHON_USEDEP}] )" +# The QtPy testsuite skips tests for bindings that are +# not installed, so here we ensure that everything +# is available and all tests are run. +BDEPEND=" + test? ( + dev-python/PyQt5[${PYTHON_USEDEP},bluetooth,dbus,declarative,designer,gui,help,location,multimedia,network,networkauth,opengl,positioning,printsupport,sensors,serialport,sql,ssl,svg,testlib,webchannel,webkit,websockets,widgets,x11extras,xml(+),xmlpatterns] + dev-python/PyQtWebEngine[${PYTHON_USEDEP}] + )" + +distutils_enable_tests pytest src_prepare() { default @@ -29,3 +42,8 @@ src_prepare() { sed -i -e "s/from PySide import/raise ImportError #/" qtpy/__init__.py || die sed -i -e "s/from PySide2 import/raise ImportError #/" qtpy/__init__.py || die } + +python_test() { + local -x QT_API="pyqt5" + virtx pytest -vv +} diff --git a/dev-python/QtPy/QtPy-1.9.0-r3.ebuild b/dev-python/QtPy/QtPy-1.9.0-r3.ebuild deleted file mode 100644 index 1a7d6a9f3f75..000000000000 --- a/dev-python/QtPy/QtPy-1.9.0-r3.ebuild +++ /dev/null @@ -1,107 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{6,7,8,9,10} ) - -inherit distutils-r1 virtualx - -DESCRIPTION="Abstraction layer on top of PyQt5 and PySide2 and additional custom QWidgets" -HOMEPAGE="https://github.com/spyder-ide/qtpy" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~arm64 ~x86" - -IUSE=" - declarative designer gui help location multimedia network - opengl positioning printsupport qml quick sensors serialport - sql svg test testlib webchannel webengine websockets - widgets x11extras xml xmlpatterns -" - -# Webengine is a special case, because PyQt5 provides this in a -# separate package , while PySide2 ships it in the same package -# -# declarative/qml/quick is a special case, because PyQt5 bundles -# the bindings for qml and quick in one flag: declarative, -# PySide2 does not. -# -# The PyQt5 ebuild currently enables xml support unconditionally, -# the flag is added anyway with a (+) to make it future proof -# if the ebuild were to change this behaviour in the future. -# -# The PySide2 ebuild currently enables opengl and serialport -# support unconditionally, the flag is added anyway with a (+) -# to make it future proof if the ebuild were to change this -# behaviour in the future. -# -RDEPEND=" - app-eselect/eselect-QtPy - || ( - dev-python/PyQt5[${PYTHON_USEDEP},designer?,gui?,help?,location?,multimedia?,network?,opengl?,positioning?,printsupport?,sensors?,serialport?,sql?,svg?,testlib?,webchannel?,websockets?,widgets?,x11extras?,xml(+)?,xmlpatterns?] - dev-python/pyside2[${PYTHON_USEDEP},designer?,gui?,help?,location?,multimedia?,network?,opengl(+)?,positioning?,printsupport?,sensors?,serialport(+)?,sql?,svg?,testlib?,webchannel?,websockets?,widgets?,x11extras?,xml?,xmlpatterns?] - ) - - webengine? ( || ( - dev-python/PyQtWebEngine[${PYTHON_USEDEP}] - dev-python/pyside2[${PYTHON_USEDEP},webengine] - ) ) - - qml? ( || ( - dev-python/PyQt5[${PYTHON_USEDEP},declarative] - dev-python/pyside2[${PYTHON_USEDEP},qml] - ) ) - - quick? ( || ( - dev-python/PyQt5[${PYTHON_USEDEP},declarative] - dev-python/pyside2[${PYTHON_USEDEP},quick] - ) ) - - declarative? ( || ( - dev-python/PyQt5[${PYTHON_USEDEP},declarative] - dev-python/pyside2[${PYTHON_USEDEP},qml,quick] - ) ) -" - -# These bindings are currently only provided by PyQt5 or PySide2 -# but not by both. Just DEPEND on these directly if they are -# required. -# Please check periodically if this list is still up to date -# -# bluetooth? ( dev-python/PyQt5[${PYTHON_USEDEP},bluetooth] ) -# dbus? ( dev-python/PyQt5[${PYTHON_USEDEP},dbus] ) -# examples? ( dev-python/PyQt5[${PYTHON_USEDEP},examples] ) -# networkauth? ( dev-python/PyQt5[${PYTHON_USEDEP},networkauth] ) -# ssl? ( dev-python/PyQt5[${PYTHON_USEDEP},ssl] ) -# webkit? ( dev-python/PyQt5[${PYTHON_USEDEP},webkit] ) -# -# 3d? ( dev-python/pyside2[${PYTHON_USEDEP},3d] ) -# charts? ( dev-python/pyside2[${PYTHON_USEDEP},charts] ) -# concurrent? ( dev-python/pyside2[${PYTHON_USEDEP},concurrent] ) -# datavis? ( dev-python/pyside2[${PYTHON_USEDEP},datavis] ) -# scxml? ( dev-python/pyside2[${PYTHON_USEDEP},scxml] ) -# script? ( dev-python/pyside2[${PYTHON_USEDEP},script] ) -# scripttools? ( dev-python/pyside2[${PYTHON_USEDEP},scripttools] ) -# speech? ( dev-python/pyside2[${PYTHON_USEDEP},speech] ) - -# The QtPy testsuite skips tests for bindings that are -# not installed, so here we ensure that everything -# is available and all tests are run. -BDEPEND="test? ( - dev-python/PyQt5[${PYTHON_USEDEP},bluetooth,dbus,declarative,designer,gui,help,location,multimedia,network,networkauth,opengl,positioning,printsupport,sensors,serialport,sql,ssl,svg,testlib,webchannel,webkit,websockets,widgets,x11extras,xml(+),xmlpatterns] - dev-python/PyQtWebEngine[${PYTHON_USEDEP}] - dev-python/pyside2[${PYTHON_USEDEP},3d,charts,concurrent,datavis,designer,gui,help,location,multimedia,network,opengl(+),positioning,printsupport,qml,quick,script,scripttools,scxml,sensors,serialport(+),speech,sql,svg,testlib,webchannel,webengine,websockets,widgets,x11extras,xml,xmlpatterns] -)" - -distutils_enable_tests pytest - -python_test() { - export QT_API="pyqt5" - virtx pytest -vv - export QT_API="pyside2" - virtx pytest -vv - unset QT_API -} diff --git a/dev-python/QtPy/metadata.xml b/dev-python/QtPy/metadata.xml index f93670ba2542..5d6a0f9e44cf 100644 --- a/dev-python/QtPy/metadata.xml +++ b/dev-python/QtPy/metadata.xml @@ -23,30 +23,13 @@ <remote-id type="pypi">QtPy</remote-id> </upstream> <use> - <flag name="declarative">Pull in bindings for the QtQml/QtQuick modules and enable the qmlscene plugin</flag> <flag name="designer">Pull in bindings for the QtDesigner module and enable the designer plugin</flag> <flag name="gui">Pull in bindings for the QtGui module</flag> - <flag name="help">Pull in bindings for the QtHelp module</flag> - <flag name="location">Pull in bindings for the QtLocation module</flag> - <flag name="multimedia">Pull in QtMultimedia and QtMultimediaWidgets modules</flag> - <flag name="network">Pull in bindings for the QtNetwork module</flag> <flag name="opengl">Pull in bindings for the QtOpenGL module</flag> - <flag name="positioning">Pull in bindings for the QtPositioning module</flag> <flag name="printsupport">Pull in bindings for the QtPrintSupport module</flag> - <flag name="qml">Pull in QtQml module</flag> - <flag name="quick">Pull in QtQuick and QtQuickWidgets modules</flag> - <flag name="sensors">Pull in bindings for the QtSensors module</flag> - <flag name="serialport">Pull in bindings for the QtSerialPort module</flag> - <flag name="sql">Pull in bindings for the QtSql module</flag> <flag name="svg">Pull in bindings for the QtSvg module</flag> <flag name="testlib">Pull in bindings for the QtTest module</flag> - <flag name="webchannel">Pull in bindings for the QtWebChannel module</flag> <flag name="webengine">Pull in QtWebEngine and QtWebEngineWidgets modules</flag> - <flag name="websockets">Pull in bindings for the QtWebSockets module</flag> - <flag name="widgets">Pull in bindings for the QtWidgets module</flag> - <flag name="x11extras">Pull in bindings for the QtX11Extras module</flag> - <flag name="xmlpatterns">Pull in bindings for the QtXmlPatterns module</flag> - <flag name="xml">Pull in QtXml module</flag> </use> <origin>gentoo-staging</origin> </pkgmetadata>
\ No newline at end of file diff --git a/dev-python/automat/automat-20.2.0.ebuild b/dev-python/automat/automat-20.2.0.ebuild index ea0b28ed0501..5aa29e8365cd 100644 --- a/dev-python/automat/automat-20.2.0.ebuild +++ b/dev-python/automat/automat-20.2.0.ebuild @@ -2,9 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 ) -DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 ) inherit distutils-r1 MY_PN="A${PN:1}" @@ -13,6 +12,7 @@ MY_P="${MY_PN}-${PV}" DESCRIPTION="Self-service finite-state machines for the programmer on the go" HOMEPAGE="https://github.com/glyph/automat https://pypi.org/project/Automat/" SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" LICENSE="MIT" SLOT="0" @@ -24,12 +24,9 @@ RDEPEND=" dev-python/six[${PYTHON_USEDEP}] " BDEPEND=" - ${RDEPEND} dev-python/m2r[${PYTHON_USEDEP}] " -S="${WORKDIR}/${MY_P}" - PATCHES=( "${FILESDIR}/automat-0.8.0-no-setup-py-m2r-import.patch" "${FILESDIR}/test_visualize-twisted-import-errors.patch" diff --git a/dev-python/boto3/Manifest b/dev-python/boto3/Manifest index 7309911995a4..d1e6e2e3cbc3 100644 --- a/dev-python/boto3/Manifest +++ b/dev-python/boto3/Manifest @@ -9,3 +9,4 @@ DIST boto3-1.17.70.tar.gz 369851 BLAKE2B 31416aed68f340842962dca12f77e169f87f2f2 DIST boto3-1.17.71.tar.gz 370105 BLAKE2B d0ea164459e7f79f5d9124af1917eb1a6ef9743792cd13daf58f8c70c852e537392ae8e3fb7ddaf5cea75e914ebb44c205f865f1b896827322b0be8500dc4a4f SHA512 b934ee87fbbced5a6c180517eb2b304b0d097dabc7f9831ebd4945d1b69919e3701955d92b4cfa5cd00da42f32fce731b70dfb3f69b5583eba0a032b4ef3505d DIST boto3-1.17.72.tar.gz 370275 BLAKE2B 2a6923fb9ca0a67e9096844cf66a3dbf74e77eb1b4ade6f17fc248dff5249b467bf07bfe51779a65dcc9d41f20597419418cb7aca04cf03b3ab7c6556772b685 SHA512 c185c05c590d6e7d61db6ea88082a1520229fb9384eb04e0d0c19108cb3cbab53714dcc46b0de064e11e8989036e782f21d687dc12312a019717dbf082febe35 DIST boto3-1.17.73.tar.gz 371093 BLAKE2B 1259a4c8ad0c87cae66c6f30c70ea785927669f82ba3fe196db30e7dd8c92f940928a25c4cb263d3b9f0c9944a4dbf8d0cd4dc52770d60286a50ca4830d3129a SHA512 582ced34557e3ce20628a5093c80f7a9231e010da4a9c4f7669b7c04f1eae8c4edf050b75fc00675f03d4e9fbb3dbd97441cd9a99c7e050a3914f072810a8aeb +DIST boto3-1.17.74.tar.gz 371719 BLAKE2B f6d44206a14cdf395c8963be048e81391ecbf6817b1c00e1cd081abf111df8bd85c05fa1c04b013de7e6d916835e4876cc961891c8d52d8a32e41713080ed96e SHA512 a79012072238286561ab43ca7bb9f24236e858e0bf550be9a074517145445d0d520cc207683d99f6f704416f617b5f89468c87357223db9564e4310a2a2676f1 diff --git a/dev-python/boto3/boto3-1.17.74.ebuild b/dev-python/boto3/boto3-1.17.74.ebuild new file mode 100644 index 000000000000..44a93990e955 --- /dev/null +++ b/dev-python/boto3/boto3-1.17.74.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) +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 ~ppc ~ppc64 ~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 9e1d3936fa7a..891065a4369e 100644 --- a/dev-python/botocore/Manifest +++ b/dev-python/botocore/Manifest @@ -9,3 +9,4 @@ DIST botocore-1.20.70.tar.gz 7700136 BLAKE2B ab7ea88763dd4637754a5d9eb955e0947ef DIST botocore-1.20.71.tar.gz 7720081 BLAKE2B 4f5d4f237222a034d2102cb637722c7d63ac34549ca582fce8d7b02a93345cc48067b195f339010a0dd47fa04a53ee4dde5f98eb58a1db3b0d4c958066717063 SHA512 7a9154efeeedc90dd9089641798494095cca9f1967e3615131af154e718081e2ce85e37fea1a729e7d7cd42d2fd6a9f79cae9409ff32aa18674a40a0e2fd0fe1 DIST botocore-1.20.72.tar.gz 7719833 BLAKE2B 23bdce05a95ebcc162e26e91923999ba50910f2fd1d78830c64ee4cb685b2f58e0f14b71c22d34973e2588590fa8af35868f696bbe7719f710baad49d7d1753d SHA512 d46cf353c1df60e24e8e3def8ccf4821bbc36366d25c073330133e4d6ebf83491c5d82dd708c14df65ebbcc08c7705fd3d1d37339742719bdaf58678e04d7824 DIST botocore-1.20.73.tar.gz 7725102 BLAKE2B ccb41513630d8016718cba5e7cc172efb985688f8537dd7f434707f05f9222f486a42c3c84cf25edb437836f04d5ae024292a15a2e784c600bbdebf7dc34d9e3 SHA512 7b1fadcc4e337f0c7498b46cbc0779f20ceb864e2b3974c15a947f18925691ecaaf455bfd7de153d26632a2035a1f922c64320887d06203285947b4310f07e10 +DIST botocore-1.20.74.tar.gz 7729804 BLAKE2B 0693da2be219ee140c5c00a540756d31651d3e4c78976a7f766705123e9fba23e98d73e551b86a6b661530c20abb560b0e36fea8e1c13600303894b3163d2274 SHA512 51bcf78c6804b4a8cddd57eeff96d7ecb65731dfbd87eb665de1356c1daedb4317323b3a0d905e3d459800d800ce6d6ffd8fd1239b26ecf56884bee37159f2b7 diff --git a/dev-python/botocore/botocore-1.20.74.ebuild b/dev-python/botocore/botocore-1.20.74.ebuild new file mode 100644 index 000000000000..ccbbb69fab47 --- /dev/null +++ b/dev-python/botocore/botocore-1.20.74.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) + +inherit distutils-r1 + +DESCRIPTION="Low-level, data-driven core of boto 3" +HOMEPAGE="https://github.com/boto/botocore" +LICENSE="Apache-2.0" +SLOT="0" + +if [[ "${PV}" == "9999" ]]; then + EGIT_REPO_URI="https://github.com/boto/botocore" + inherit git-r3 +else + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~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/cbor2/Manifest b/dev-python/cbor2/Manifest index f37b56c16bd2..6685277d1ba8 100644 --- a/dev-python/cbor2/Manifest +++ b/dev-python/cbor2/Manifest @@ -1 +1,2 @@ DIST cbor2-5.2.0.tar.gz 81467 BLAKE2B ac35cf682f15eba2c2bff81f562fe2f22906ab8da39c04cbf65f403eeacb5e640e200b15a8cca0d7eede1d0106cd8674640b3093d166a4414a2d42452a374322 SHA512 101aed37c3921ace2f4a5fbb9964ddd2ec2ffcd23fb1a9f838b2f8925f17ffaf5eb39a40b5426e176f0c97a2ba1d3a045e96ceb53312b283101900eddacc6af4 +DIST cbor2-5.3.0.tar.gz 81162 BLAKE2B 41bb0f74998260e2612dbd1990970554b906eaca40e52c21fd90d026ce0aad706830b98f10a226bdc23b819d3f1c52f93f25892a1de04f2a673b4d150a5c47fa SHA512 05eacace46c4b2f7025f12613ae6a755aa7fab14f15d0131d4d856ec5c37bea547d3c4a8afdde28c8653139be741f47351de5460df7dd3ec662325c8d1e2f3fd diff --git a/dev-python/cbor2/cbor2-5.3.0.ebuild b/dev-python/cbor2/cbor2-5.3.0.ebuild new file mode 100644 index 000000000000..3b375154b1fe --- /dev/null +++ b/dev-python/cbor2/cbor2-5.3.0.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) + +inherit distutils-r1 + +DESCRIPTION="Pure Python CBOR (de)serializer with extensive tag support" +HOMEPAGE="https://github.com/agronholm/cbor2 https://pypi.org/project/cbor2/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" + +distutils_enable_tests pytest + +python_prepare_all() { + # remove pytest-cov dep + sed -e "s/pytest-cov//" \ + -e "s/--cov //" \ + -i setup.cfg || die + + distutils-r1_python_prepare_all +} + +python_test() { + local deselect=() + + if use arm || use x86; then + # https://github.com/agronholm/cbor2/issues/99 + deselect+=( + tests/test_decoder.py::test_huge_truncated_bytes + tests/test_decoder.py::test_huge_truncated_string + ) + fi + + epytest ${deselect[@]/#/--deselect } +} diff --git a/dev-python/cbor2/metadata.xml b/dev-python/cbor2/metadata.xml index 29a64d65b9ea..6e1685c653c7 100644 --- a/dev-python/cbor2/metadata.xml +++ b/dev-python/cbor2/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> <longdescription>This library provides encoding and decoding for the Concise Binary Object Representation (CBOR) (RFC 7049) serialization format. It is implemented in pure python with an optional C backend and is compatible diff --git a/dev-python/cfgv/Manifest b/dev-python/cfgv/Manifest index e621dff7c849..6cba52378ac1 100644 --- a/dev-python/cfgv/Manifest +++ b/dev-python/cfgv/Manifest @@ -1 +1,2 @@ DIST cfgv-3.2.0.tar.gz 10268 BLAKE2B 26cd22c1ed7b0de48638d2bb0e30a4ac0c3060d5020d04c29ca5c41c1337531d16a1c7de6e66044e90c3b0dbd5f4b15ba6c3dda2ae73953b8d6be3f74825b813 SHA512 6f1a54b505d298a9806a739edffc79feea41638f766ddc25f0712001e5bceb206153e3a957dcf4909fbe125b6e9bd077aba6317d00e632a06ed24f1dfd06c555 +DIST cfgv-3.3.0.tar.gz 10393 BLAKE2B d4cf565884aaab6a81716382ba8e3244e36a3381b771f7e206053fa80500205bd3b70b62b611ce4a7f0cb143a763d51eb10b1e29333b7f06e29cb406f9f7f6b8 SHA512 23a238c76635404b150bbc3bb1eafd8eb521171e69bb3f3fee55a0a24c12d2ee152cc7453a41952d2f41a6cb72575dacf4b990dbd443f69026a770c87a1e081f diff --git a/dev-python/cfgv/cfgv-3.3.0.ebuild b/dev-python/cfgv/cfgv-3.3.0.ebuild new file mode 100644 index 000000000000..dbf5d39b809e --- /dev/null +++ b/dev-python/cfgv/cfgv-3.3.0.ebuild @@ -0,0 +1,18 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) + +inherit distutils-r1 + +DESCRIPTION="Validate configuration and produce human-readable error messages" +HOMEPAGE="https://github.com/asottile/cfgv" +SRC_URI="https://github.com/asottile/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +distutils_enable_tests pytest diff --git a/dev-python/cfgv/metadata.xml b/dev-python/cfgv/metadata.xml index 107b4d5e3e6e..9c8e2e1ceec6 100644 --- a/dev-python/cfgv/metadata.xml +++ b/dev-python/cfgv/metadata.xml @@ -5,9 +5,14 @@ <email>marecki@gentoo.org</email> <name>Marek Szuba</name> </maintainer> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> <upstream> <remote-id type="github">asottile/cfgv</remote-id> <remote-id type="pypi">cfgv</remote-id> </upstream> <origin>gentoo-staging</origin> + <stabilize-allarches/> </pkgmetadata>
\ No newline at end of file diff --git a/dev-python/css-parser/Manifest b/dev-python/css-parser/Manifest index 6cb95949e812..610aec31c950 100644 --- a/dev-python/css-parser/Manifest +++ b/dev-python/css-parser/Manifest @@ -1 +1,2 @@ DIST css-parser-1.0.4.tar.gz 143977 BLAKE2B 94a42d751a90d306b0dd2d503d8d9c326509b438d1f52b5567e6f6db7d80e7a6d2c37cbfa0db79225cc4d0fd5df612b3e430fa1c62604a2f8990d20678019af0 SHA512 3781128e55c1e72aa00369873e214f683e3f42944ae83d399697adb7d2966f68fb500c39982845ce9cd06078e4021838d82b06f99d90938069371da8a89a0857 +DIST css-parser-1.0.6.tar.gz 336932 BLAKE2B 00cfc4597137c0aa6af3cc8a72fa3e59a1d7b83210668c8421c0703a4a38d05d73f691ff00ffac14025f021a10f85c1d3697778794d23f75db381f5e63e24b7d SHA512 4c623541e1145c91458e7e2028f6a0de652ae2189dc99672fc72f098799d6349edb051bafc0901258481fa3422346303d2ef634392889ee83a29814609cdbd43 diff --git a/dev-python/css-parser/css-parser-1.0.6.ebuild b/dev-python/css-parser/css-parser-1.0.6.ebuild new file mode 100644 index 000000000000..185946c90030 --- /dev/null +++ b/dev-python/css-parser/css-parser-1.0.6.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) + +inherit distutils-r1 + +DESCRIPTION="A CSS Cascading Style Sheets library (fork of cssutils)" +HOMEPAGE="https://pypi.org/project/css-parser/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2.1+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND="test? ( dev-python/chardet[${PYTHON_USEDEP}] )" + +PATCHES=( + "${FILESDIR}/${P}-fix-py3.10-test.patch" +) + +distutils_enable_tests setup.py diff --git a/dev-python/css-parser/files/css-parser-1.0.6-fix-py3.10-test.patch b/dev-python/css-parser/files/css-parser-1.0.6-fix-py3.10-test.patch new file mode 100644 index 000000000000..9107adefed56 --- /dev/null +++ b/dev-python/css-parser/files/css-parser-1.0.6-fix-py3.10-test.patch @@ -0,0 +1,141 @@ +diff --git a/css_parser_tests/basetest.py b/css_parser_tests/basetest.py +index 2b26906..115053f 100644 +--- a/css_parser_tests/basetest.py ++++ b/css_parser_tests/basetest.py +@@ -149,21 +149,7 @@ class BaseTestCase(unittest.TestCase): + else: + self.fail("%s did not raise %s" % (callsig, exception)) + +- def assertRaisesMsg(self, excClass, msg, callableObj, *args, **kwargs): +- """ +- Just like unittest.TestCase.assertRaises, +- but checks that the message is right too. +- +- Usage:: +- +- self.assertRaisesMsg( +- MyException, "Exception message", +- my_function, (arg1, arg2) +- ) +- +- from +- http://www.nedbatchelder.com/blog/200609.html#e20060905T064418 +- """ ++ def _assertRaisesMsgSubstring(self, excClass, msg, substring_match, callableObj, *args, **kwargs): + try: + callableObj(*args, **kwargs) + except excClass as exc: +@@ -171,7 +157,7 @@ class BaseTestCase(unittest.TestCase): + if not msg: + # No message provided: any message is fine. + return +- elif excMsg == msg: ++ elif (msg in excMsg if substring_match else msg == excMsg): + # Message provided, and we got the right message: passes. + return + else: +@@ -189,6 +175,29 @@ class BaseTestCase(unittest.TestCase): + excName + ) + ++ def assertRaisesMsg(self, excClass, msg, callableObj, *args, **kwargs): ++ """ ++ Just like unittest.TestCase.assertRaises, ++ but checks that the message is right too. ++ ++ Usage:: ++ ++ self.assertRaisesMsg( ++ MyException, "Exception message", ++ my_function, arg1, arg2, ++ kwarg1=val, kwarg2=val) ++ ++ from ++ http://www.nedbatchelder.com/blog/200609.html#e20060905T064418 ++ """ ++ return self._assertRaisesMsgSubstring(excClass, msg, False, callableObj, *args, **kwargs) ++ ++ def assertRaisesMsgSubstring(self, excClass, msg, callableObj, *args, **kwargs): ++ """ ++ Just like assertRaisesMsg, but looks for substring in the message. ++ """ ++ return self._assertRaisesMsgSubstring(excClass, msg, True, callableObj, *args, **kwargs) ++ + def do_equal_p(self, tests, att='cssText', debug=False, raising=True): + """ + if raising self.p is used for parsing, else self.pf +diff --git a/css_parser_tests/test_property.py b/css_parser_tests/test_property.py +index ae6ab2a..561a5eb 100644 +--- a/css_parser_tests/test_property.py ++++ b/css_parser_tests/test_property.py +@@ -162,8 +162,8 @@ class PropertyTestCase(basetest.BaseTestCase): + "Property.literalname" + p = css_parser.css.property.Property(r'c\olor', 'red') + self.assertEqual(r'c\olor', p.literalname) +- self.assertRaisesMsg(AttributeError, "can't set attribute", p.__setattr__, +- 'literalname', 'color') ++ self.assertRaisesMsgSubstring(AttributeError, "can't set attribute", p.__setattr__, ++ 'literalname', 'color') + + def test_validate(self): + "Property.valid" +diff --git a/css_parser_tests/test_selector.py b/css_parser_tests/test_selector.py +index c0c769e..f2746d8 100644 +--- a/css_parser_tests/test_selector.py ++++ b/css_parser_tests/test_selector.py +@@ -412,7 +412,7 @@ class SelectorTestCase(basetest.BaseTestCase): + + # readonly + def _set(): selector.specificity = 1 +- self.assertRaisesMsg(AttributeError, "can't set attribute", _set) ++ self.assertRaisesMsgSubstring(AttributeError, "can't set attribute", _set) + + tests = { + '*': (0, 0, 0, 0), +diff --git a/css_parser_tests/test_selectorlist.py b/css_parser_tests/test_selectorlist.py +index 7028fe7..54c945a 100644 +--- a/css_parser_tests/test_selectorlist.py ++++ b/css_parser_tests/test_selectorlist.py +@@ -11,6 +11,7 @@ from css_parser.css.selectorlist import SelectorList + class SelectorListTestCase(basetest.BaseTestCase): + + def setUp(self): ++ basetest.BaseTestCase.setUp(self) + self.r = SelectorList() + + def test_init(self): +diff --git a/run_tests.py b/run_tests.py +index 554c752..6507434 100755 +--- a/run_tests.py ++++ b/run_tests.py +@@ -1,10 +1,12 @@ + #!/usr/bin/env python + # vim:fileencoding=utf-8 +-# License: Apache 2.0 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net> ++# License: LGPLv3 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net> + +-from __future__ import absolute_import, division, print_function, unicode_literals ++from __future__ import (absolute_import, division, print_function, ++ unicode_literals) + + import importlib ++import logging + import os + import sys + import unittest +@@ -72,6 +74,7 @@ def find_tests(): + + def run_tests(test_names=()): + sys.path = [base, os.path.join(base, 'src')] + sys.path ++ import css_parser + tests = find_tests() + suites = [] + for name in test_names: +@@ -85,6 +88,7 @@ def run_tests(test_names=()): + tests = unittest.TestSuite(suites) if suites else tests + + r = unittest.TextTestRunner ++ css_parser.log.setLevel(logging.CRITICAL) + result = r().run(tests) + + if not result.wasSuccessful(): diff --git a/dev-python/google-api-core/Manifest b/dev-python/google-api-core/Manifest index f93491766243..0e42d5928375 100644 --- a/dev-python/google-api-core/Manifest +++ b/dev-python/google-api-core/Manifest @@ -1 +1,2 @@ DIST google-api-core-1.26.3.tar.gz 133409 BLAKE2B ca3c63769f87cc79483d5ac52646cb044fa21e4f702a945994aeffad71b5be6bd1105e7aa3ec489c943d8adb1148f1c5eb868d64d71f0bcc4a6084ff470acf05 SHA512 8a7753ee30f6f3bb78265b083d8fb80a48021ab32c849ddadaf969263e5a63bfaeb3010b584440d5c5f1c4e0dcd4e8fcd4df16321ccb03d3c0932e19502bbe4c +DIST google-api-core-1.27.0.tar.gz 134035 BLAKE2B be074208ac51b6e33466a2304e5780894d6a420ccf7ea36e5b98b6d9f920cd6f0cc9f94dababb154731ebe4a36d8b863897f5c654e00068a0f12753ceecb6e8c SHA512 5e8ca58c7f1dc9aa3e612ea635feb84a115c0f21bde2a3152cd54be5b041841ab1c0d2c725660794e15d42e63a4b6955a5318d3dec20bbbb3e7d683c630a5f5e diff --git a/dev-python/google-api-core/google-api-core-1.27.0.ebuild b/dev-python/google-api-core/google-api-core-1.27.0.ebuild new file mode 100644 index 000000000000..1f2741cdc81a --- /dev/null +++ b/dev-python/google-api-core/google-api-core-1.27.0.ebuild @@ -0,0 +1,44 @@ +# Copyright 2020-2021 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}] + dev-python/packaging[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/grpcio[${PYTHON_USEDEP}] + dev-python/rsa[${PYTHON_USEDEP}] + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests --install pytest + +python_install_all() { + distutils-r1_python_install_all + find "${D}" -name '*.pth' -delete || die +} diff --git a/dev-python/hpack/hpack-3.0.0.ebuild b/dev-python/hpack/hpack-3.0.0.ebuild index 4bda7815079d..3719ca8c75eb 100644 --- a/dev-python/hpack/hpack-3.0.0.ebuild +++ b/dev-python/hpack/hpack-3.0.0.ebuild @@ -1,42 +1,40 @@ # Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 PYTHON_COMPAT=( python3_{6,7,8,9,10} ) inherit distutils-r1 DESCRIPTION="Pure-Python HPACK header compression" -HOMEPAGE="https://python-hyper.org/hpack/en/latest/ https://pypi.org/project/hpack/" +HOMEPAGE=" + https://python-hyper.org/hpack/en/latest/ + https://pypi.org/project/hpack/" SRC_URI="https://github.com/python-hyper/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86" -IUSE="test" -RESTRICT="!test? ( test )" -RDEPEND="" # dev-python/pytest-relaxed causes tests to fail -DEPEND="${RDEPEND} +BDEPEND=" test? ( - >=dev-python/pytest-2.9.2[${PYTHON_USEDEP}] >=dev-python/hypothesis-3.4.2[${PYTHON_USEDEP}] !!dev-python/pytest-relaxed[${PYTHON_USEDEP}] ) " +distutils_enable_tests pytest + PATCHES=( "${FILESDIR}"/hpack-3.0.0-hypothesis-healthcheck.patch ) -python_prepare_all() { - # Remove a test that is not part of the mainstream tests - # Also, it's data directory is not included in the release - rm test/test_hpack_integration.py || die - distutils-r1_python_prepare_all -} - python_test() { - pytest -vv hpack test || die "Tests fail with ${EPYTHON}" + local deselect=( + # relies on outdated exception strings + test/test_table.py::TestHeaderTable::test_get_by_index_out_of_range + ) + + epytest hpack test ${deselect[@]/#/--deselect } } diff --git a/dev-python/html2text/html2text-2020.1.16-r1.ebuild b/dev-python/html2text/html2text-2020.1.16-r1.ebuild index 8b15b082d004..a1c949bf1b55 100644 --- a/dev-python/html2text/html2text-2020.1.16-r1.ebuild +++ b/dev-python/html2text/html2text-2020.1.16-r1.ebuild @@ -1,11 +1,9 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 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="Turn HTML into equivalent Markdown-structured text" diff --git a/dev-python/hyper-h2/files/hyper-h2-3.2.0-failed-healthcheck.patch b/dev-python/hyper-h2/files/hyper-h2-3.2.0-failed-healthcheck.patch new file mode 100644 index 000000000000..04adc2748c21 --- /dev/null +++ b/dev-python/hyper-h2/files/hyper-h2-3.2.0-failed-healthcheck.patch @@ -0,0 +1,74 @@ +diff --git a/test/test_basic_logic.py b/test/test_basic_logic.py +index fb54fe50..8c8f3b7d 100644 +--- a/test/test_basic_logic.py ++++ b/test/test_basic_logic.py +@@ -21,7 +21,7 @@ + + from . import helpers + +-from hypothesis import given ++from hypothesis import given, settings, HealthCheck + from hypothesis.strategies import integers + + +@@ -790,6 +790,7 @@ def test_headers_are_lowercase(self, frame_factory): + assert c.data_to_send() == expected_frame.serialize() + + @given(frame_size=integers(min_value=2**14, max_value=(2**24 - 1))) ++ @settings(suppress_health_check=[HealthCheck.function_scoped_fixture]) + def test_changing_max_frame_size(self, frame_factory, frame_size): + """ + When the user changes the max frame size and the change is ACKed, the +diff --git a/test/test_flow_control_window.py b/test/test_flow_control_window.py +index 24b345aa..7a445af1 100644 +--- a/test/test_flow_control_window.py ++++ b/test/test_flow_control_window.py +@@ -7,7 +7,7 @@ + """ + import pytest + +-from hypothesis import given ++from hypothesis import given, settings, HealthCheck + from hypothesis.strategies import integers + + import h2.config +@@ -715,6 +715,7 @@ def _setup_connection_and_send_headers(self, frame_factory): + return c + + @given(stream_id=integers(max_value=0)) ++ @settings(suppress_health_check=[HealthCheck.function_scoped_fixture]) + def test_must_acknowledge_for_stream(self, frame_factory, stream_id): + """ + Flow control acknowledgements must be done on a stream ID that is +@@ -740,6 +741,7 @@ def test_must_acknowledge_for_stream(self, frame_factory, stream_id): + ) + + @given(size=integers(max_value=-1)) ++ @settings(suppress_health_check=[HealthCheck.function_scoped_fixture]) + def test_cannot_acknowledge_less_than_zero(self, frame_factory, size): + """ + The user must acknowledge at least 0 bytes. +@@ -837,6 +839,7 @@ def test_acknowledging_streams_we_never_saw(self, frame_factory): + c.acknowledge_received_data(2048, stream_id=101) + + @given(integers(min_value=1025, max_value=DEFAULT_FLOW_WINDOW)) ++ @settings(suppress_health_check=[HealthCheck.function_scoped_fixture]) + def test_acknowledging_1024_bytes_when_empty_increments(self, + frame_factory, + increment): +@@ -873,6 +876,7 @@ def test_acknowledging_1024_bytes_when_empty_increments(self, + # This test needs to use a lower cap, because otherwise the algo will + # increment the stream window anyway. + @given(integers(min_value=1025, max_value=(DEFAULT_FLOW_WINDOW // 4) - 1)) ++ @settings(suppress_health_check=[HealthCheck.function_scoped_fixture]) + def test_connection_only_empty(self, frame_factory, increment): + """ + If the connection flow control window is empty, but the stream flow +@@ -916,5 +920,6 @@ def test_connection_only_empty(self, frame_factory, increment): + assert c.data_to_send() == expected_data + + @given(integers(min_value=1025, max_value=DEFAULT_FLOW_WINDOW)) ++ @settings(suppress_health_check=[HealthCheck.function_scoped_fixture]) + def test_mixing_update_forms(self, frame_factory, increment): + """ + If the user mixes ackowledging data with manually incrementing windows, diff --git a/dev-python/hyper-h2/hyper-h2-3.2.0.ebuild b/dev-python/hyper-h2/hyper-h2-3.2.0.ebuild index db8535f0bb1d..ebc1cec37b94 100644 --- a/dev-python/hyper-h2/hyper-h2-3.2.0.ebuild +++ b/dev-python/hyper-h2/hyper-h2-3.2.0.ebuild @@ -13,8 +13,6 @@ SRC_URI="https://github.com/python-hyper/${PN}/archive/v${PV}.tar.gz -> ${P}.tar LICENSE="MIT" SLOT="0" KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86" -IUSE="test" -RESTRICT="!test? ( test )" RDEPEND=" >=dev-python/hyperframe-5.2.0[${PYTHON_USEDEP}] @@ -22,14 +20,31 @@ RDEPEND=" >=dev-python/hpack-3.0.0[${PYTHON_USEDEP}] <dev-python/hpack-4.0.0[${PYTHON_USEDEP}] " -DEPEND="${RDEPEND} +BDEPEND=" test? ( dev-python/hypothesis[${PYTHON_USEDEP}] - dev-python/pytest[${PYTHON_USEDEP}] ) " +distutils_enable_tests pytest + +PATCHES=( + # From https://github.com/python-hyper/h2/pull/1248 + # Disables some failing healthchecks + "${FILESDIR}/${P}-failed-healthcheck.patch" +) + python_test() { - pytest -vv --hypothesis-profile=travis test || - die "Tests fail with ${EPYTHON}" + local deselect=() + [[ ${EPYTHON} == python3.10 ]] && deselect+=( + # these rely on fixed string repr() and fail because enum repr + # changed in py3.10 + test/test_basic_logic.py::TestBasicServer::test_stream_repr + test/test_events.py::TestEventReprs::test_remotesettingschanged_repr + test/test_events.py::TestEventReprs::test_streamreset_repr + test/test_events.py::TestEventReprs::test_settingsacknowledged_repr + test/test_events.py::TestEventReprs::test_connectionterminated_repr + ) + + epytest --hypothesis-profile=travis ${deselect[@]/#/--deselect } } diff --git a/dev-python/hyper-h2/hyper-h2-4.0.0.ebuild b/dev-python/hyper-h2/hyper-h2-4.0.0.ebuild index e2c3f35f787b..ff7ee23f2666 100644 --- a/dev-python/hyper-h2/hyper-h2-4.0.0.ebuild +++ b/dev-python/hyper-h2/hyper-h2-4.0.0.ebuild @@ -27,3 +27,24 @@ BDEPEND=" " distutils_enable_tests pytest + +PATCHES=( + # From https://github.com/python-hyper/h2/pull/1248 + # Disables some failing healthchecks + "${FILESDIR}/${PN}-3.2.0-failed-healthcheck.patch" +) + +python_test() { + local deselect=() + [[ ${EPYTHON} == python3.10 ]] && deselect+=( + # these rely on fixed string repr() and fail because enum repr + # changed in py3.10 + test/test_basic_logic.py::TestBasicServer::test_stream_repr + test/test_events.py::TestEventReprs::test_remotesettingschanged_repr + test/test_events.py::TestEventReprs::test_streamreset_repr + test/test_events.py::TestEventReprs::test_settingsacknowledged_repr + test/test_events.py::TestEventReprs::test_connectionterminated_repr + ) + + epytest ${deselect[@]/#/--deselect } +} diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest index 9a25faf24769..3362a2fbd72d 100644 --- a/dev-python/hypothesis/Manifest +++ b/dev-python/hypothesis/Manifest @@ -2,6 +2,7 @@ DIST hypothesis-python-6.10.0.tar.gz 9126095 BLAKE2B 7dbcbb1d1099490c5329fb9a134 DIST hypothesis-python-6.10.1.tar.gz 9126246 BLAKE2B cc8cb3436d1de5d3d65a13cb5edefdbaae8bf9daed296eea9111ac46c002c34f43119f10b2ab1f45c5cbca5fe46d00738676290eb0e8437f2c10b5926d9e0915 SHA512 586b7f380cb850089f7d5321f11da92ef4a9b80e2ea925103e29c1f6c6c9da0a2a899a1a45ce77e0a40073f147561bc4fcbd5cb2ce77a9c0c65f6f64dfe4b716 DIST hypothesis-python-6.12.0.tar.gz 9127949 BLAKE2B fae9be5f82362f46554e9912f34e7da06b2e8f8612428af7a8a77bda06e926b8c541e79c40a8aaab4a1d4d299cd947f2ffc92f44c8d569c185891e5b6aaac61e SHA512 7eafa80a546d17cb5239caf3aa18df1a23caea3021fe9a8d1e180c85443920df44ab93a31c13192ea9856db6a1ee8d5af82f44dcbaefb6dba6c37ab63081e050 DIST hypothesis-python-6.12.1.tar.gz 9128039 BLAKE2B fd0d7108f8a32ac95ff07f03060fa0ad30c28bcc77bd7ac70e1d16505aeb8052b673178870b9196cb19d17f9d8c7bf2b206335ed553eeea7fc8787f042884c36 SHA512 668bdc1da0c1bc239edfa52d34406dd7e3fa2230041c1de7791209bbec8de96b6d6714ed82a2e80807f5c51c32c7098717dd053b45b7276acf1ffcdf2fd425ee +DIST hypothesis-python-6.13.0.tar.gz 9128293 BLAKE2B be618d42639602bc6617f8b5e9374812298e9d6150b6510a8060ca7c489ea69f1d6bd2cf9322c325c9bffc3c3f886fb4a4fb038159fa2c81920541ac4cb668cd SHA512 66fd6e7842b7b257c92cf756db4cf97bfb64006c89e3e58cda154ebe9345302f0264297df8d9de0685033a0f4e43909d65e76495689a8ded9968ecda586b668c DIST hypothesis-python-6.6.0.tar.gz 9117847 BLAKE2B bb88ebee9db53f1c5753730d04e5dfe6a39ac4c5f7d534778b22b813ba188a55de6ad8a34f611f7863d1c3287be39ed7e10981e9d6ed8d8dd106688f154c3a49 SHA512 a446b4a11c6ee013225bfcd58e26efc6c9d867545d9bcf90a19468cb01fc5e2c5a7280ff9a80d4a1adbfe06dd155df6152941d5f53869d85e1d259e68a33a5e2 DIST hypothesis-python-6.8.1.tar.gz 9119495 BLAKE2B 4d98e30a04f652af79dd49e921b856124a312b63f087a6fd200282e9b0a0cd6fcad1a42a6008406bc347f21bf9cd6c5ff2db79d013987281f59365bd9d91550d SHA512 2f25e994438479b5faa15b2038146ab385445bf2722b0951ff55f324b074248d7322c4c6f3e9c659c18d0aa94150eea4c6567a7ac24debf2de4b32bab37a4dcc DIST hypothesis-python-6.8.9.tar.gz 9122168 BLAKE2B 2568dcfcbc7182071247d0b7d978abf2184be4583937a42568c3e199eac6ce538adb7b3687747979fc6ab9da1e61088db7d1a01294982e75cb04992cdc10537a SHA512 4dc3884e2487f27a3b6b362e04cecd281f9072fdd2e8e91738899baf589d6d48df9eeacb9a158251c20b210d1190b78eadd191aa95f151023bd81091131dff66 diff --git a/dev-python/hypothesis/hypothesis-6.13.0.ebuild b/dev-python/hypothesis/hypothesis-6.13.0.ebuild new file mode 100644 index 000000000000..53d7bcf04c04 --- /dev/null +++ b/dev-python/hypothesis/hypothesis-6.13.0.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 ) +PYTHON_REQ_USE="threads(+),sqlite" + +inherit distutils-r1 multiprocessing optfeature + +DESCRIPTION="A library for property based testing" +HOMEPAGE="https://github.com/HypothesisWorks/hypothesis https://pypi.org/project/hypothesis/" +SRC_URI="https://github.com/HypothesisWorks/${PN}/archive/${PN}-python-${PV}.tar.gz" +S="${WORKDIR}/${PN}-${PN}-python-${PV}/${PN}-python" + +LICENSE="MPL-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" +IUSE="cli" + +RDEPEND=" + >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}] + >=dev-python/sortedcontainers-2.1.0[${PYTHON_USEDEP}] + cli? ( + $(python_gen_cond_dep ' + dev-python/black[${PYTHON_USEDEP}] + dev-python/click[${PYTHON_USEDEP}] + ' python3_{7..9}) + ) +" +BDEPEND=" + test? ( + dev-python/mock[${PYTHON_USEDEP}] + dev-python/pexpect[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + !!<dev-python/typing-3.7.4.1 + ) +" + +distutils_enable_tests --install pytest + +python_prepare() { + if ! use cli || ! has "${EPYTHON}" python3_{7..9}; then + sed -i -e '/console_scripts/d' setup.py || die + fi +} + +python_test() { + distutils_install_for_testing + epytest tests/cover tests/pytest tests/quality \ + -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" +} + +pkg_postinst() { + optfeature "datetime support" dev-python/pytz + optfeature "dateutil support" dev-python/python-dateutil + optfeature "numpy support" dev-python/numpy + optfeature "django support" dev-python/django dev-python/pytz + optfeature "pandas support" dev-python/pandas + optfeature "pytest support" dev-python/pytest +} diff --git a/dev-python/m2r/m2r-0.2.1.ebuild b/dev-python/m2r/m2r-0.2.1.ebuild index a10ecdc6928e..6efad7d1aa33 100644 --- a/dev-python/m2r/m2r-0.2.1.ebuild +++ b/dev-python/m2r/m2r-0.2.1.ebuild @@ -2,9 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 ) -DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 ) inherit distutils-r1 DESCRIPTION="Markdown to reStructuredText converter" @@ -23,7 +22,7 @@ RDEPEND=" BDEPEND=" test? ( dev-python/pygments[${PYTHON_USEDEP}] - $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7) ) + ) ${RDEPEND} " @@ -44,6 +43,12 @@ python_prepare_all() { cp "${FILESDIR}/"test.md tests/ || die cp "${FILESDIR}/"test.rst tests/ || die cp "${FILESDIR}/"m2r.1 "${S}" || die + + # in python 3.10, the text changed from "optional arguments" to "options". + # the test matches on the concrete string, make it match on the part that is shared + # by both versions + sed -e 's/optional arguments:/option/' -i tests/test_cli.py || die + distutils-r1_python_prepare_all } diff --git a/dev-python/pydocstyle/Manifest b/dev-python/pydocstyle/Manifest index 809dedd258dd..4192487cbf2c 100644 --- a/dev-python/pydocstyle/Manifest +++ b/dev-python/pydocstyle/Manifest @@ -1 +1,2 @@ DIST pydocstyle-6.0.0.tar.gz 72143 BLAKE2B 1036a5eab38a38bda0f98371f7e4094248cf5057a9afd8743a478f153a5f06feab6b3e7d6be031615b5e88c388786f59a0619f774f492e40a722f39973051d5b SHA512 609a10307aa24513f476ef639771fc095fe7a65ffd8d530fad02886369c62969c69a5134fd0ec79a1e07d1b6cb8f920c3478db546c26aefb0e45771777c02a0b +DIST pydocstyle-6.1.1.tar.gz 73982 BLAKE2B 6a896221fdcd257f0475472e1cf87ef892d8292a4c0faf661595adb17e2d18f4a8277cda498197309d34597c448203856c272256277a7e35fba20e2e5ba47f2b SHA512 ce4932a6601c80d05a46600f5af7df54798025a5f3dc41ab8cf1bc0d63e7f78b70cccb17dc99ddab25eda9abd639f91468fca1b1ceb4539708350212e481a156 diff --git a/dev-python/pydocstyle/files/pydocstyle-6.1.1-disarm-pip-install.patch b/dev-python/pydocstyle/files/pydocstyle-6.1.1-disarm-pip-install.patch new file mode 100644 index 000000000000..b0467a136435 --- /dev/null +++ b/dev-python/pydocstyle/files/pydocstyle-6.1.1-disarm-pip-install.patch @@ -0,0 +1,31 @@ +From 46947c9dca95caeb7b1f4348994d1aa2b8db93ec Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Tue, 18 May 2021 10:02:16 +0200 +Subject: [PATCH] Disarm install_package fixture + +--- + src/tests/test_integration.py | 7 ------- + 1 file changed, 7 deletions(-) + +diff --git a/src/tests/test_integration.py b/src/tests/test_integration.py +index eb4994f..4242476 100644 +--- a/src/tests/test_integration.py ++++ b/src/tests/test_integration.py +@@ -128,14 +128,7 @@ def install_package(request): + This is so we can run the integration tests on the installed console + script. + """ +- cwd = os.path.join(os.path.dirname(__file__), '..', '..') +- subprocess.check_call( +- [sys.executable, "-m", "pip", "install", "-e", "."], cwd=cwd +- ) + yield +- subprocess.check_call( +- [sys.executable, "-m", "pip", "uninstall", "-y", "pydocstyle"], cwd=cwd +- ) + + + @pytest.yield_fixture(scope="function", params=['ini', 'toml']) +-- +2.31.1 + diff --git a/dev-python/pydocstyle/pydocstyle-6.1.1.ebuild b/dev-python/pydocstyle/pydocstyle-6.1.1.ebuild new file mode 100644 index 000000000000..3ae76bab5f1e --- /dev/null +++ b/dev-python/pydocstyle/pydocstyle-6.1.1.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 ) +inherit distutils-r1 + +DESCRIPTION="Python docstring style checker" +HOMEPAGE="https://github.com/PyCQA/pydocstyle/" +SRC_URI="https://github.com/PyCQA/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x64-macos" + +RDEPEND="dev-python/snowballstemmer[${PYTHON_USEDEP}]" +BDEPEND=" + test? ( dev-python/toml[${PYTHON_USEDEP}] )" + +distutils_enable_tests --install pytest +# Requires network to lookup github issues +#distutils_enable_sphinx docs dev-python/sphinx_rtd_theme dev-python/sphinxcontrib-issuetracker + +PATCHES=( + "${FILESDIR}"/pydocstyle-6.1.1-disarm-pip-install.patch +) diff --git a/dev-python/pyside2/pyside2-5.15.1.ebuild b/dev-python/pyside2/pyside2-5.15.1.ebuild index a9b19cdac662..713010e82010 100644 --- a/dev-python/pyside2/pyside2-5.15.1.ebuild +++ b/dev-python/pyside2/pyside2-5.15.1.ebuild @@ -33,7 +33,7 @@ SRC_URI="https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-${ # See "sources/pyside2/PySide2/licensecomment.txt" for licensing details. LICENSE="|| ( GPL-2 GPL-3+ LGPL-3 )" SLOT="0" -KEYWORDS="~amd64 ~arm64 ~x86" +KEYWORDS="~amd64 ~arm64 x86" IUSE=" 3d charts concurrent datavis designer gles2-only +gui help location multimedia +network positioning printsupport qml quick script scripttools diff --git a/dev-python/pytest-asyncio/files/pytest-asyncio-0.15.1-310-test-warnings.patch b/dev-python/pytest-asyncio/files/pytest-asyncio-0.15.1-310-test-warnings.patch new file mode 100644 index 000000000000..50f1c9f2d168 --- /dev/null +++ b/dev-python/pytest-asyncio/files/pytest-asyncio-0.15.1-310-test-warnings.patch @@ -0,0 +1,12 @@ +diff --git a/setup.cfg b/setup.cfg +index 0161086..047501c 100644 +--- a/setup.cfg ++++ b/setup.cfg +@@ -8,6 +8,7 @@ show_missing = true + addopts = -rsx --tb=short + testpaths = tests + filterwarnings = error ++ ignore::DeprecationWarning + + [metadata] + # ensure LICENSE is included in wheel metadata diff --git a/dev-python/pytest-asyncio/pytest-asyncio-0.15.1.ebuild b/dev-python/pytest-asyncio/pytest-asyncio-0.15.1.ebuild index d6e2facac5e4..89332d96c0de 100644 --- a/dev-python/pytest-asyncio/pytest-asyncio-0.15.1.ebuild +++ b/dev-python/pytest-asyncio/pytest-asyncio-0.15.1.ebuild @@ -23,4 +23,8 @@ BDEPEND=" >=dev-python/hypothesis-3.64[${PYTHON_USEDEP}] )" +PATCHES=( + "${FILESDIR}/${P}-310-test-warnings.patch" +) + distutils_enable_tests --install pytest diff --git a/dev-python/pytest-subtests/pytest-subtests-0.4.0.ebuild b/dev-python/pytest-subtests/pytest-subtests-0.4.0.ebuild index 7e9f7d8f6509..981ab4c65e5a 100644 --- a/dev-python/pytest-subtests/pytest-subtests-0.4.0.ebuild +++ b/dev-python/pytest-subtests/pytest-subtests-0.4.0.ebuild @@ -16,7 +16,7 @@ SRC_URI=" LICENSE="MIT" SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 sparc x86" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 ~riscv sparc x86" RDEPEND=" >=dev-python/pytest-5.3.0[${PYTHON_USEDEP}] diff --git a/dev-python/pyyaml/pyyaml-5.4.1.ebuild b/dev-python/pyyaml/pyyaml-5.4.1.ebuild index 4da46d05a7a8..725251046a8d 100644 --- a/dev-python/pyyaml/pyyaml-5.4.1.ebuild +++ b/dev-python/pyyaml/pyyaml-5.4.1.ebuild @@ -3,9 +3,7 @@ EAPI=7 -DISTUTILS_USE_SETUPTOOLS=no PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 ) - inherit distutils-r1 DESCRIPTION="YAML parser and emitter for Python" diff --git a/dev-python/rich/Manifest b/dev-python/rich/Manifest index e02e8c4d24a8..ce3f14a79a8d 100644 --- a/dev-python/rich/Manifest +++ b/dev-python/rich/Manifest @@ -2,6 +2,7 @@ DIST rich-10.0.0.tar.gz 16217911 BLAKE2B 2604bf6a3bd57a9465fc2a001b497ff7f0afe83 DIST rich-10.0.1.tar.gz 16218107 BLAKE2B 3992282b72ea97a364df3ca67e10a90baadb36ff207f64edee7e11df957b078d4b2c67bf3485efb7dddd0b3e8c2d3ae87e1d9b4d063db91f30c1a9510f7da976 SHA512 14689486b8a647c17fe6cad0902f4ecbf2c09e95ad0d4ea33b88bd9f8a17164f9efed4baa09a4ad6e6a85a9ec9fdeeccacd58eaa628efccb48fef6112487926c DIST rich-10.1.0.tar.gz 16218332 BLAKE2B 880fe5354b41a8a2accf7dc0d2f80163b850a28d3f4bd10b9f06008f3059c6a46681b3a344289c031589eeaa6120c5cad4a03d2c25f7a440829ff21e3fe20d63 SHA512 53cf49df20887b1788edc32bb98706c9bb5facee29aac4cbde9180aba4d97433eab49a144ba9b83393e36072b5e010630b3c7d67f80e280e380559698f6254d4 DIST rich-10.2.0.tar.gz 16231540 BLAKE2B d297678a6e90a099aa17cbac75618de500e92a07943139e3fef052a0df1edbb9c4efc22ff82d4fd3618b2b6e79bed672d3bc558fc168f5a70ed72d06a2083e7d SHA512 f1de3bdf367130efb48672a18523fba44fd209bf6b914f0fb25c140eb115e12a65182e90d988b2a56867dc1c8b83169794b852a29a28610022df004a0cfe1f74 +DIST rich-10.2.1.tar.gz 16231545 BLAKE2B d9561bc45f5d1aab04f5ed1fe86c90e0b7f07a88b99c066c6ec7b67364a8a1f9bb9275963736945bb0e6022cf10cda32036df457529c3a7ec097f4c8a3884baf SHA512 21a21b4ae479465989fc15630cdc2cf0f0fc127fe2e6b1d58714e725ac458eedca9159ec833c46b29164f5d9e7af4abbd9546ba08e6e537ed9f9c8a61995e8c9 DIST rich-9.11.1.tar.gz 14050070 BLAKE2B 7dcae32743bfcbbab0af6896f72e865d2a72ab66545168544d065145cf10a2aab4785454e547f011219a85a8aa762f1ed5ebef2b9fb7f44225a2f776835b643d SHA512 2139cb6602d930e9bf1479456a8e6cee812237fb64073db3f23fd8eab64c1c2b3a83c6292f1f90652791100a93961d8ec8036e5d819f1e23159b6b9a75cd1f6c DIST rich-9.12.4.tar.gz 16204429 BLAKE2B b57d7dc7ad4463c85cbc43e0fd8afd9f0c5329cbe81eaac168895af3701091669e4b0b6fd0d2de2f5876405c5aae00ed77e77d1b317dbd20c7dd3e53deddf2ca SHA512 92feb4ceab4e10f33c0f4abec19a4ee5bdcf27139591b603aba98239483874089fbd33998a2f05f2b609799afa59cddbe1ee245a87c391d15f58887b21a138df DIST rich-9.13.0.tar.gz 16206916 BLAKE2B 27a058821f5bcdeaadf4ec9beadd0f2bb5357993a1c15cd72c6cac4def9c7c9d9d7705064853931bb868b7bf873a85469feb8a9c67daf88cdab8169f0d342b0c SHA512 bb93339f985c88b86897a9b21769877cb68f4a6f61a74b9e4a2a96aad0556502e6c848c4f769ee53c57bf03f0cfdfab97e004aa9d6572158a37037afee61f0ad diff --git a/dev-python/rich/rich-10.2.1.ebuild b/dev-python/rich/rich-10.2.1.ebuild new file mode 100644 index 000000000000..67307cc76d41 --- /dev/null +++ b/dev-python/rich/rich-10.2.1.ebuild @@ -0,0 +1,30 @@ +# Copyright 2021 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 optfeature + +DESCRIPTION="Python library for renrering rich text, tables, etc. to the terminal" +HOMEPAGE="https://github.com/willmcgugan/rich" +SRC_URI="https://github.com/willmcgugan/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-python/colorama[${PYTHON_USEDEP}] + dev-python/commonmark[${PYTHON_USEDEP}] + dev-python/pygments[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/typing-extensions[${PYTHON_USEDEP}] + ' python3_7)" + +distutils_enable_tests pytest + +pkg_postinst() { + optfeature "integration with HTML widgets for Jupyter" dev-python/ipywidgets +} diff --git a/dev-python/rsa/metadata.xml b/dev-python/rsa/metadata.xml index 57cb37279926..6c5b930febea 100644 --- a/dev-python/rsa/metadata.xml +++ b/dev-python/rsa/metadata.xml @@ -7,6 +7,7 @@ </maintainer> <upstream> <remote-id type="pypi">rsa</remote-id> + <remote-id type="github">sybrenstuvel/python-rsa</remote-id> <remote-id type="cpe">cpe:/a:python-rsa_project:python-rsa</remote-id> </upstream> <origin>gentoo-staging</origin> diff --git a/dev-python/rsa/rsa-4.7.2.ebuild b/dev-python/rsa/rsa-4.7.2.ebuild index 63d7f31a1102..ec8f3030cf02 100644 --- a/dev-python/rsa/rsa-4.7.2.ebuild +++ b/dev-python/rsa/rsa-4.7.2.ebuild @@ -4,8 +4,6 @@ EAPI=7 PYTHON_COMPAT=( python3_{6,7,8,9,10} ) -DISTUTILS_USE_SETUPTOOLS=rdepend - inherit distutils-r1 MY_P=python-rsa-version-${PV} diff --git a/dev-python/shiboken2/shiboken2-5.15.1.ebuild b/dev-python/shiboken2/shiboken2-5.15.1.ebuild index f14cbfbe772d..a8d281a616e2 100644 --- a/dev-python/shiboken2/shiboken2-5.15.1.ebuild +++ b/dev-python/shiboken2/shiboken2-5.15.1.ebuild @@ -28,7 +28,7 @@ SRC_URI="https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-${ # arbitrarily relicensed. (TODO) LICENSE="|| ( GPL-2 GPL-3+ LGPL-3 ) GPL-3" SLOT="0" -KEYWORDS="~amd64 ~arm64 ~x86" +KEYWORDS="~amd64 ~arm64 x86" IUSE="+docstrings numpy test vulkan" REQUIRED_USE="${PYTHON_REQUIRED_USE}" diff --git a/dev-python/websocket-client/Manifest b/dev-python/websocket-client/Manifest index 4ca4b12cece6..b96193d1bd17 100644 --- a/dev-python/websocket-client/Manifest +++ b/dev-python/websocket-client/Manifest @@ -1,2 +1,3 @@ DIST websocket-client-0.59.0.tar.gz 57897 BLAKE2B 9f15c563491bd105a1987281cc20c0ab80ed1625036eeaa674fd28334b8226b5f9660b150743649f6bc7717d4306cbb1778222f9caeeff29507ab364572ce2b5 SHA512 c7f4a0336093de86fd00828049a836477a3c859cc4bddebd9e7d31eb746dab4de8fa11205a5fb182e5df3590964aa73f279310575dfabc4abc32157e80df42b1 +DIST websocket-client-1.0.0.tar.gz 58557 BLAKE2B 8234fb246d38673d06c9e16257e00589fe27d1354feba2e1521a41e15c089e899023248dff61346cafbbffe8a423f1b1618a546ead2fee4db67a6c2441581f77 SHA512 6c62ea2f12be0e6409409e832e4654338f6b6cb7838b0765e836c575bd883545c885985e9a05a04cd4ce5fbd537bc97d8c6fc4efb82779c2ec3006580ca19c3e DIST websocket_client-0.58.0.tar.gz 48216 BLAKE2B 5e559852385d95caffa73fdb4bfcddd3e00f7bdc9d23d07e7bd6b9e8de599742e153d31bb3a57bdf1aef02361f5dc0b13a443c21872c27576e068f246102d655 SHA512 c587945831427a9bddef96be53d20fec7f55ffd7efe2b676dac96b8078ba446ecda85379a4edfc49c36de936516d3994cbd0515decb9b615cd969bde1117167a diff --git a/dev-python/websocket-client/websocket-client-1.0.0.ebuild b/dev-python/websocket-client/websocket-client-1.0.0.ebuild new file mode 100644 index 000000000000..15db76ef875a --- /dev/null +++ b/dev-python/websocket-client/websocket-client-1.0.0.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="WebSocket client for python with hybi13 support" +HOMEPAGE="https://github.com/websocket-client/websocket-client" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2.1+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~x64-macos" +IUSE="examples" + +distutils_enable_tests setup.py + +src_prepare() { + # Internet + sed -i -e 's:testConnect:_&:' websocket/tests/test_http.py || die + distutils-r1_src_prepare +} + +python_install_all() { + if use examples; then + docompress -x "/usr/share/doc/${PF}/examples" + dodoc -r examples + fi + distutils-r1_python_install_all +} diff --git a/dev-python/werkzeug/Manifest b/dev-python/werkzeug/Manifest index 05e039bb981e..6ff9d1fb2ea2 100644 --- a/dev-python/werkzeug/Manifest +++ b/dev-python/werkzeug/Manifest @@ -1,2 +1,3 @@ DIST werkzeug-1.0.1.gh.tar.gz 907482 BLAKE2B d2dcdce8b1bcbb177b52b0915f2c0ac17d235dee3c77b23e81e4b35412d1f53a194d3c7c7f2a5c065ade99797effe72cc464cf6980b12c761a8a919338021660 SHA512 ba82120fb3e96e3a1334c6452d5ba1950fc016d2d147d643bbc2168ccec496f1dea799982ae8c578167155082c0bdbda5d56a23f64b4b6865f97e90e22df022e DIST werkzeug-2.0.0.gh.tar.gz 894475 BLAKE2B 608de444944fa0bd35c0244a30967446abb8f0d05a8cd49f09707c368b6f9649b299f427fa7bc2e54628cf3eb688c399e420ecd54f12d7eab9cb063c7c740b07 SHA512 8c8e36a58fe53ac4ad3152a34145c726a9145782262b9d47be7bfe9a8e127666b0d0c0c50d305277a153298644732efe37e3785ceaa5b11394adfeb70d86e70d +DIST werkzeug-2.0.1.gh.tar.gz 894795 BLAKE2B cef0c6d704604d8b63d9e9d1ef8f232f97cae6654a4284b66ba7cd97f850df725d644ea11ed898a53f69668247545de86a9c44bc381606c700f4e2611fea7699 SHA512 721a6c3cf8f803c80873f68d94b273da2ddda79b5e83d9283b9af3d3c971bb8c7ac7828c7a60c33b9bded7b05f063810df12fc266ee7d264dc6261100fc97708 diff --git a/dev-python/werkzeug/werkzeug-2.0.1.ebuild b/dev-python/werkzeug/werkzeug-2.0.1.ebuild new file mode 100644 index 000000000000..aa9928cf6ceb --- /dev/null +++ b/dev-python/werkzeug/werkzeug-2.0.1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Collection of various utilities for WSGI applications" +HOMEPAGE=" + https://werkzeug.palletsprojects.com/ + https://pypi.org/project/Werkzeug/ + https://github.com/pallets/werkzeug" +SRC_URI=" + https://github.com/pallets/werkzeug/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86" + +DEPEND=" + test? ( + dev-python/cryptography[${PYTHON_USEDEP}] + !hppa? ( !ia64? ( + $(python_gen_cond_dep ' + dev-python/greenlet[${PYTHON_USEDEP}] + ' 'python*') + ) ) + dev-python/pytest-timeout[${PYTHON_USEDEP}] + dev-python/pytest-xprocess[${PYTHON_USEDEP}] + dev-python/watchdog[${PYTHON_USEDEP}] + )" + +distutils_enable_tests pytest + +python_test() { + # the default portage tempdir is too long for AF_UNIX sockets + local -x TMPDIR=/tmp + epytest -p no:httpbin tests +} diff --git a/dev-python/zconfig/Manifest b/dev-python/zconfig/Manifest index e81812888061..4d6e43cc55ea 100644 --- a/dev-python/zconfig/Manifest +++ b/dev-python/zconfig/Manifest @@ -1 +1,2 @@ DIST ZConfig-3.5.0.tar.gz 127317 BLAKE2B 735d554072d4be4ee0552151a6bd0401e66bc0a7a091d97656a2c95efb13580d264a39e28c11e096ee77f57bc96d684720c22c981f5dbd82ce012d40c94d33ea SHA512 14af4de2adcb7e5404a4fd8e1a1903758c584898fda7c4d2a660616c37023f0e0b5d4acac789a930c2900eb501528899d51c4ea4c4050535cfbaa629e9159558 +DIST ZConfig-3.6.0.tar.gz 134559 BLAKE2B cf24d055a88c552311e5837b0caba143a9d4122caa0319ad31de89177d521ecb3f8fb7f463618f35410cc25169865103ff5957e9484e347ebd7e1b7cacb20b35 SHA512 a5cca99f324007a14f4738be1c9f7424538d8a13f7171fbfa979ce9273b29679eb18b0e905afc96d38abcf042af222e3e86acad6912b9eb8b71b6c8122c47031 diff --git a/dev-python/zconfig/metadata.xml b/dev-python/zconfig/metadata.xml index d7e35f9087b7..1496d63c2d66 100644 --- a/dev-python/zconfig/metadata.xml +++ b/dev-python/zconfig/metadata.xml @@ -9,6 +9,10 @@ <email>proxy-maint@gentoo.org</email> <name>Proxy Maintainers</name> </maintainer> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> <longdescription lang="en"> ZConfig is a configuration library intended for general use. It supports a hierarchical schema-driven configuration model that allows a schema to specify data conversion routines written in Python. ZConfig’s model is very different from the model supported by the ConfigParser module found in Python’s standard library, and is more suitable to configuration-intensive applications. diff --git a/dev-python/zconfig/zconfig-3.6.0.ebuild b/dev-python/zconfig/zconfig-3.6.0.ebuild new file mode 100644 index 000000000000..baa1d0a348f8 --- /dev/null +++ b/dev-python/zconfig/zconfig-3.6.0.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) +inherit distutils-r1 + +MY_PN="ZConfig" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="A configuration library supporting a hierarchical schema-driven configuration model" +HOMEPAGE="https://pypi.org/project/ZConfig/" +S="${WORKDIR}/${MY_P}" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="ZPL" +SLOT="0" +KEYWORDS="~amd64" + +BDEPEND=" + test? ( + dev-python/docutils[${PYTHON_USEDEP}] + dev-python/manuel[${PYTHON_USEDEP}] + dev-python/zope-exceptions[${PYTHON_USEDEP}] + dev-python/zope-interface[${PYTHON_USEDEP}] + dev-python/zope-testrunner[${PYTHON_USEDEP}] + )" + +DOCS=( CHANGES.rst README.rst ) + +distutils_enable_tests unittest +distutils_enable_sphinx doc dev-python/sphinxcontrib-programoutput |
