* [gentoo-commits] repo/proj/guru:master commit in: dev-python/hypercorn/files/, dev-python/hypercorn/
@ 2021-07-05 15:48 Haelwenn Monnier
0 siblings, 0 replies; 2+ messages in thread
From: Haelwenn Monnier @ 2021-07-05 15:48 UTC (permalink / raw
To: gentoo-commits
commit: d60b2ff1e30f2cf31c8879e9854e0aefd1d1922b
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Mon Jul 5 01:20:16 2021 +0000
Commit: Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
CommitDate: Mon Jul 5 01:20:16 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d60b2ff1
dev-python/hypercorn: ebuild maintenance
Closes: https://bugs.gentoo.org/784044
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
.../hypercorn/files/hypercorn-0.11.2-no-coverage.patch | 9 +++++++++
dev-python/hypercorn/hypercorn-0.11.2.ebuild | 18 ++++++------------
2 files changed, 15 insertions(+), 12 deletions(-)
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 000000000..8c3f4210a
--- /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/hypercorn-0.11.2.ebuild b/dev-python/hypercorn/hypercorn-0.11.2.ebuild
index 56221e820..181ee3e08 100644
--- a/dev-python/hypercorn/hypercorn-0.11.2.ebuild
+++ b/dev-python/hypercorn/hypercorn-0.11.2.ebuild
@@ -3,20 +3,20 @@
EAPI=7
-PYTHON_COMPAT=( python3_{7,8,9} )
DISTUTILS_USE_SETUPTOOLS=rdepend
-
DOCS_BUILDER="sphinx"
DOCS_DEPEND="
dev-python/sphinxcontrib-napoleon
dev-python/pydata-sphinx-theme
"
DOCS_DIR="${S}/docs"
+PYTHON_COMPAT=( python3_{8..9} )
inherit distutils-r1 docs optfeature
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
@@ -33,29 +33,23 @@ RDEPEND="
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-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
+PATCHES=( "${FILESDIR}/${P}-no-coverage.patch" )
- # Remove pytest-cov dep
- sed -i -e '/addopts/d' setup.cfg || die
+distutils_enable_tests pytest
- distutils-r1_python_prepare_all
+python_test() {
+ epytest -vv --deselect tests/trio/test_keep_alive.py::test_http1_keep_alive_pre_request || die
}
pkg_postinst() {
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: dev-python/hypercorn/files/, dev-python/hypercorn/
@ 2022-12-20 17:23 Haelwenn Monnier
0 siblings, 0 replies; 2+ messages in thread
From: Haelwenn Monnier @ 2022-12-20 17:23 UTC (permalink / raw
To: gentoo-commits
commit: eaa6e4e7161d7914c7a7f49d8e4e9ee59e720d7a
Author: Julien Roy <julien <AT> jroy <DOT> ca>
AuthorDate: Mon Dec 19 22:08:25 2022 +0000
Commit: Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
CommitDate: Mon Dec 19 22:08:39 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=eaa6e4e7
dev-python/hypercorn: treeclean
dev-python/hypercorn is now in ::gentoo
Signed-off-by: Julien Roy <julien <AT> jroy.ca>
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 | 48 ----------------------
dev-python/hypercorn/metadata.xml | 28 -------------
5 files changed, 97 deletions(-)
diff --git a/dev-python/hypercorn/Manifest b/dev-python/hypercorn/Manifest
deleted file mode 100644
index 08d494604..000000000
--- a/dev-python/hypercorn/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST hypercorn-0.13.2.gh.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
deleted file mode 100644
index 8c3f4210a..000000000
--- a/dev-python/hypercorn/files/hypercorn-0.11.2-no-coverage.patch
+++ /dev/null
@@ -1,9 +0,0 @@
---- 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
deleted file mode 100644
index 78609bd73..000000000
--- a/dev-python/hypercorn/files/hypercorn-0.13.2-no-coverage.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- 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
deleted file mode 100644
index 24053ec78..000000000
--- a/dev-python/hypercorn/hypercorn-0.13.2.ebuild
+++ /dev/null
@@ -1,48 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=poetry
-PYTHON_COMPAT=( python3_{8..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/hypercorn/archive/${PV}.tar.gz
- -> ${P}.gh.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/pydata-sphinx-theme
diff --git a/dev-python/hypercorn/metadata.xml b/dev-python/hypercorn/metadata.xml
deleted file mode 100644
index f39c42410..000000000
--- a/dev-python/hypercorn/metadata.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-<?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>
-
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-12-20 17:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-20 17:23 [gentoo-commits] repo/proj/guru:master commit in: dev-python/hypercorn/files/, dev-python/hypercorn/ Haelwenn Monnier
-- strict thread matches above, loose matches on Subject: below --
2021-07-05 15:48 Haelwenn Monnier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox