diff options
| author | Liguros - Gitlab CI/CD [feature/flatten] <gitlab@liguros.net> | 2020-07-27 06:34:02 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [feature/flatten] <gitlab@liguros.net> | 2020-07-27 06:34:02 +0000 |
| commit | 333dfda28ccaaf5f23556528895503c15d180ffc (patch) | |
| tree | 3da522ed73632826e72486819d54b980ab6ed3df /dev-python | |
| parent | 794b0c1e1682447efa46a98170840274a1b8e3cc (diff) | |
| download | baldeagleos-repo-333dfda28ccaaf5f23556528895503c15d180ffc.tar.gz baldeagleos-repo-333dfda28ccaaf5f23556528895503c15d180ffc.tar.xz baldeagleos-repo-333dfda28ccaaf5f23556528895503c15d180ffc.zip | |
Updating liguros repo
Diffstat (limited to 'dev-python')
| -rw-r--r-- | dev-python/aiohttp-socks/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/aiohttp-socks/aiohttp-socks-0.5.3.ebuild | 44 | ||||
| -rw-r--r-- | dev-python/cheroot/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/cheroot/cheroot-8.4.1.ebuild | 52 | ||||
| -rw-r--r-- | dev-python/hypothesis/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/hypothesis/hypothesis-5.16.3.ebuild | 2 | ||||
| -rw-r--r-- | dev-python/hypothesis/hypothesis-5.23.1.ebuild | 56 | ||||
| -rw-r--r-- | dev-python/matplotlib/matplotlib-3.2.2.ebuild | 2 | ||||
| -rw-r--r-- | dev-python/phonenumbers/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/phonenumbers/phonenumbers-8.12.7.ebuild | 20 | ||||
| -rw-r--r-- | dev-python/pyopengl/pyopengl-3.1.5.ebuild | 2 | ||||
| -rw-r--r-- | dev-python/typing-extensions/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/typing-extensions/typing-extensions-3.7.4.2.ebuild | 25 | ||||
| -rw-r--r-- | dev-python/yarl/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/yarl/files/yarl-1.5.0-typing_ext.patch | 52 | ||||
| -rw-r--r-- | dev-python/yarl/yarl-1.5.0.ebuild | 30 |
16 files changed, 288 insertions, 3 deletions
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}] + !!<dev-python/typing-3.7.4.1 + ) +" + +src_prepare() { + # avoid pytest-xdist dep for one test + sed -i -e 's:test_prints_statistics_given_option_under_xdist:_&:' \ + tests/pytest/test_statistics.py || die + distutils-r1_src_prepare +} + +python_test() { + pytest -vv tests/cover tests/pytest tests/quality || + die "Tests fail with ${EPYTHON}" +} + +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/matplotlib/matplotlib-3.2.2.ebuild b/dev-python/matplotlib/matplotlib-3.2.2.ebuild index f84e56e897ed..e10a25ed575e 100644 --- a/dev-python/matplotlib/matplotlib-3.2.2.ebuild +++ b/dev-python/matplotlib/matplotlib-3.2.2.ebuild @@ -23,7 +23,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz # Fonts: BitstreamVera, OFL-1.1 LICENSE="BitstreamVera BSD matplotlib MIT OFL-1.1" SLOT="0" -KEYWORDS="~amd64 ~arm arm64 ~ppc ~ppc64 ~x86" +KEYWORDS="amd64 ~arm arm64 ~ppc ~ppc64 ~x86" IUSE="cairo doc excel examples gtk3 latex qt5 tk wxwidgets" # internal copy of pycxx highly patched diff --git a/dev-python/phonenumbers/Manifest b/dev-python/phonenumbers/Manifest index 1fe5f68191a2..d260ae56df0c 100644 --- a/dev-python/phonenumbers/Manifest +++ b/dev-python/phonenumbers/Manifest @@ -1,2 +1,3 @@ DIST phonenumbers-8.12.4.tar.gz 2269009 BLAKE2B 102630893595fa34f8e5bf3dc5122f43393e26ada216df02e843a40345aa40df83aa6fbf115d71e986a7e57e6a55bd6fd4eb4af14c4872bfe717cb0ec5be604c SHA512 5d93de2b7b6e974593659fb8909c05f2f6f8c29766deea914472b01dde38abdfc9f4f6ee8c718e2ad11e840070b350b623cb9ca58368f24cf1e03804712fa38d DIST phonenumbers-8.12.6.tar.gz 2249614 BLAKE2B 5dd062cecf424bba0263e92c847161069e998e1b1ee26e273939996dadc1cca302ee4b567f083d58791717633db2ddd6263e625db01639e7fdb61187092f26d2 SHA512 1f79e7bd469861c6100ab4ea88f0b20cb5534e97a8da39f8681b4d201d21d2bbac1948bd49c08c474cb0b129a2c1228f7c5b664dc6033e6f4d2dd79d130897d2 +DIST phonenumbers-8.12.7.tar.gz 2249620 BLAKE2B 198e70c7462f27fa969a7c249d1b7cbb9a3babb3eeee9b2ab70ec6675e94a87845371b6d2fc9f339f21e3f69618f8ce7541372121008c5c6969801a503f2e6c9 SHA512 204dec64bc4087c25171e04cdb9a41295c128d1fef5df7294108e69177673c6728e11837bf7fd57fc1cc2f88bb49161f346c81f5689af99016279db4d346aa43 diff --git a/dev-python/phonenumbers/phonenumbers-8.12.7.ebuild b/dev-python/phonenumbers/phonenumbers-8.12.7.ebuild new file mode 100644 index 000000000000..979bda4a1914 --- /dev/null +++ b/dev-python/phonenumbers/phonenumbers-8.12.7.ebuild @@ -0,0 +1,20 @@ +# 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="Python port of Google's libphonenumber" +HOMEPAGE="https://github.com/daviddrysdale/python-phonenumbers" +SRC_URI="mirror://pypi/p/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DOCS=(README.md) + +distutils_enable_tests setup.py diff --git a/dev-python/pyopengl/pyopengl-3.1.5.ebuild b/dev-python/pyopengl/pyopengl-3.1.5.ebuild index 7c64aa0ec56d..2ccd08aecbfd 100644 --- a/dev-python/pyopengl/pyopengl-3.1.5.ebuild +++ b/dev-python/pyopengl/pyopengl-3.1.5.ebuild @@ -18,7 +18,7 @@ SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" LICENSE="BSD" SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc x86 ~amd64-linux ~x86-linux" IUSE="test tk" RDEPEND=" diff --git a/dev-python/typing-extensions/Manifest b/dev-python/typing-extensions/Manifest index 8ebd7eebebde..fb0ebe803540 100644 --- a/dev-python/typing-extensions/Manifest +++ b/dev-python/typing-extensions/Manifest @@ -1 +1,2 @@ DIST typing_extensions-3.7.4.1.tar.gz 36357 BLAKE2B 69a1dc0d86c73beb54c5b727ae0fa71a8891e729895a928be48bad49d71858d2e1fd52e029fc7f129a6990e52587eddccff985ea902cfb392534f3a299e52d84 SHA512 ef66388d035bf69f2f3f0ce5708bfb8c2284392cc9ce1804f8ad47dc1adf021637e779325d2cbb30ee76b4408defb1aa51fd2ea8cab88de2d515ab4f543c9a6f +DIST typing_extensions-3.7.4.2.tar.gz 38427 BLAKE2B 9d7514cb27b5a8dbf246b15c8643a0e6e80d74004a39dc5585c1cb662cd77b9d8bacc25a03f9da7cde51aba4bd932ee8ffbde75d95ef29ae03c9f7e25897c816 SHA512 7a74c4a97d8cda3e56830c92b409235ffbe7cf0c1685b7fefa7a275a0abf21937622d12c25b4163b4927f6269ed689cbd30f95990ad0b7d2d4341ed648516819 diff --git a/dev-python/typing-extensions/typing-extensions-3.7.4.2.ebuild b/dev-python/typing-extensions/typing-extensions-3.7.4.2.ebuild new file mode 100644 index 000000000000..f37fb4e64952 --- /dev/null +++ b/dev-python/typing-extensions/typing-extensions-3.7.4.2.ebuild @@ -0,0 +1,25 @@ +# 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} pypy3 ) + +inherit distutils-r1 + +MY_PN=${PN/-/_} +MY_P=${MY_PN}-${PV} + +DESCRIPTION="Type Hint extensions from Python 3.8 backported" +HOMEPAGE="https://pypi.org/project/typing_extensions/ https://github.com/python/typing" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" +S=${WORKDIR}/${MY_P} + +LICENSE="PSF-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-solaris" + +python_test() { + cd "${S}"/src_py3 || die + "${EPYTHON}" test_typing_extensions.py -v || die "tests failed under ${EPYTHON}" +} diff --git a/dev-python/yarl/Manifest b/dev-python/yarl/Manifest index 31026e974b26..2e8f5cc339b2 100644 --- a/dev-python/yarl/Manifest +++ b/dev-python/yarl/Manifest @@ -1 +1,2 @@ DIST yarl-1.4.2.tar.gz 163521 BLAKE2B ababd1d35bca51a84c8d189266ef5d35f7a4dc65c84c4097a260e86fb838b1a35d2a639c1cf2a407aac8e68c5f67222aae6fa1f6cbfa5cb71dd851b385bae45a SHA512 036562b645d7b9b3ed4a749decb189587b41ab13b5dda5ff461b00eebadf1ecdbd8d5ae06932cc7d8b7ff551cd630f8671eb0f6c854b20996cda4a6897994fa0 +DIST yarl-1.5.0.tar.gz 172945 BLAKE2B bc8ee2fcbdf615366747dbdd9730cffb64476da1f62aec3948ee5acbd28c7a523905f3a233f19fa390f401a4b635d4b9b1758e3802b2ed3edf37637ff47360e7 SHA512 2e6aeb7c2d254395558c6ad689376f63da5bfec3213e4879fd096d1c60cba3653e3b4dc4793d8583ee37c4c75a3a4a69d6f00db73de88ee13c989e8bd44198e6 diff --git a/dev-python/yarl/files/yarl-1.5.0-typing_ext.patch b/dev-python/yarl/files/yarl-1.5.0-typing_ext.patch new file mode 100644 index 000000000000..737135b0ff00 --- /dev/null +++ b/dev-python/yarl/files/yarl-1.5.0-typing_ext.patch @@ -0,0 +1,52 @@ +From 47478e942992aaaa26c2defc3294cac45ede2cfe Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +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 +) |
