From d97953e6ff67978da9554e7b4601aedceb21e215 Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Tue, 12 Apr 2022 21:03:09 +0000 Subject: Adding metadata --- dev-python/hypercorn/Manifest | 1 + .../files/hypercorn-0.11.2-no-coverage.patch | 9 +++++ .../files/hypercorn-0.13.2-no-coverage.patch | 11 ++++++ dev-python/hypercorn/hypercorn-0.13.2.ebuild | 46 ++++++++++++++++++++++ dev-python/hypercorn/metadata.xml | 28 +++++++++++++ 5 files changed, 95 insertions(+) create mode 100644 dev-python/hypercorn/Manifest create mode 100644 dev-python/hypercorn/files/hypercorn-0.11.2-no-coverage.patch create mode 100644 dev-python/hypercorn/files/hypercorn-0.13.2-no-coverage.patch create mode 100644 dev-python/hypercorn/hypercorn-0.13.2.ebuild create mode 100644 dev-python/hypercorn/metadata.xml (limited to 'dev-python/hypercorn') diff --git a/dev-python/hypercorn/Manifest b/dev-python/hypercorn/Manifest new file mode 100644 index 000000000000..b2361427ee16 --- /dev/null +++ b/dev-python/hypercorn/Manifest @@ -0,0 +1 @@ +DIST hypercorn-0.13.2.tar.gz 151984 BLAKE2B b0176016819409cb6958a758041bfe710a008d141a52348ce545deb285cb9e6fc0a4c05321d021bfae5b9de96149db9302f9ce40d01b57c3176d6ad9aef61402 SHA512 c7f12c173b2e9da6108388b2a66b2abca7e26e0d2952e9f3828e94d37b9e3df6076395afd8438aaaa7e328f9a4b085d62f6efd28e2503c4db9bc1f430795048e diff --git a/dev-python/hypercorn/files/hypercorn-0.11.2-no-coverage.patch b/dev-python/hypercorn/files/hypercorn-0.11.2-no-coverage.patch new file mode 100644 index 000000000000..8c3f4210a6bd --- /dev/null +++ b/dev-python/hypercorn/files/hypercorn-0.11.2-no-coverage.patch @@ -0,0 +1,9 @@ +--- a/setup.cfg ++++ b/setup.cfg +@@ -43,5 +43,5 @@ + ignore_missing_imports = True + + [tool:pytest] +-addopts = --no-cov-on-fail --showlocals ++addopts = --showlocals + testpaths = tests diff --git a/dev-python/hypercorn/files/hypercorn-0.13.2-no-coverage.patch b/dev-python/hypercorn/files/hypercorn-0.13.2-no-coverage.patch new file mode 100644 index 000000000000..78609bd739f8 --- /dev/null +++ b/dev-python/hypercorn/files/hypercorn-0.13.2-no-coverage.patch @@ -0,0 +1,11 @@ +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -88,7 +88,7 @@ + ignore_missing_imports = true + + [tool.pytest.ini_options] +-addopts = "--no-cov-on-fail --showlocals --strict-markers" ++addopts = "--showlocals --strict-markers" + testpaths = ["tests"] + + [build-system] diff --git a/dev-python/hypercorn/hypercorn-0.13.2.ebuild b/dev-python/hypercorn/hypercorn-0.13.2.ebuild new file mode 100644 index 000000000000..1cec1cc3eaf0 --- /dev/null +++ b/dev-python/hypercorn/hypercorn-0.13.2.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_SETUPTOOLS=pyproject.toml +PYTHON_COMPAT=( python3_{7,8,9,10} ) +inherit distutils-r1 + +DESCRIPTION="ASGI Server based on Hyper libraries and inspired by Gunicorn" +HOMEPAGE=" + https://pgjones.gitlab.io/hypercorn + https://gitlab.com/pgjones/hypercorn + https://github.com/pgjones/hypercorn + https://pypi.org/project/hypercorn/ +" +SRC_URI="https://github.com/pgjones/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-python/h11[${PYTHON_USEDEP}] + >=dev-python/h2-3.1.0[${PYTHON_USEDEP}] + dev-python/priority[${PYTHON_USEDEP}] + dev-python/toml[${PYTHON_USEDEP}] + >=dev-python/wsproto-0.14.0[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/hypothesis[${PYTHON_USEDEP}] + >=dev-python/mock-4[${PYTHON_USEDEP}] + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + dev-python/pytest-trio[${PYTHON_USEDEP}] + dev-python/trio[${PYTHON_USEDEP}] + ) +" + +PATCHES=( "${FILESDIR}/${P}-no-coverage.patch" ) + +distutils_enable_tests pytest + +distutils_enable_sphinx docs \ + dev-python/sphinxcontrib-napoleon \ + dev-python/pydata-sphinx-theme diff --git a/dev-python/hypercorn/metadata.xml b/dev-python/hypercorn/metadata.xml new file mode 100644 index 000000000000..f39c424104db --- /dev/null +++ b/dev-python/hypercorn/metadata.xml @@ -0,0 +1,28 @@ + + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + +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. + + + pgjones/hypercorn + pgjones/hypercorn + hypercorn + + + -- cgit v1.3.1