1 |
commit: 53359059a756a9b8245f7d5d77c2a282801799f1 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 18 05:44:59 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 18 05:58:47 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53359059 |
7 |
|
8 |
dev-python/httpcore: Bump to 0.15.0 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/httpcore/Manifest | 1 + |
13 |
dev-python/httpcore/httpcore-0.15.0.ebuild | 53 ++++++++++++++++++++++++++++++ |
14 |
2 files changed, 54 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/httpcore/Manifest b/dev-python/httpcore/Manifest |
17 |
index 1a780dabcc57..304187d6e61e 100644 |
18 |
--- a/dev-python/httpcore/Manifest |
19 |
+++ b/dev-python/httpcore/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST httpcore-0.14.7.gh.tar.gz 75844 BLAKE2B 50d5fac7f44996cc5a08b4f994c2109b173e5b9fea080c8740309b799421d012a70280a84fffe93e290bf425e5ee6eb1bfcb74aff81fa7e737c21f25019e6664 SHA512 6865e97f9b84846bb4e9304ea358b0a28d66fd2d1e244e8a2a439ee446a294ecbc68ac07d5a718fd1c3eceaa44a391d7a8f7f2ca659f1674eb17a90f39987d48 |
22 |
+DIST httpcore-0.15.0.gh.tar.gz 76220 BLAKE2B e9a346d4f77cde82be5a3eb468123ae453753e57b54382f0b2c60b16afd3433cba173d9a796df20d76edbd8b5bcf2d61c32302bdd30c8d587036b3ac6f0425fd SHA512 3c25630d582448e3c7d46176c8862e4d92c6c4aac954bfe46b06e26297b32f996db2e002a87c7187accb5bf4ef86e82d7f9051404bee651ce5254119571d0c95 |
23 |
|
24 |
diff --git a/dev-python/httpcore/httpcore-0.15.0.ebuild b/dev-python/httpcore/httpcore-0.15.0.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..3397dc1e674d |
27 |
--- /dev/null |
28 |
+++ b/dev-python/httpcore/httpcore-0.15.0.ebuild |
29 |
@@ -0,0 +1,53 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+DISTUTILS_USE_PEP517=setuptools |
36 |
+PYTHON_COMPAT=( pypy3 python3_{8..11} ) |
37 |
+ |
38 |
+inherit distutils-r1 optfeature |
39 |
+ |
40 |
+DESCRIPTION="A minimal low-level HTTP client" |
41 |
+HOMEPAGE=" |
42 |
+ https://www.encode.io/httpcore/ |
43 |
+ https://github.com/encode/httpcore/ |
44 |
+ https://pypi.org/project/httpcore/ |
45 |
+" |
46 |
+SRC_URI=" |
47 |
+ https://github.com/encode/httpcore/archive/${PV}.tar.gz |
48 |
+ -> ${P}.gh.tar.gz |
49 |
+" |
50 |
+ |
51 |
+LICENSE="BSD" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
54 |
+ |
55 |
+RDEPEND=" |
56 |
+ =dev-python/anyio-3*[${PYTHON_USEDEP}] |
57 |
+ dev-python/certifi[${PYTHON_USEDEP}] |
58 |
+ <dev-python/h11-0.14[${PYTHON_USEDEP}] |
59 |
+ <dev-python/h2-5[${PYTHON_USEDEP}] |
60 |
+ =dev-python/sniffio-1*[${PYTHON_USEDEP}] |
61 |
+" |
62 |
+BDEPEND=" |
63 |
+ test? ( |
64 |
+ dev-python/pytest-asyncio[${PYTHON_USEDEP}] |
65 |
+ dev-python/pytest-httpbin[${PYTHON_USEDEP}] |
66 |
+ dev-python/pytest-trio[${PYTHON_USEDEP}] |
67 |
+ dev-python/socksio[${PYTHON_USEDEP}] |
68 |
+ dev-python/trio[${PYTHON_USEDEP}] |
69 |
+ dev-python/trustme[${PYTHON_USEDEP}] |
70 |
+ ) |
71 |
+" |
72 |
+ |
73 |
+distutils_enable_tests pytest |
74 |
+ |
75 |
+src_prepare() { |
76 |
+ sed -i -e '/h11/s:,<0.13::' setup.py || die |
77 |
+ distutils-r1_src_prepare |
78 |
+} |
79 |
+ |
80 |
+pkg_postinst() { |
81 |
+ optfeature "SOCKS support" dev-python/socksio |
82 |
+} |