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: Thu, 17 Jun 2021 19:47:41
Message-Id: 1623958958.38fa2f8b8bc6436ca19c71a11921da466894f451.mgorny@gentoo
1 commit: 38fa2f8b8bc6436ca19c71a11921da466894f451
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 17 19:42:38 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 17 19:42:38 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=38fa2f8b
7
8 dev-python/httpx: Bump to 0.18.2
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.18.2.ebuild | 52 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 53 insertions(+)
15
16 diff --git a/dev-python/httpx/Manifest b/dev-python/httpx/Manifest
17 index 5dec8e6a627..0f841ab39b0 100644
18 --- a/dev-python/httpx/Manifest
19 +++ b/dev-python/httpx/Manifest
20 @@ -3,3 +3,4 @@ DIST httpx-0.17.0.tar.gz 1651681 BLAKE2B 46eec46d5f2006667ab51e5e4d98c1a22783351
21 DIST httpx-0.17.1.tar.gz 1651788 BLAKE2B 445e61dba5a2648191f57352b664a33785af01bb9ca29c7f553d10111894d0b4011a6987bdea880dd3fc87a60ddee7813a2d51e12178277b60ac27ac6fa930ef SHA512 260040e266144f56b8d1cd085e0d97f2b570c685560fd2bc6baca633e8c9e88a666d0ba072048d63f826dd380df7116ce676dcfb48406e39a7480c44f73368c6
22 DIST httpx-0.18.0.tar.gz 1663878 BLAKE2B 968ac2a3bd1d150d1adb7e7de5c9dd3aba2ec549feecefdec040d7be1ed54c96b439eff65a4a0d36ebbe77f71af610fc7a0e774fd8dd494a7e80df4e8d0d96c0 SHA512 9648729dbac37500fc828a7cae98a705fa811ae2df0d4abb4bd13a97e03f1ef73b062112c24e7c3edf60140ed5342498a85b46e8cb6b999521ee5d4869656e84
23 DIST httpx-0.18.1.tar.gz 1663996 BLAKE2B dcbfcb4a452b47b643d5114a535005f7f92170392202dedc6c152546430231d20fd8b94b7ecc1d2abacbc9d76acb14cbfdc268109b171cc40812504e696dcaab SHA512 954b020d117dd1064262f3ac2d3137d01bba344b1a061e5713c3889283334d9ca92d9ed3d23f6ce79d684e31bae2d83fca6993178ef55e5a91353b812ad489e3
24 +DIST httpx-0.18.2.tar.gz 1666756 BLAKE2B 3d1e25d503ae5306150c157bc83afdac9a475110d042e041b58de448a0dcfd75de3f4c15836b838dc799cd5f8b7e0d646e43bbe107ffad87d51ff016afe585cd SHA512 727974e5d5924fdd653987dd4f528d27bb2653085b01ef5efcdac39dc92ef2ed586f872c202349aa31105ad970cff914de4315c2d79338a6aa18bebb8126f392
25
26 diff --git a/dev-python/httpx/httpx-0.18.2.ebuild b/dev-python/httpx/httpx-0.18.2.ebuild
27 new file mode 100644
28 index 00000000000..3260f0a90bf
29 --- /dev/null
30 +++ b/dev-python/httpx/httpx-0.18.2.ebuild
31 @@ -0,0 +1,52 @@
32 +# Copyright 2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +PYTHON_COMPAT=( python3_{8..9} )
38 +
39 +inherit distutils-r1
40 +
41 +DESCRIPTION="Fully-featured HTTP client which provides sync and async APIs"
42 +HOMEPAGE="https://www.python-httpx.org/"
43 +SRC_URI="https://github.com/encode/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
44 +
45 +LICENSE="BSD"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86"
48 +
49 +RDEPEND="
50 + dev-python/certifi[${PYTHON_USEDEP}]
51 + dev-python/sniffio[${PYTHON_USEDEP}]
52 + =dev-python/httpcore-0.13*[${PYTHON_USEDEP}]
53 + >=dev-python/rfc3986-1.3[${PYTHON_USEDEP}]
54 + <dev-python/rfc3986-2[${PYTHON_USEDEP}]
55 +"
56 +BDEPEND="
57 + test? (
58 + dev-python/brotlicffi[${PYTHON_USEDEP}]
59 + dev-python/cryptography[${PYTHON_USEDEP}]
60 + dev-python/hyper-h2[${PYTHON_USEDEP}]
61 + dev-python/pytest-asyncio[${PYTHON_USEDEP}]
62 + dev-python/trustme[${PYTHON_USEDEP}]
63 + dev-python/uvicorn[${PYTHON_USEDEP}]
64 + )
65 +"
66 +
67 +distutils_enable_tests pytest
68 +
69 +python_prepare_all() {
70 + # trio is not currently in the tree
71 + sed -i '/^import trio/d' tests/concurrency.py || die
72 + distutils-r1_python_prepare_all
73 +}
74 +
75 +python_test() {
76 + local deselect=(
77 + # Internet
78 + tests/client/test_proxies.py::test_async_proxy_close
79 + tests/client/test_proxies.py::test_sync_proxy_close
80 + )
81 +
82 + epytest ${deselect[@]/#/--deselect }
83 +}