1 |
commit: ff774e220c82206ecbb983a94b90eae01d705d40 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 19 21:44:49 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 19 21:53:25 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff774e22 |
7 |
|
8 |
dev-python/httpx: Bump to 0.19.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.19.0.ebuild | 59 ++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 60 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/httpx/Manifest b/dev-python/httpx/Manifest |
17 |
index 31ae52b9c22..fb87c3c7508 100644 |
18 |
--- a/dev-python/httpx/Manifest |
19 |
+++ b/dev-python/httpx/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST httpx-0.18.2.tar.gz 1666756 BLAKE2B 3d1e25d503ae5306150c157bc83afdac9a475110d042e041b58de448a0dcfd75de3f4c15836b838dc799cd5f8b7e0d646e43bbe107ffad87d51ff016afe585cd SHA512 727974e5d5924fdd653987dd4f528d27bb2653085b01ef5efcdac39dc92ef2ed586f872c202349aa31105ad970cff914de4315c2d79338a6aa18bebb8126f392 |
22 |
+DIST httpx-0.19.0.tar.gz 1667455 BLAKE2B b8d4cb0b6e7f643b62b507930ccf1534d73d93261cab9281ef57d6392f00da325e897d5339aebacfa07aeae8278d3a81b78d6501a1587ffeaef68cc5087bfdaa SHA512 3b327f07d62cf0430672d4f1a4f884618e588496f049522de327f5c34f7260eb21739b7f1fbd6f43a21962bc8737547f3eddbc22751546647f56c9cd7212840a |
23 |
|
24 |
diff --git a/dev-python/httpx/httpx-0.19.0.ebuild b/dev-python/httpx/httpx-0.19.0.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..72dc4fb1f17 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/httpx/httpx-0.19.0.ebuild |
29 |
@@ -0,0 +1,59 @@ |
30 |
+# Copyright 2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+# Docs builder mkdocs not keyworded on all these arches yet |
36 |
+# DOCS_BUILDER="mkdocs" |
37 |
+# DOCS_DEPEND="dev-python/mkdocs-material" |
38 |
+# DOCS_AUTODOC=1 |
39 |
+PYTHON_COMPAT=( python3_{8..10} ) |
40 |
+ |
41 |
+inherit distutils-r1 # docs |
42 |
+ |
43 |
+DESCRIPTION="Fully-featured HTTP client which provides sync and async APIs" |
44 |
+HOMEPAGE="https://www.python-httpx.org/" |
45 |
+SRC_URI="https://github.com/encode/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
46 |
+ |
47 |
+LICENSE="BSD" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86" |
50 |
+ |
51 |
+RDEPEND=" |
52 |
+ dev-python/certifi[${PYTHON_USEDEP}] |
53 |
+ dev-python/charset_normalizer[${PYTHON_USEDEP}] |
54 |
+ dev-python/sniffio[${PYTHON_USEDEP}] |
55 |
+ =dev-python/httpcore-0.13*[${PYTHON_USEDEP}] |
56 |
+ >=dev-python/rfc3986-1.3[${PYTHON_USEDEP}] |
57 |
+ <dev-python/rfc3986-2[${PYTHON_USEDEP}] |
58 |
+" |
59 |
+BDEPEND=" |
60 |
+ test? ( |
61 |
+ dev-python/brotlicffi[${PYTHON_USEDEP}] |
62 |
+ dev-python/cryptography[${PYTHON_USEDEP}] |
63 |
+ dev-python/hyper-h2[${PYTHON_USEDEP}] |
64 |
+ dev-python/pytest-asyncio[${PYTHON_USEDEP}] |
65 |
+ dev-python/trustme[${PYTHON_USEDEP}] |
66 |
+ dev-python/typing-extensions[${PYTHON_USEDEP}] |
67 |
+ dev-python/uvicorn[${PYTHON_USEDEP}] |
68 |
+ ) |
69 |
+" |
70 |
+ |
71 |
+distutils_enable_tests pytest |
72 |
+ |
73 |
+python_prepare_all() { |
74 |
+ # trio does not support py3.10 |
75 |
+ sed -i '/^import trio/d' tests/concurrency.py || die |
76 |
+ sed -i '/pytest.param("trio", marks=pytest.mark.trio)/d' tests/conftest.py || die |
77 |
+ distutils-r1_python_prepare_all |
78 |
+} |
79 |
+ |
80 |
+python_test() { |
81 |
+ local deselect=( |
82 |
+ # Internet |
83 |
+ tests/client/test_proxies.py::test_async_proxy_close |
84 |
+ tests/client/test_proxies.py::test_sync_proxy_close |
85 |
+ ) |
86 |
+ |
87 |
+ epytest ${deselect[@]/#/--deselect } |
88 |
+} |