Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@××××××.net>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/httpx/
Date: Mon, 09 Mar 2020 17:28:33
Message-Id: 1583774823.6311e8be48ae102e53e38e923e38df6bc1a24840.andrewammerlaan@gentoo
1 commit: 6311e8be48ae102e53e38e923e38df6bc1a24840
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
3 AuthorDate: Mon Mar 9 17:27:03 2020 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
5 CommitDate: Mon Mar 9 17:27:03 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6311e8be
7
8 dev-python/httpx: Version bump, and enable test and doc
9
10 Package-Manager: Portage-2.3.93, Repoman-2.3.20
11 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>
12
13 dev-python/httpx/Manifest | 3 +-
14 dev-python/httpx/httpx-0.11.1.ebuild | 47 ++++++++++++++++++++++-
15 dev-python/httpx/httpx-0.12.0.ebuild | 72 ++++++++++++++++++++++++++++++++++++
16 3 files changed, 120 insertions(+), 2 deletions(-)
17
18 diff --git a/dev-python/httpx/Manifest b/dev-python/httpx/Manifest
19 index 6146f31..c6114ba 100644
20 --- a/dev-python/httpx/Manifest
21 +++ b/dev-python/httpx/Manifest
22 @@ -1 +1,2 @@
23 -DIST httpx-0.11.1.tar.gz 65974 BLAKE2B fabf6f8e9b48ad3ccc79c72c42ad007819a065d74c8c0d7225550cc2e223626b896b57378ad989c7f04b17e70d1941873addcec2507afefde0801f4eaa6d3f43 SHA512 0203d348739b450fec1f386778136f8591d0177f58eff68d3887348f1e379bfd7da98b87a80b195d023ce17e1442989a52765704be18088166593211a23b84ad
24 +DIST httpx-0.11.1.tar.gz 177579 BLAKE2B a5722e997a79fd9b5c701a862abb4bf70458bf57057d2a9fb9a2dccdbbca2f4f54bf59e91437ed8ff452737a3b01d69dbf4efe3ef03d49e240bc5bf54e51ebea SHA512 4da80a0232092d2423fd95d4549df79d9885e6ce34af0480f1d5a4904c9ca0fdb725b600f603c482179ea3b7c6ee5b584a70b8c0722918ba28f1bcc5c48201ad
25 +DIST httpx-0.12.0.tar.gz 186138 BLAKE2B d350a156e1663a197e2f7ab43531735e08da0d5b68df2d75e8cd2396b82095668318ecc0ca0558736f97f56ad72970ebf36fe34706b3d65e6d59fabd0ba75431 SHA512 a50c6a1686f3224ad906383d6d25cde8006d4514a9d079be06e9c255f4efdc9b1859e5523d39be484c09c930d1cf84feb15374d7d0904a6c1d903b62b7caa9f5
26
27 diff --git a/dev-python/httpx/httpx-0.11.1.ebuild b/dev-python/httpx/httpx-0.11.1.ebuild
28 index 0e11ec8..1de54b5 100644
29 --- a/dev-python/httpx/httpx-0.11.1.ebuild
30 +++ b/dev-python/httpx/httpx-0.11.1.ebuild
31 @@ -10,12 +10,15 @@ inherit distutils-r1
32 DESCRIPTION="A next generation HTTP client for Python"
33 HOMEPAGE="https://www.python-httpx.org
34 https://github.com/encode/httpx"
35 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
36 +SRC_URI="https://github.com/encode/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
37
38 LICENSE="BSD"
39 KEYWORDS="~amd64 ~x86"
40 SLOT="0"
41
42 +IUSE="doc"
43 +REQUIRED_USE="x86? ( !doc )"
44 +
45 RDEPEND="dev-python/certifi[${PYTHON_USEDEP}]
46 dev-python/chardet[${PYTHON_USEDEP}]
47 dev-python/hstspreload[${PYTHON_USEDEP}]
48 @@ -25,3 +28,45 @@ RDEPEND="dev-python/certifi[${PYTHON_USEDEP}]
49 dev-python/rfc3986[${PYTHON_USEDEP}]
50 dev-python/sniffio[${PYTHON_USEDEP}]
51 dev-python/urllib3[${PYTHON_USEDEP}]"
52 +
53 +BDEPEND="doc? ( !x86? (
54 + dev-python/mkdocs
55 + dev-python/mkautodoc
56 + dev-python/mkdocs-material ) )"
57 +
58 +DEPEND="test? (
59 + dev-python/attrs[${PYTHON_USEDEP}]
60 + dev-python/brotlipy[${PYTHON_USEDEP}]
61 + dev-python/cryptography[${PYTHON_USEDEP}]
62 + dev-python/isort[${PYTHON_USEDEP}]
63 + dev-python/flake8[${PYTHON_USEDEP}]
64 + dev-python/mypy[${PYTHON_USEDEP}]
65 + dev-python/pytest-asyncio[${PYTHON_USEDEP}]
66 + dev-python/trio[${PYTHON_USEDEP}]
67 + dev-python/trustme[${PYTHON_USEDEP}]
68 + dev-python/uvicorn[${PYTHON_USEDEP}] )"
69 +
70 +distutils_enable_tests pytest
71 +
72 +python_prepare_all() {
73 + # do not depend on pytest-cov
74 + sed -i -e '/addopts/d' setup.cfg || die
75 +
76 + # requires internet connection
77 + sed -i -e 's:test_start_tls_on_tcp_socket_stream:_&:' \
78 + -e 's:test_start_tls_on_uds_socket_stream:_&:' \
79 + tests/test_concurrency.py || die
80 +
81 + sed -i -e 's:test_http2_live_request:_&:' \
82 + tests/dispatch/test_http2.py || die
83 +
84 + distutils-r1_python_prepare_all
85 +}
86 +
87 +python_compile_all() {
88 + default
89 + if use doc; then
90 + mkdocs build || die "failed to make docs"
91 + HTML_DOCS="site"
92 + fi
93 +}
94
95 diff --git a/dev-python/httpx/httpx-0.12.0.ebuild b/dev-python/httpx/httpx-0.12.0.ebuild
96 new file mode 100644
97 index 0000000..1de54b5
98 --- /dev/null
99 +++ b/dev-python/httpx/httpx-0.12.0.ebuild
100 @@ -0,0 +1,72 @@
101 +# Copyright 1999-2020 Gentoo Authors
102 +# Distributed under the terms of the GNU General Public License v2
103 +
104 +EAPI=7
105 +
106 +PYTHON_COMPAT=( python3_{6,7} )
107 +
108 +inherit distutils-r1
109 +
110 +DESCRIPTION="A next generation HTTP client for Python"
111 +HOMEPAGE="https://www.python-httpx.org
112 + https://github.com/encode/httpx"
113 +SRC_URI="https://github.com/encode/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
114 +
115 +LICENSE="BSD"
116 +KEYWORDS="~amd64 ~x86"
117 +SLOT="0"
118 +
119 +IUSE="doc"
120 +REQUIRED_USE="x86? ( !doc )"
121 +
122 +RDEPEND="dev-python/certifi[${PYTHON_USEDEP}]
123 + dev-python/chardet[${PYTHON_USEDEP}]
124 + dev-python/hstspreload[${PYTHON_USEDEP}]
125 + dev-python/hyper-h2[${PYTHON_USEDEP}]
126 + dev-python/h11[${PYTHON_USEDEP}]
127 + dev-python/idna[${PYTHON_USEDEP}]
128 + dev-python/rfc3986[${PYTHON_USEDEP}]
129 + dev-python/sniffio[${PYTHON_USEDEP}]
130 + dev-python/urllib3[${PYTHON_USEDEP}]"
131 +
132 +BDEPEND="doc? ( !x86? (
133 + dev-python/mkdocs
134 + dev-python/mkautodoc
135 + dev-python/mkdocs-material ) )"
136 +
137 +DEPEND="test? (
138 + dev-python/attrs[${PYTHON_USEDEP}]
139 + dev-python/brotlipy[${PYTHON_USEDEP}]
140 + dev-python/cryptography[${PYTHON_USEDEP}]
141 + dev-python/isort[${PYTHON_USEDEP}]
142 + dev-python/flake8[${PYTHON_USEDEP}]
143 + dev-python/mypy[${PYTHON_USEDEP}]
144 + dev-python/pytest-asyncio[${PYTHON_USEDEP}]
145 + dev-python/trio[${PYTHON_USEDEP}]
146 + dev-python/trustme[${PYTHON_USEDEP}]
147 + dev-python/uvicorn[${PYTHON_USEDEP}] )"
148 +
149 +distutils_enable_tests pytest
150 +
151 +python_prepare_all() {
152 + # do not depend on pytest-cov
153 + sed -i -e '/addopts/d' setup.cfg || die
154 +
155 + # requires internet connection
156 + sed -i -e 's:test_start_tls_on_tcp_socket_stream:_&:' \
157 + -e 's:test_start_tls_on_uds_socket_stream:_&:' \
158 + tests/test_concurrency.py || die
159 +
160 + sed -i -e 's:test_http2_live_request:_&:' \
161 + tests/dispatch/test_http2.py || die
162 +
163 + distutils-r1_python_prepare_all
164 +}
165 +
166 +python_compile_all() {
167 + default
168 + if use doc; then
169 + mkdocs build || die "failed to make docs"
170 + HTML_DOCS="site"
171 + fi
172 +}