From: "Alessandro Barbieri" <lssndrbarbieri@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/hypercorn/
Date: Sun, 6 Dec 2020 09:40:10 +0000 (UTC) [thread overview]
Message-ID: <1607247608.40f212a7e957fedab52f3bff6edc0f2d3cd16cc3.Alessandro-Barbieri@gentoo> (raw)
commit: 40f212a7e957fedab52f3bff6edc0f2d3cd16cc3
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Sun Dec 6 08:50:12 2020 +0000
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Sun Dec 6 09:40:08 2020 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=40f212a7
dev-python/hypercorn: new package
Package-Manager: Portage-3.0.10, Repoman-3.0.2
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
dev-python/hypercorn/Manifest | 1 +
dev-python/hypercorn/hypercorn-0.11.1.ebuild | 75 ++++++++++++++++++++++++++++
dev-python/hypercorn/metadata.xml | 28 +++++++++++
3 files changed, 104 insertions(+)
diff --git a/dev-python/hypercorn/Manifest b/dev-python/hypercorn/Manifest
new file mode 100644
index 00000000..18c829f0
--- /dev/null
+++ b/dev-python/hypercorn/Manifest
@@ -0,0 +1 @@
+DIST hypercorn-0.11.1.zip 189203 BLAKE2B c11a2a221fb6b5a02e96b0f463e33583389c4ab31503572f85f140d6b2d8bf58854441b31599861b648fb0b089bb7d46ec3fa7f972de963d2a2ef28a1da48e84 SHA512 7e7e1980bb82e64154f97059c90d1b429c3f18b8e40b51c2821ddf4e838dd7d95de66e83a09afd52abc8ba2758e1f43831af61c7ad79d829c9409ab6cee4d410
diff --git a/dev-python/hypercorn/hypercorn-0.11.1.ebuild b/dev-python/hypercorn/hypercorn-0.11.1.ebuild
new file mode 100644
index 00000000..a56d3d36
--- /dev/null
+++ b/dev-python/hypercorn/hypercorn-0.11.1.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+PYTHON_COMPAT=( python3_{7,8} )
+DISTUTILS_USE_SETUPTOOLS=rdepend
+
+DOCBUILDER="sphinx"
+DOCDEPEND="
+ dev-python/sphinxcontrib-napoleon
+ dev-python/pydata-sphinx-theme
+"
+DOCDIR="${S}/docs"
+
+inherit distutils-r1 docs optfeature
+
+DESCRIPTION="ASGI Server based on Hyper libraries and inspired by Gunicorn"
+HOMEPAGE="
+ https://gitlab.com/pgjones/hypercorn
+ https://github.com/pgjones/hypercorn
+ https://pypi.org/project/Hypercorn
+"
+SRC_URI="https://github.com/pgjones/hypercorn/archive/${PV}.zip -> ${P}.zip"
+LICENSE="MIT"
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+RESTRICT=""
+RDEPEND="
+ dev-python/h11[${PYTHON_USEDEP}]
+ >=dev-python/hyper-h2-3.1.0[${PYTHON_USEDEP}]
+ dev-python/priority[${PYTHON_USEDEP}]
+ dev-python/toml[${PYTHON_USEDEP}]
+ >=dev-python/wsproto-0.14.0[${PYTHON_USEDEP}]
+ $(python_gen_cond_dep 'dev-python/typing-extensions[${PYTHON_USEDEP}]' python3_7)
+"
+BDEPEND="
+ test? (
+ dev-python/hypothesis[${PYTHON_USEDEP}]
+ >=dev-python/mock-4[${PYTHON_USEDEP}]
+ <dev-python/pytest-6[${PYTHON_USEDEP}]
+ dev-python/pytest-asyncio[${PYTHON_USEDEP}]
+ dev-python/pytest-cov[${PYTHON_USEDEP}]
+ dev-python/pytest-trio[${PYTHON_USEDEP}]
+ dev-python/trio[${PYTHON_USEDEP}]
+ )
+"
+
+distutils_enable_tests pytest
+
+#python_prepare_all() {
+# # do not install LICENSE to /usr/
+# sed -i -e '/data_files/d' setup.py || die
+#
+# # Remove pytest-cov dep
+# sed -i -e '21,22d' setup.cfg || die
+#
+# distutils-r1_python_prepare_all
+#}
+
+#pkg_postinst() {
+# optfeature "asyncio event loop on top of libuv" dev-python/uvloop
+# optfeature "websockets support using wsproto" dev-python/wsproto
+# optfeature "websockets support using websockets" dev-python/websockets
+# optfeature "httpstools package for http protocol" dev-python/httptools
+# optfeature "efficient debug reload" dev-python/watchgod
+#}
+
+#python_test() {
+# pytest -vv \
+# --deselect tests/protocols/test_http.py::test_supported_upgrade_request[H11Protocol] \
+# --deselect tests/protocols/test_http.py::test_supported_upgrade_request[HttpToolsProtocol] \
+# --deselect tests/protocols/test_websocket.py::test_invalid_upgrade[WSProtocol] \
+# || die
+#}
diff --git a/dev-python/hypercorn/metadata.xml b/dev-python/hypercorn/metadata.xml
new file mode 100644
index 00000000..f39c4241
--- /dev/null
+++ b/dev-python/hypercorn/metadata.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+
+<pkgmetadata>
+ <maintainer type="person">
+ <email>lssndrbarbieri@gmail.com</email>
+ <name>Alessandro Barbieri</name>
+ </maintainer>
+ <longdescription lang="en">
+Hypercorn is an ASGI web server based on the sans-io hyper, h11, h2, and wsproto libraries
+and inspired by Gunicorn. Hypercorn supports HTTP/1, HTTP/2, WebSockets (over HTTP/1 and
+HTTP/2), ASGI/2, and ASGI/3 specifications. Hypercorn can utilise asyncio, uvloop, or trio
+worker types.
+
+Hypercorn can optionally serve the current draft of the HTTP/3 specification
+using the aioquic library. To enable this install the h3 optional extra, pip install
+hypercorn[h3] and then choose a quic binding e.g. hypercorn --quic-bind localhost:4433
+
+Hypercorn was initially part of Quart before being separated out into a
+standalone ASGI server. Hypercorn forked from version 0.5.0 of Quart.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">pgjones/hypercorn</remote-id>
+ <remote-id type="gitlab">pgjones/hypercorn</remote-id>
+ <remote-id type="pypi">hypercorn</remote-id>
+ </upstream>
+</pkgmetadata>
+
next reply other threads:[~2020-12-06 9:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-06 9:40 Alessandro Barbieri [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-02-17 18:03 [gentoo-commits] repo/proj/guru:dev commit in: dev-python/hypercorn/ Andrew Ammerlaan
2021-04-13 13:22 [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2021-04-13 12:27 ` [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2021-10-06 22:37 Alessandro Barbieri
2022-03-18 4:04 Anna Vyalkova
2022-03-18 10:02 Alessandro Barbieri
2022-03-23 16:17 Ronny Gutbrod
2022-05-31 7:27 Anna Vyalkova
2022-10-07 13:12 Arthur Zamarin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1607247608.40f212a7e957fedab52f3bff6edc0f2d3cd16cc3.Alessandro-Barbieri@gentoo \
--to=lssndrbarbieri@gmail.com \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox