From 333dfda28ccaaf5f23556528895503c15d180ffc Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [feature/flatten]" Date: Mon, 27 Jul 2020 06:34:02 +0000 Subject: Updating liguros repo --- dev-python/aiohttp-socks/Manifest | 1 + .../aiohttp-socks/aiohttp-socks-0.5.3.ebuild | 44 +++++++++++++++++ dev-python/cheroot/Manifest | 1 + dev-python/cheroot/cheroot-8.4.1.ebuild | 52 ++++++++++++++++++++ dev-python/hypothesis/Manifest | 1 + dev-python/hypothesis/hypothesis-5.16.3.ebuild | 2 +- dev-python/hypothesis/hypothesis-5.23.1.ebuild | 56 ++++++++++++++++++++++ dev-python/matplotlib/matplotlib-3.2.2.ebuild | 2 +- dev-python/phonenumbers/Manifest | 1 + dev-python/phonenumbers/phonenumbers-8.12.7.ebuild | 20 ++++++++ dev-python/pyopengl/pyopengl-3.1.5.ebuild | 2 +- dev-python/typing-extensions/Manifest | 1 + .../typing-extensions-3.7.4.2.ebuild | 25 ++++++++++ dev-python/yarl/Manifest | 1 + dev-python/yarl/files/yarl-1.5.0-typing_ext.patch | 52 ++++++++++++++++++++ dev-python/yarl/yarl-1.5.0.ebuild | 30 ++++++++++++ 16 files changed, 288 insertions(+), 3 deletions(-) create mode 100644 dev-python/aiohttp-socks/aiohttp-socks-0.5.3.ebuild create mode 100644 dev-python/cheroot/cheroot-8.4.1.ebuild create mode 100644 dev-python/hypothesis/hypothesis-5.23.1.ebuild create mode 100644 dev-python/phonenumbers/phonenumbers-8.12.7.ebuild create mode 100644 dev-python/typing-extensions/typing-extensions-3.7.4.2.ebuild create mode 100644 dev-python/yarl/files/yarl-1.5.0-typing_ext.patch create mode 100644 dev-python/yarl/yarl-1.5.0.ebuild (limited to 'dev-python') diff --git a/dev-python/aiohttp-socks/Manifest b/dev-python/aiohttp-socks/Manifest index 02d338734bc8..20badbefa7b4 100644 --- a/dev-python/aiohttp-socks/Manifest +++ b/dev-python/aiohttp-socks/Manifest @@ -1,2 +1,3 @@ DIST aiohttp-socks-0.2.2.tar.gz 1351798 BLAKE2B 40c9e033de523cad365e95051d48dee5fbd3d964e7b3864393c54d23394a5cfcfcb46cb9d78f25a6101bc97034c77c5a75aef94cfb962054c29bd804e387b0a9 SHA512 218c262cb3eab74166686614ab5a720c31d1ce886cfd655f296c930f648b1d94e909724346769a46b600b8f1bc8ddbc498ee75cd5854e409566a8ead6a7efdab DIST aiohttp-socks-0.5.2.tar.gz 1360373 BLAKE2B a6de0bd554ba8bf7122dc2b55720430e103ee9784c77b49f919690cba132122c346acf0f1616f7f1cd73a7b5b93794f064c2ee7bb3477fea9c85462c28e121c1 SHA512 92985308f55475265bc438fae6ee30597b542a50b904e3ff69b2bdbdabd15a42dd46b68eb1fa69865931e771aacdb3ffadece72b3b91208eed683a5d98e0d6e7 +DIST aiohttp-socks-0.5.3.tar.gz 1360418 BLAKE2B 7282a4952d5f0301b14291a1892db5ec058af91cf553e4a17ab0e933bb327d1fae9c015d25ff7405ef69cdf56637140fefa9bd1ab1e6f2e224cdc94b9e279159 SHA512 2999f850081d05c31535c24c0fcf0948dbaaec5e421c28ed4ca68b4bfb122f881942e7e829cefc01377212b4579547aafcf273fe5a999acb3d158ee1c3f0a888 diff --git a/dev-python/aiohttp-socks/aiohttp-socks-0.5.3.ebuild b/dev-python/aiohttp-socks/aiohttp-socks-0.5.3.ebuild new file mode 100644 index 000000000000..187c6c138cb0 --- /dev/null +++ b/dev-python/aiohttp-socks/aiohttp-socks-0.5.3.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_{5,6,7,8,9} ) + +inherit distutils-r1 + +DESCRIPTION="SOCKS proxy connector for aiohttp" +HOMEPAGE="https://pypi.org/project/aiohttp-socks/" +SRC_URI="https://github.com/romis2012/aiohttp-socks/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +# Tests require Internet access, also they started failing when run +# via ebuild (but work fine externally) +RESTRICT="test" + +# TODO: optional dep on trio +RDEPEND=" + >=dev-python/aiohttp-2.3.2[${PYTHON_USEDEP}] + >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}]" +DEPEND=" + test? ( + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + net-proxy/3proxy + )" + +distutils_enable_tests pytest + +src_prepare() { + # TODO: reenable when trio is packaged + rm tests/test_core_socks_async_trio.py || die + distutils-r1_src_prepare +} + +python_configure_all() { + rm tests/3proxy/bin/*/* || die + if use test; then + ln -s "$(type -P 3proxy)" tests/3proxy/bin/linux/ || die + fi +} diff --git a/dev-python/cheroot/Manifest b/dev-python/cheroot/Manifest index 7847c1e91810..8fcfcb69296a 100644 --- a/dev-python/cheroot/Manifest +++ b/dev-python/cheroot/Manifest @@ -1,3 +1,4 @@ DIST cheroot-8.3.0.tar.gz 100557 BLAKE2B f5f2fd8a11a1a8660fc37030d501e93787be46dbb79cae89cb4f6915cbf3975453c0ced6ec3bc0ebfc7dc77d555f7d86ed01bd751df6b0227cac3b1b11a82ab5 SHA512 29ff39f043b1a08b9ef653a41761ac4b97de4141cf15c5394f95736d28f7fad4c501d666fe7ff61f40c55b087d022784c7fe09c995c901040b7f2a8ed16b7d14 DIST cheroot-8.3.1.tar.gz 104332 BLAKE2B ac79a5e84c534456067b83f11bd72cb34c0e3c850e49c69e0ff329cbe71fd4331397a38bc3b354529a8c4daea6e527733965ba8aafb33fb67e29e6a714b345cb SHA512 5aed493904d7e60118ae4b9498c10d48da553b3cbc1d713e3e870d771a7b669988d55bb0aa3223436cacdbc2249538be759a9145cf655603fbe5b88ee10e94dd DIST cheroot-8.4.0.tar.gz 106091 BLAKE2B 4749e8dbbe3b368fb350ee11f1494919cae71b5d1dbda8ddee1b0ca812343c09d800646c0e757e0d1e711e486bd1985ba516a5f95541d56623ded78741e25d76 SHA512 b030cced23811659070dccacf3790288d4a0ba326b35a683c7eff9fd3902581f6afbf408315cef129187085c6adb2a813bc5d30cbaf56d2d00369b6e19336a37 +DIST cheroot-8.4.1.tar.gz 107221 BLAKE2B cddfe305b472df4a20b5f93911a941c7d2f36dd5a7edfd593832d705b50aca2fa4bbac9f9e3a3b586623da2edafb115ebdf13b34ee3b284264ba6a31c544c8f8 SHA512 44ae1fc9a47160d3469ef1218dc60fc4c4bdb445c69b32d597fb6341b130ba36e9f04d2082e7218911ae07f4fa1a271526590db16840ff798a3788209498c10c diff --git a/dev-python/cheroot/cheroot-8.4.1.ebuild b/dev-python/cheroot/cheroot-8.4.1.ebuild new file mode 100644 index 000000000000..20e6aef9d96e --- /dev/null +++ b/dev-python/cheroot/cheroot-8.4.1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{5,6,7,8,9} ) +DISTUTILS_USE_SETUPTOOLS=rdepend +inherit distutils-r1 + +DESCRIPTION="Cheroot is the high-performance, pure-Python HTTP server used by CherryPy." +HOMEPAGE="https://cherrypy.org/ https://pypi.org/project/Cheroot/ https://github.com/cherrypy/cheroot" +SRC_URI="mirror://pypi/C/${PN/c/C}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86" + +RDEPEND=" + >=dev-python/six-1.11.0[${PYTHON_USEDEP}] + >=dev-python/more-itertools-2.6[${PYTHON_USEDEP}] + dev-python/jaraco-functools[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + ${RDEPEND} + dev-python/jaraco-context[${PYTHON_USEDEP}] + dev-python/jaraco-text[${PYTHON_USEDEP}] + dev-python/pytest-forked[${PYTHON_USEDEP}] + >=dev-python/pytest-mock-1.11.0[${PYTHON_USEDEP}] + dev-python/pyopenssl[${PYTHON_USEDEP}] + dev-python/requests-unixsocket[${PYTHON_USEDEP}] + dev-python/trustme[${PYTHON_USEDEP}] + dev-python/urllib3[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_prepare_all() { + sed -e "s/use_scm_version=True/version='${PV}'/" -i setup.py || die + sed -e '/setuptools_scm/d' -i setup.cfg || die + sed -e '/--cov/d' \ + -e '/--testmon/d' \ + -e '/--numproc/d' \ + -i pytest.ini || die + + # broken + sed -e '/False.*localhost/d' \ + -i cheroot/test/test_ssl.py || die + + distutils-r1_python_prepare_all +} diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest index 7d156f89ebf5..1c07493fa93d 100644 --- a/dev-python/hypothesis/Manifest +++ b/dev-python/hypothesis/Manifest @@ -8,3 +8,4 @@ DIST hypothesis-python-5.19.2.tar.gz 9023874 BLAKE2B e4c713a574547eccfd9d9fc36c2 DIST hypothesis-python-5.20.2.tar.gz 9024252 BLAKE2B 91fc3c24e00301c2df16ca408f1efce512753bd8ea37ae912d4a10be455b42b830a72659394a88749d261cda08f5519c2cc455339094c025d5cb9e9ffede654e SHA512 8819cf3cce70a16d5e551d38ac54cd27a9649a775416d01452694a86dc40c840ace5d8edda6aed5680a98908e6266fbe6dcc4e6d6d9d3bceb8417d341e3e7a07 DIST hypothesis-python-5.20.3.tar.gz 9024258 BLAKE2B 75bc1e868061be9c8d0377143f5f45221e182eef54c93aa0445dac1b087c35472af6a32d7b6ee8d69bfb9ed16a14927e8572f98b7b3d02fbd880d979b54b862b SHA512 2b8819c425f607e300ad569115cc72b3ab45026a4d82b7f52a66fc60fe92d392a4ca0dac3260969409006958a81e69fbaac1b4612bfa6236e27f4d8f996acb89 DIST hypothesis-python-5.21.0.tar.gz 9025422 BLAKE2B acd6f3b0f945ae65656af2a718add06fe440e221fda7793e3557ab194ccee4c6327e7946a58ce51e9efe3c08274888a648d9021c49fdcf663a04c28b99a0f636 SHA512 1921e5ea8d0f2a6e55d80611004d35671f7a7a02cb8a8f101b45e64e4ef23f9c2c8a9c467fb6c9f33ae440622020e1ad504f51a7d725a6449ca715ad1f373e40 +DIST hypothesis-python-5.23.1.tar.gz 9031807 BLAKE2B 00c54296f83bdcd41ac63b36a29dc9e542a236406609b9b800912a209d56c4169f2d4b1c139697ffe38eff6cd886cd4a2491f3b4b5294cc710aedb70f5905436 SHA512 b6da23a586b60b5a094dddccab82f3b863cebcde5103e492807fb9e0b9d047b3e5fe928da24eabf5764298332d9c1e9b434ef167d7cff0a9de8a175d5f9964a5 diff --git a/dev-python/hypothesis/hypothesis-5.16.3.ebuild b/dev-python/hypothesis/hypothesis-5.16.3.ebuild index bcdb669830f6..1fc99a38223e 100644 --- a/dev-python/hypothesis/hypothesis-5.16.3.ebuild +++ b/dev-python/hypothesis/hypothesis-5.16.3.ebuild @@ -16,7 +16,7 @@ S="${WORKDIR}/${PN}-${PN}-python-${PV}/${PN}-python" LICENSE="MPL-2.0" SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" +KEYWORDS="~alpha ~amd64 ~arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" IUSE="test" RESTRICT="!test? ( test )" diff --git a/dev-python/hypothesis/hypothesis-5.23.1.ebuild b/dev-python/hypothesis/hypothesis-5.23.1.ebuild new file mode 100644 index 000000000000..37f9e736953e --- /dev/null +++ b/dev-python/hypothesis/hypothesis-5.23.1.ebuild @@ -0,0 +1,56 @@ +# 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_{5,6,7,8,9} pypy3 ) +PYTHON_REQ_USE="threads(+),sqlite" + +inherit distutils-r1 eutils + +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 ~s390 ~sparc ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}] + >=dev-python/sortedcontainers-2.1.0[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + ${RDEPEND} + dev-python/mock[${PYTHON_USEDEP}] + dev-python/pexpect[${PYTHON_USEDEP}] + >=dev-python/pytest-5.3.5[${PYTHON_USEDEP}] + !! +Date: Mon, 27 Jul 2020 07:13:19 +0200 +Subject: [PATCH] Require typing_extensions for py<3.8 only + +All the names imported from typing_extensions are available already +in Python 3.8, so there is no need to use the additional dependency +there. Furthermore, typing_extensions currently do not support +Python 3.9, effectively blocking yarl from doing so. To solve this, +use external typing_extensions only for py<3.8, and just use builtin +typing in 3.8+. +--- + requirements/test.txt | 2 +- + setup.py | 3 ++- + yarl/__init__.pyi | 7 ++++++- + 3 files changed, 9 insertions(+), 3 deletions(-) + +diff --git a/setup.py b/setup.py +index 41d684d..1ed5bfe 100644 +--- a/setup.py ++++ b/setup.py +@@ -30,7 +30,8 @@ with fname.open(encoding="utf8") as fp: + except IndexError: + raise RuntimeError("Unable to determine version.") + +-install_requires = ["multidict>=4.0", "idna>=2.0", "typing_extensions>=3.7.4"] ++install_requires = ["multidict>=4.0", "idna>=2.0", ++ "typing_extensions>=3.7.4;python_version<\"3.8\""] + + + def read(name): +diff --git a/yarl/__init__.pyi b/yarl/__init__.pyi +index b3b58ec..eb4a12f 100644 +--- a/yarl/__init__.pyi ++++ b/yarl/__init__.pyi +@@ -1,7 +1,12 @@ + from typing import overload, Any, Tuple, Optional, Mapping, Union, Sequence, Type +-from typing_extensions import TypedDict, Final, final + import multidict + from functools import _CacheInfo ++import sys ++ ++if sys.hexversion >= 0x03080000: ++ from typing import TypedDict, Final, final ++else: ++ from typing_extensions import TypedDict, Final, final + + _QueryVariable = Union[str, int] + _Query = Union[ +-- +2.27.0 + diff --git a/dev-python/yarl/yarl-1.5.0.ebuild b/dev-python/yarl/yarl-1.5.0.ebuild new file mode 100644 index 000000000000..c2229aecb5d4 --- /dev/null +++ b/dev-python/yarl/yarl-1.5.0.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{5,6,7,8,9} ) + +inherit distutils-r1 + +DESCRIPTION="Yet another URL library" +HOMEPAGE="https://github.com/aio-libs/yarl/" +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 ~s390 ~sparc ~x86" + +RDEPEND=" + >=dev-python/multidict-4.0[${PYTHON_USEDEP}] + >=dev-python/idna-2.0[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/typing-extensions-3.7.4[${PYTHON_USEDEP}] + ' python3_{6,7}) +" + +distutils_enable_tests pytest + +PATCHES=( + "${FILESDIR}"/${PN}-1.4.2-test-without-coverage.patch + "${FILESDIR}"/${P}-typing_ext.patch +) -- cgit v1.3