Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@××××××.net>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-python/httpcore/
Date: Sun, 29 Mar 2020 13:21:42
Message-Id: 1585474144.261df3eb62bc415489e08cbb84ab8cc5401df969.andrewammerlaan@gentoo
1 commit: 261df3eb62bc415489e08cbb84ab8cc5401df969
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Sun Mar 29 09:28:02 2020 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
5 CommitDate: Sun Mar 29 09:29:04 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=261df3eb
7
8 dev-python/httpcore: new package
9
10 Package-Manager: Portage-2.3.96, Repoman-2.3.22
11 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
12
13 dev-python/httpcore/Manifest | 1 +
14 dev-python/httpcore/httpcore-0.7.0.ebuild | 49 +++++++++++++++++++++++++++++++
15 dev-python/httpcore/metadata.xml | 26 ++++++++++++++++
16 3 files changed, 76 insertions(+)
17
18 diff --git a/dev-python/httpcore/Manifest b/dev-python/httpcore/Manifest
19 new file mode 100644
20 index 0000000..82c23f3
21 --- /dev/null
22 +++ b/dev-python/httpcore/Manifest
23 @@ -0,0 +1 @@
24 +DIST httpcore-0.7.0.tar.gz 24689 BLAKE2B 5a7fa8eab6dc166f96c1a71d2ce1980155c37e286421fe10ff17315680d5a1ba5a6b52a8e0bcf8f727cdb146971ea82942327a900408ab72f8c82e2bfc9f9f83 SHA512 4999900e23aa9750f830e0d521db51e606c5b43e254cad8b98c17c2d3e4b2bd59020308954f5411ad766bff1759e2812a5b5e313273be22002dd87a75ea2413a
25
26 diff --git a/dev-python/httpcore/httpcore-0.7.0.ebuild b/dev-python/httpcore/httpcore-0.7.0.ebuild
27 new file mode 100644
28 index 0000000..acaa8e1
29 --- /dev/null
30 +++ b/dev-python/httpcore/httpcore-0.7.0.ebuild
31 @@ -0,0 +1,49 @@
32 +# Copyright 1999-2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +DISTUTILS_USE_SETUPTOOLS=rdepend
38 +PYTHON_COMPAT=( python3_6 )
39 +
40 +inherit distutils-r1
41 +
42 +DESCRIPTION="A minimal HTTP client"
43 +HOMEPAGE="
44 + https://github.com/encode/httpcore
45 + https://pypi.org/project/httpcore
46 +"
47 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
48 +
49 +LICENSE="BSD"
50 +SLOT="0"
51 +KEYWORDS="~amd64 ~x86"
52 +IUSE="doc test"
53 +
54 +RDEPEND="
55 + dev-python/h11[${PYTHON_USEDEP}]
56 + dev-python/hyper-h2[${PYTHON_USEDEP}]
57 + dev-python/sniffio[${PYTHON_USEDEP}]
58 + dev-python/trio[${PYTHON_USEDEP}]
59 +"
60 +BDEPEND="
61 + doc? (
62 + dev-python/mkautodoc
63 + dev-python/mkdocs
64 + dev-python/mkdocs-material
65 + )
66 +"
67 +DEPEND="
68 + ${RDEPEND}
69 + test? (
70 + dev-python/autoflake[${PYTHON_USEDEP}]
71 + dev-python/black[${PYTHON_USEDEP}]
72 + dev-python/isort[${PYTHON_USEDEP}]
73 + dev-python/mypy[${PYTHON_USEDEP}]
74 + dev-python/pytest-asyncio[${PYTHON_USEDEP}]
75 + dev-python/pytest-trio[${PYTHON_USEDEP}]
76 + )
77 +"
78 +
79 +distutils_enable_tests pytest
80 +#todo doc
81
82 diff --git a/dev-python/httpcore/metadata.xml b/dev-python/httpcore/metadata.xml
83 new file mode 100644
84 index 0000000..8b1dc83
85 --- /dev/null
86 +++ b/dev-python/httpcore/metadata.xml
87 @@ -0,0 +1,26 @@
88 +<?xml version="1.0" encoding="UTF-8"?>
89 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
90 +<pkgmetadata>
91 + <maintainer type="person">
92 + <email>lssndrbarbieri@×××××.com</email>
93 + <name>Alessandro Barbieri</name>
94 + </maintainer>
95 + <longdescription lang="en">
96 +The HTTP Core package provides a minimal low-level HTTP client, which does one thing only. Sending HTTP requests.
97 +
98 +It does not provide any high level model abstractions over the API, does not handle redirects, multipart uploads, building authentication headers, transparent HTTP caching, URL parsing, session cookie handling, content or charset decoding, handling JSON, environment based configuration defaults, or any of that Jazz.
99 +
100 +Some things HTTP Core does do:
101 +
102 + Sending HTTP requests.
103 + Provides both sync and async interfaces.
104 + Supports HTTP/1.1 and HTTP/2.
105 + Async backend support for asyncio and trio.
106 + Automatic connection pooling.
107 + HTTP(S) proxy support.
108 + </longdescription>
109 + <upstream>
110 + <remote-id type="github">https://github.com/encode/httpcore</remote-id>
111 + <remote-id type="pypi">httpcore</remote-id>
112 + </upstream>
113 +</pkgmetadata>