Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/httpx/
Date: Sun, 28 Feb 2021 18:20:50
Message-Id: 1614536443.c42543283df539c1412b8f9bc51077a263cc6a1c.mgorny@gentoo
1 commit: c42543283df539c1412b8f9bc51077a263cc6a1c
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 28 17:58:14 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 28 18:20:43 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4254328
7
8 dev-python/httpx: Bump to 0.17.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/httpx/Manifest | 1 +
13 dev-python/httpx/httpx-0.17.0.ebuild | 45 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 46 insertions(+)
15
16 diff --git a/dev-python/httpx/Manifest b/dev-python/httpx/Manifest
17 index f0d4a82982b..5f476ecf403 100644
18 --- a/dev-python/httpx/Manifest
19 +++ b/dev-python/httpx/Manifest
20 @@ -1 +1,2 @@
21 DIST httpx-0.16.1.tar.gz 965347 BLAKE2B a6c5bcdda595ffcfb824194564ebd93760a9180e60665a9540fc6a2822b1be4273b940fee61cb4b49c2d97a5f4d71b1caf32deddec18d2fb636465b3868aece4 SHA512 d76b2c94c655c187ab150f20b16906034574d017a67c4a06c456d55071434cc0ba7752bdceda86aa6b1a1fe9109fa11594e4ea679cd7d2a77898fb40fa5153d3
22 +DIST httpx-0.17.0.tar.gz 1651681 BLAKE2B 46eec46d5f2006667ab51e5e4d98c1a22783351d9e2fa50ccab2431bf6e52dd9b124d50b32f151fc171561c913d879cfec4f717ea22fd2a333c13190368ab505 SHA512 9471c404c02481a10d42e10e36a55cd55cdecd2cd98a8f3ca1f453a7f1ad7f1ce3b292b8fe583b1c95119f27c0b2eefc756b4e4ed353e3383c12009f3bde21cd
23
24 diff --git a/dev-python/httpx/httpx-0.17.0.ebuild b/dev-python/httpx/httpx-0.17.0.ebuild
25 new file mode 100644
26 index 00000000000..aff93e055f9
27 --- /dev/null
28 +++ b/dev-python/httpx/httpx-0.17.0.ebuild
29 @@ -0,0 +1,45 @@
30 +# Copyright 2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +PYTHON_COMPAT=( python3_{7..9} )
36 +
37 +inherit distutils-r1
38 +
39 +DESCRIPTION="Fully-featured HTTP client which provides sync and async APIs"
40 +HOMEPAGE="https://www.python-httpx.org/"
41 +SRC_URI="https://github.com/encode/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
42 +
43 +LICENSE="BSD"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~x86"
46 +
47 +RDEPEND="
48 + dev-python/certifi[${PYTHON_USEDEP}]
49 + dev-python/sniffio[${PYTHON_USEDEP}]
50 + =dev-python/httpcore-0.12*[${PYTHON_USEDEP}]
51 + >=dev-python/rfc3986-1.3[${PYTHON_USEDEP}]
52 + <dev-python/rfc3986-2[${PYTHON_USEDEP}]
53 +"
54 +BDEPEND="
55 + test? (
56 + dev-python/brotlipy[${PYTHON_USEDEP}]
57 + dev-python/cryptography[${PYTHON_USEDEP}]
58 + dev-python/hyper-h2[${PYTHON_USEDEP}]
59 + dev-python/pytest-asyncio[${PYTHON_USEDEP}]
60 + dev-python/trustme[${PYTHON_USEDEP}]
61 + dev-python/uvicorn[${PYTHON_USEDEP}]
62 + )
63 +"
64 +
65 +distutils_enable_tests pytest
66 +
67 +python_prepare_all() {
68 + # Require Internet access
69 + sed -i 's/test_async_proxy_close\|test_sync_proxy_close/_&/' \
70 + tests/client/test_proxies.py || die
71 + # trio is not currently in the tree
72 + sed -i '/^import trio/d' tests/concurrency.py || die
73 + distutils-r1_python_prepare_all
74 +}