diff options
Diffstat (limited to 'dev-python')
19 files changed, 307 insertions, 71 deletions
diff --git a/dev-python/ansicolor/Manifest b/dev-python/ansicolor/Manifest index 01708bb5bf74..d75f114fc9f2 100644 --- a/dev-python/ansicolor/Manifest +++ b/dev-python/ansicolor/Manifest @@ -1 +1,2 @@ DIST ansicolor-0.2.6.tar.gz 6224 BLAKE2B 38ffd0e9a88c886ebad25c4f0072f2f8f833e028c3bc14eb89252c1c0b501f973c9b3e371b4c605a3b98df33eb7203a963797d3ee56cf87b0afb927b19096fd5 SHA512 44c7dc6f621fc3044d4a52acb96e7e497578e025090633bfc8cbf686d7461da018f64502b477a6090e60747481f320cebaad00ee0776c9f4c52d4abbb1812121 +DIST ansicolor-0.3.2.gh.tar.gz 118221 BLAKE2B f3f621298858974522dd05665c66ffebfc335291b61c6f0e6f835aaddf099559412f12979ad2a43001690b430125c8e1a8fd5427ad3268393d75bd736353d598 SHA512 de1e1bc9d8a02accaa57a64e5d2ea1f510545b3ab83218c47c7a1861e8438862c222147c9dcab0fcb1ec4055dcee07d6cde6d7bfecfbf9ac55c3bb76ac0fb0ab diff --git a/dev-python/ansicolor/ansicolor-0.3.2.ebuild b/dev-python/ansicolor/ansicolor-0.3.2.ebuild new file mode 100644 index 000000000000..195e4e7699db --- /dev/null +++ b/dev-python/ansicolor/ansicolor-0.3.2.ebuild @@ -0,0 +1,20 @@ +# 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="Produce ansi color output and colored highlighting and diffing" +HOMEPAGE="https://github.com/numerodix/ansicolor https://pypi.org/project/ansicolor/" +SRC_URI=" + https://github.com/numerodix/ansicolor/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +distutils_enable_tests pytest diff --git a/dev-python/ansicolor/metadata.xml b/dev-python/ansicolor/metadata.xml index 6ef614ab4353..985112e21602 100644 --- a/dev-python/ansicolor/metadata.xml +++ b/dev-python/ansicolor/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> <upstream> <remote-id type="github">numerodix/ansicolor</remote-id> <remote-id type="pypi">ansicolor</remote-id> diff --git a/dev-python/cryptography/metadata.xml b/dev-python/cryptography/metadata.xml index e72ed33a7b51..aa9a6ba6654e 100644 --- a/dev-python/cryptography/metadata.xml +++ b/dev-python/cryptography/metadata.xml @@ -11,6 +11,7 @@ </maintainer> <upstream> <remote-id type="pypi">cryptography</remote-id> + <remote-id type="cpe">cpe:/a:cryptography_project:cyptography</remote-id> <remote-id type="github">pyca/cryptography</remote-id> </upstream> <use> diff --git a/dev-python/hcloud-python/Manifest b/dev-python/hcloud-python/Manifest index b9753d1ba913..afbb3555998a 100644 --- a/dev-python/hcloud-python/Manifest +++ b/dev-python/hcloud-python/Manifest @@ -1,2 +1 @@ -DIST hcloud-python-1.10.0.tar.gz 82155 BLAKE2B a22ad24863f416b039a04d9e82675fa7923303d73aff6045a2247fc755db1740cfd98418a84758a15eb96ff666bc6e395a969cf59a234571414087fb03cd533f SHA512 c16e070c39e514faf002f7c78ed8fca6ac762775a75bb1a04f3033f6cd9ca6424b595dbd636ad451bce1eb5b52214373ddd29513937c42c84b4a0a7d2e84fb3f DIST hcloud-python-1.12.0.tar.gz 88905 BLAKE2B 1e24cfa208f02a1068b0016ac8948358a3709eb4a2c1f73d75d8e3ee85bee7265b0da6f5cfc58afefee664a024becc57dfa3389f36c4e7ae0c0ae623944e51a3 SHA512 fc431041d2bbae749d5335dda0c8ccf6abcb3fdd8e3a467b50a2ff45e70f9b7a8378bc2b72c00be7c65cc8cf84e01fde7965c6bb731b7252d7da377648bc01eb diff --git a/dev-python/hcloud-python/hcloud-python-1.10.0.ebuild b/dev-python/hcloud-python/hcloud-python-1.10.0.ebuild deleted file mode 100644 index a9a1b7113b54..000000000000 --- a/dev-python/hcloud-python/hcloud-python-1.10.0.ebuild +++ /dev/null @@ -1,55 +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="Official Hetzner Cloud python library" -HOMEPAGE="https://github.com/hetznercloud/hcloud-python" -SRC_URI="https://github.com/hetznercloud/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="amd64" -IUSE="doc examples" - -COMMON_DEPEND=">=dev-python/python-dateutil-2.7.5[${PYTHON_USEDEP}] - >=dev-python/requests-2.20[${PYTHON_USEDEP}]" - -BDEPEND="${COMMON_DEPEND} - doc? ( - dev-python/sphinx[${PYTHON_USEDEP}] - dev-python/sphinx_rtd_theme - ) - test? ( - dev-python/flake8[${PYTHON_USEDEP}] - dev-python/isort[${PYTHON_USEDEP}] - dev-python/mock[${PYTHON_USEDEP}] - dev-python/tox[${PYTHON_USEDEP}] - )" - -RDEPEND="${COMMON_DEPEND} - >=dev-python/future-0.17.1[${PYTHON_USEDEP}]" - -python_compile_all() { - use doc && emake -C docs html -} - -python_install_all() { - use examples && dodoc -r examples - use doc && local HTML_DOCS=( docs/_build/html/. ) - - distutils-r1_python_install_all -} - -distutils_enable_tests pytest - -src_test() { - # Integration tests need docker: - # https://github.com/hetznercloud/hcloud-python/blob/master/.travis.yml#L16 - rm -fr tests/integration - default -} diff --git a/dev-python/hcloud-python/hcloud-python-1.12.0.ebuild b/dev-python/hcloud-python/hcloud-python-1.12.0.ebuild index d27a071c664d..eae9b97ea0c0 100644 --- a/dev-python/hcloud-python/hcloud-python-1.12.0.ebuild +++ b/dev-python/hcloud-python/hcloud-python-1.12.0.ebuild @@ -13,7 +13,7 @@ SRC_URI="https://github.com/hetznercloud/${PN}/archive/v${PV}.tar.gz -> ${P}.tar LICENSE="MIT" SLOT="0" -KEYWORDS="~amd64" +KEYWORDS="amd64" IUSE="doc examples" RDEPEND=" diff --git a/dev-python/moto/Manifest b/dev-python/moto/Manifest index 19fa8f3d3114..a84789ae0855 100644 --- a/dev-python/moto/Manifest +++ b/dev-python/moto/Manifest @@ -4,3 +4,4 @@ DIST moto-2.0.0.tar.gz 5054551 BLAKE2B be9b18909f90b22fe57d47e2eea50144b4ac8046d DIST moto-2.0.1.tar.gz 1530088 BLAKE2B eb35bcbc8b22044ae86eaa6eb1f71eb24174a8686ef06d475c870ef629d0a525719c4f153cb0a55fa27f3c33568a5796a07ce903800468557dfe275de3da3623 SHA512 d650140c76a2090332fd9f4c8be84379d4e578a63125d473b821d59bff9f93ee8e696268e4784df13f2ee3b8b6967fd10cbd94750f37e63967ed679b4a301682 DIST moto-2.0.2.tar.gz 1534459 BLAKE2B b4609f332e8f8eb8d61250919eca805f82a6dfc468cf0b9cfe81f462aae9f93373efec6165c818589abe60955abe061a273148a36e4b1f8534ce9fa7e59f5cd2 SHA512 b478f9938f8e7b92c3e718a1aea5907c2070bda42995050d39f8e62cbd7cfd30fe4c9cbd7e7475f5a50c71c3370a89f53480adcf83df1fe08968125f2a1427f6 DIST moto-2.0.5.tar.gz 1551415 BLAKE2B 452cb94443188e1715145bee574f04924d894a3d647673443a8a335bb907f8601098540b032d6c9a8ced3e1fc490c49ad70c877547d905cece05bbb742d05976 SHA512 70e64ab98873d480e776a2139a4d351665c6c2f98faf90e2871c6b9998571d1bd239757bc90bbc6ab6e1ed510598bfce77157ad522953efe40c884068885c57d +DIST moto-2.0.6.tar.gz 1557871 BLAKE2B dd4c23758bc9c98fbd2b2a70af744daa245fc8b4b1154348486ae85d195e5e3fa2c513f61386504d05c0d646e81fbf8ec5bf41be317b9fd7581668cd23cc1db3 SHA512 9f287ff07f948dd3d2d6af1c6120d29e9625e420bb94f83c230d813e26689161f9a2e89e2b32947e82084cdcd865fef714ad14309ff41371bd37d251481f8dc9 diff --git a/dev-python/moto/moto-2.0.6.ebuild b/dev-python/moto/moto-2.0.6.ebuild new file mode 100644 index 000000000000..bb3423485e8c --- /dev/null +++ b/dev-python/moto/moto-2.0.6.ebuild @@ -0,0 +1,70 @@ +# 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=rdepend +inherit distutils-r1 + +DESCRIPTION="Mock library for boto" +HOMEPAGE="https://github.com/spulec/moto" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" + +RDEPEND=" + >=dev-python/aws-xray-sdk-python-0.93[${PYTHON_USEDEP}] + $(python_gen_cond_dep 'dev-python/backports-tempfile[${PYTHON_USEDEP}]' python3_{6,7}) + dev-python/boto[${PYTHON_USEDEP}] + dev-python/cfn-python-lint[${PYTHON_USEDEP}] + >=dev-python/cryptography-3.3.1[${PYTHON_USEDEP}] + dev-python/cookies[${PYTHON_USEDEP}] + dev-python/dicttoxml[${PYTHON_USEDEP}] + >=dev-python/docker-py-2.5.1[${PYTHON_USEDEP}] + >=dev-python/idna-2.5[${PYTHON_USEDEP}] + >=dev-python/jinja-2.10.1[${PYTHON_USEDEP}] + >=dev-python/jsondiff-1.1.2[${PYTHON_USEDEP}] + >=dev-python/boto3-1.9.201[${PYTHON_USEDEP}] + >=dev-python/botocore-1.12.201[${PYTHON_USEDEP}] + dev-python/flask[${PYTHON_USEDEP}] + dev-python/flask-cors[${PYTHON_USEDEP}] + dev-python/more-itertools[${PYTHON_USEDEP}] + dev-python/pretty-yaml[${PYTHON_USEDEP}] + >=dev-python/pyyaml-5.1[${PYTHON_USEDEP}] + >=dev-python/python-dateutil-2.1[${PYTHON_USEDEP}] + dev-python/pytz[${PYTHON_USEDEP}] + dev-python/python-dateutil[${PYTHON_USEDEP}] + dev-python/python-jose[${PYTHON_USEDEP}] + dev-python/python-sshpubkeys[${PYTHON_USEDEP}] + >=dev-python/responses-0.9.0[${PYTHON_USEDEP}] + >=dev-python/requests-2.5[${PYTHON_USEDEP}] + dev-python/xmltodict[${PYTHON_USEDEP}] + >=dev-python/six-1.9[${PYTHON_USEDEP}] + dev-python/werkzeug[${PYTHON_USEDEP}] + dev-python/zipp[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/freezegun[${PYTHON_USEDEP}] + dev-python/responses[${PYTHON_USEDEP}] + >=dev-python/sure-1.4.11[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_prepare_all() { + # unping indirect dep on ecdsa that's supposed to workaround pip + # bugs + sed -i -e '/ecdsa/s:<0.15::' setup.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + # pytest-django causes freezegun try to mangle stuff inside django + # which fails when django is not really used + epytest -p no:django -m 'not network' +} diff --git a/dev-python/protobuf-python/protobuf-python-3.15.8.ebuild b/dev-python/protobuf-python/protobuf-python-3.15.8.ebuild index 396c1486381a..bab70cc56440 100644 --- a/dev-python/protobuf-python/protobuf-python-3.15.8.ebuild +++ b/dev-python/protobuf-python/protobuf-python-3.15.8.ebuild @@ -24,7 +24,7 @@ fi LICENSE="BSD" SLOT="0/26" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos" +KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos" IUSE="" BDEPEND="${PYTHON_DEPS} diff --git a/dev-python/pykka/Manifest b/dev-python/pykka/Manifest index aa6fce924df3..654c85f4ce30 100644 --- a/dev-python/pykka/Manifest +++ b/dev-python/pykka/Manifest @@ -1,2 +1,3 @@ DIST Pykka-2.0.2.tar.gz 51858 BLAKE2B 62132a3ded257d44d9504258418abc73ec9cc09353ab8e1948c9910fc11f67f770510b2dc7cf122db9af9ff62091757b648dce69cbdab0ffc17567169749d0d2 SHA512 98b2e6122dc5158da489265cf7cf9e358bfa432d0a0eaab9f50a07c0050083afb19aad494e4cd27347c376947eafb7d9796909c18e3648ef1bf0685bd6384e5b DIST Pykka-2.0.3.tar.gz 55749 BLAKE2B 5da98dcc786c2bb7728485e16090b8dad7a96858aa86f024564286bb03d3faa93673ed3db87882e3dc6555a5b64c9c62433ab782ceb94e89965fa870bbb78d2f SHA512 0f4d6d9e0c92a7e7cafb340f343afa1e78bcefdd0454341d3f457fa202acdd3de979881689cb3cd5f2cbd3a08f80177f6470db4fb895b20d9c1b4d0b9ef627ee +DIST pykka-3.0.1.gh.tar.gz 59252 BLAKE2B fd0ca0742f3c372a5983d01929b34587390929fae28b70e0ee939f651f7655bb924ae08fac039225a8040c9bf523177af7bf3fa7c1db6ea1f04ec460cc3a1c6a SHA512 c96503019a190663cd4054c2488668143ff5d0d92b0c2d1ab3df577ab9fc9f0f2f575677a9f955a7b940e725d588c0caa6097515f1236df9a453fb3b0a2cb8c8 diff --git a/dev-python/pykka/pykka-3.0.1.ebuild b/dev-python/pykka/pykka-3.0.1.ebuild new file mode 100644 index 000000000000..f70a97c4d62a --- /dev/null +++ b/dev-python/pykka/pykka-3.0.1.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_USE_SETUPTOOLS=pyproject.toml +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) + +inherit distutils-r1 + +DESCRIPTION="A Python implementation of the actor model" +HOMEPAGE=" + https://www.pykka.org/en/latest/ + https://github.com/jodal/pykka/" +SRC_URI=" + https://github.com/jodal/pykka/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + $(python_gen_cond_dep ' + dev-python/importlib_metadata[${PYTHON_USEDEP}] + ' python3_7)" +BDEPEND=" + test? ( + dev-python/pytest-mock[${PYTHON_USEDEP}] + )" + +distutils_enable_tests pytest diff --git a/dev-python/pymongo/Manifest b/dev-python/pymongo/Manifest index 57156277fa06..7f5d2a062c48 100644 --- a/dev-python/pymongo/Manifest +++ b/dev-python/pymongo/Manifest @@ -1,4 +1,5 @@ DIST mongo-python-driver-3.11.1.tar.gz 981098 BLAKE2B 27c24a16fe685dda728eadee7784596178ef8ca50d4017bd38ec1bd5ffb29a6eb2e2b24db82cb7d1fe545c58575b3e83d54bfda645eb6dca0d4678e59f7d201b SHA512 459218ae2b4783dc1ec0fb63be62f38c138bc074b6685e3785840b7ed38472a579ba3bd92ceee3a27757b38975963911dab3235f0eba1cc261e083d8e020f462 DIST mongo-python-driver-3.11.2.tar.gz 982527 BLAKE2B 3dcbf57a1cb0a09f9747c1a4770f4935b1c5f524f14392a3a1ce2ee6d3c6f72dc08d96d81300dd7bf7fcd7e5eeb0d6d8af7ac8240f41b460952046d30e8fa3a5 SHA512 110be1c6301f0f5511ed0d8a0cccc1e79c4a1a217bef486afebd2238522735d1e0e2a930533d05194aa485db65c4555bd46dbcf5808a33b2b07bc907055f2b7e DIST mongo-python-driver-3.11.3.tar.gz 983013 BLAKE2B 944c7a7966571a4c2d73df4728f1290cda1112f9a4222c6edea7515063165b2bf98573f7adaf188fb5eb47f9f11dc5b8641848a538b4df4bc0c8ade291517e4f SHA512 20c086e06a91cec23b8a8f3673f8499e5b4bd616090a01f389d9855ab0876be1a86daad524adbc53b716bbb19b9129c8087c7bf13495b1d083dc64d10a335e7c +DIST mongo-python-driver-3.11.4.tar.gz 983009 BLAKE2B b2ca8d90a34b41c0991b545626853137b6a7f5f006dbb5d7a93fd8312759b53b99415583ca5ba982abb420db8502cb9de745f1ac0962efa05eb05ecb4289c323 SHA512 ecd2ff41ab902423dc58901cd9a8355e200f5b00a4eea4a8e950de75674fd59f7367df1ab7ee6c09bf515b8fa110cac0f7de084fbe14527486a9c38a0c8c9c27 DIST pymongo-3.11.0.tar.gz 771691 BLAKE2B 5ae5b78caac335656c1005666c5633882da517c512bbfdb0df2c4569ec5060fa9623a23f48ffcf0c6ab2cdc69f6534f36ef18c929047bbb22cfbe9055a0881b7 SHA512 4f8a185013cbb3c07774d3c6aecc9e97dabb4ba55176fa8a51e17bcdb7cbbebaacd16304e580b4c6aeb26aad964401249313b59dde3c5c248c4496d64d18b22c diff --git a/dev-python/pymongo/pymongo-3.11.4.ebuild b/dev-python/pymongo/pymongo-3.11.4.ebuild new file mode 100644 index 000000000000..1d55e05c416f --- /dev/null +++ b/dev-python/pymongo/pymongo-3.11.4.ebuild @@ -0,0 +1,115 @@ +# 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 check-reqs distutils-r1 + +MY_P=mongo-python-driver-${PV} +DESCRIPTION="Python driver for MongoDB" +HOMEPAGE="https://github.com/mongodb/mongo-python-driver https://pypi.org/project/pymongo/" +SRC_URI=" + https://github.com/mongodb/mongo-python-driver/archive/${PV}.tar.gz + -> ${MY_P}.tar.gz" +S=${WORKDIR}/${MY_P} + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~hppa ~x86" +IUSE="doc kerberos" + +RDEPEND=" + kerberos? ( dev-python/pykerberos[${PYTHON_USEDEP}] ) +" +BDEPEND=" + test? ( + >=dev-db/mongodb-2.6.0 + ) +" +DISTUTILS_IN_SOURCE_BUILD=1 + +distutils_enable_sphinx doc +distutils_enable_tests nose + +reqcheck() { + if use test; then + # During the tests, database size reaches 1.5G. + local CHECKREQS_DISK_BUILD=1536M + + check-reqs_${1} + fi +} + +pkg_pretend() { + reqcheck pkg_pretend +} + +pkg_setup() { + reqcheck pkg_setup +} + +src_prepare() { + # network-sandbox probably + rm test/test_srv_polling.py || die + sed -e 's:test_connection_timeout_ms_propagates_to_DNS_resolver:_&:' \ + -i test/test_client.py || die + # relies on exact exception message + sed -e 's:abstract methods:abstract:' \ + -i test/test_custom_types.py || die + distutils-r1_src_prepare +} + +python_test() { + # Yes, we need TCP/IP for that... + local DB_IP=127.0.0.1 + local DB_PORT=27000 + + export DB_IP DB_PORT + + local dbpath=${TMPDIR}/mongo.db + local logpath=${TMPDIR}/mongod.log + + # Now, the hard part: we need to find a free port for mongod. + # We're just trying to run it random port numbers and check the log + # for bind errors. It shall be noted that 'mongod --fork' does not + # return failure when it fails to bind. + + mkdir -p "${dbpath}" || die + while true; do + ebegin "Trying to start mongod on port ${DB_PORT}" + + LC_ALL=C \ + mongod --dbpath "${dbpath}" --nojournal \ + --bind_ip ${DB_IP} --port ${DB_PORT} \ + --unixSocketPrefix "${TMPDIR}" \ + --logpath "${logpath}" --fork \ + && sleep 2 + + # Now we need to check if the server actually started... + if [[ ${?} -eq 0 && -S "${TMPDIR}"/mongodb-${DB_PORT}.sock ]]; then + # yay! + eend 0 + break + elif grep -q 'Address already in use' "${logpath}"; then + # ay, someone took our port! + eend 1 + : $(( DB_PORT += 1 )) + continue + else + eend 1 + eerror "Unable to start mongod for tests. See the server log:" + eerror " ${logpath}" + die "Unable to start mongod for tests." + fi + done + + local failed + DB_PORT2=$(( DB_PORT + 1 )) DB_PORT3=$(( DB_PORT + 2 )) esetup.py test || failed=1 + + mongod --dbpath "${dbpath}" --shutdown || die + + [[ ${failed} ]] && die "Tests fail with ${EPYTHON}" + + rm -rf "${dbpath}" || die +} diff --git a/dev-python/requests/requests-2.25.1-r1.ebuild b/dev-python/requests/requests-2.25.1-r2.ebuild index 4fcaee66ce36..7eb67b9fa555 100644 --- a/dev-python/requests/requests-2.25.1-r1.ebuild +++ b/dev-python/requests/requests-2.25.1-r2.ebuild @@ -22,7 +22,7 @@ RDEPEND=" >=dev-python/chardet-3.0.2[${PYTHON_USEDEP}] <dev-python/chardet-5[${PYTHON_USEDEP}] >=dev-python/idna-2.5[${PYTHON_USEDEP}] - <dev-python/idna-3[${PYTHON_USEDEP}] + <dev-python/idna-4[${PYTHON_USEDEP}] <dev-python/urllib3-1.27[${PYTHON_USEDEP}] socks5? ( >=dev-python/PySocks-1.5.6[${PYTHON_USEDEP}] ) " @@ -38,16 +38,23 @@ BDEPEND=" distutils_enable_tests pytest src_prepare() { + # allow idna-3 + sed -i -e '/idna/s:<3:<4:' setup.py || die + distutils-r1_src_prepare +} + +python_test() { + local deselect=( + # Internet + requests/__init__.py::requests + requests/api.py::requests.api.request + requests/models.py::requests.models.PreparedRequest + requests/sessions.py::requests.sessions.Session + tests/test_requests.py::TestRequests::test_https_warnings + tests/test_requests.py::TestTimeout::test_connect_timeout + tests/test_requests.py::TestTimeout::test_total_timeout_connect + ) - # strip tests that require some kind of network - sed -e 's:test_connect_timeout:_&:' \ - -e 's:test_total_timeout_connect:_&:' \ - -i tests/test_requests.py || die - # probably pyopenssl version dependent - sed -e 's:test_https_warnings:_&:' \ - -i tests/test_requests.py || die - # doctests rely on networking - sed -e 's:--doctest-modules::' \ - -i pytest.ini || die + epytest ${deselect[@]/#/--deselect } } diff --git a/dev-python/setuptools/setuptools-56.1.0.ebuild b/dev-python/setuptools/setuptools-56.1.0.ebuild index d47acafe9ddc..d241807f5292 100644 --- a/dev-python/setuptools/setuptools-56.1.0.ebuild +++ b/dev-python/setuptools/setuptools-56.1.0.ebuild @@ -4,7 +4,7 @@ EAPI=7 # Set to 'manual' to avoid triggering install QA check DISTUTILS_USE_SETUPTOOLS=manual -PYTHON_COMPAT=( python3_{7..10} pypy3 ) +PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 ) PYTHON_REQ_USE="xml(+)" inherit distutils-r1 multiprocessing diff --git a/dev-python/unittest-or-fail/unittest-or-fail-1.ebuild b/dev-python/unittest-or-fail/unittest-or-fail-1.ebuild index bc3a13de7e0d..fa84b9265493 100644 --- a/dev-python/unittest-or-fail/unittest-or-fail-1.ebuild +++ b/dev-python/unittest-or-fail/unittest-or-fail-1.ebuild @@ -4,7 +4,7 @@ EAPI=7 DISTUTILS_USE_SETUPTOOLS=no -PYTHON_COMPAT=( python3_{7..10} pypy3 ) +PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 ) inherit distutils-r1 DESCRIPTION="Run unittests or fail if no tests were found" diff --git a/dev-python/websocket-client/Manifest b/dev-python/websocket-client/Manifest index d5a5b4ad62b2..4ca4b12cece6 100644 --- a/dev-python/websocket-client/Manifest +++ b/dev-python/websocket-client/Manifest @@ -1 +1,2 @@ +DIST websocket-client-0.59.0.tar.gz 57897 BLAKE2B 9f15c563491bd105a1987281cc20c0ab80ed1625036eeaa674fd28334b8226b5f9660b150743649f6bc7717d4306cbb1778222f9caeeff29507ab364572ce2b5 SHA512 c7f4a0336093de86fd00828049a836477a3c859cc4bddebd9e7d31eb746dab4de8fa11205a5fb182e5df3590964aa73f279310575dfabc4abc32157e80df42b1 DIST websocket_client-0.58.0.tar.gz 48216 BLAKE2B 5e559852385d95caffa73fdb4bfcddd3e00f7bdc9d23d07e7bd6b9e8de599742e153d31bb3a57bdf1aef02361f5dc0b13a443c21872c27576e068f246102d655 SHA512 c587945831427a9bddef96be53d20fec7f55ffd7efe2b676dac96b8078ba446ecda85379a4edfc49c36de936516d3994cbd0515decb9b615cd969bde1117167a diff --git a/dev-python/websocket-client/websocket-client-0.59.0.ebuild b/dev-python/websocket-client/websocket-client-0.59.0.ebuild new file mode 100644 index 000000000000..c247f835cceb --- /dev/null +++ b/dev-python/websocket-client/websocket-client-0.59.0.ebuild @@ -0,0 +1,38 @@ +# 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" + +RDEPEND=" + dev-python/six[${PYTHON_USEDEP}] +" + +distutils_enable_tests setup.py + +src_prepare() { + sed -i -e '1i#!/usr/bin/env python' bin/wsdump.py || die + # 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 +} |
