From d17d88343c05642b51a23123bc750e354bbc0700 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Fri, 28 Feb 2025 01:58:24 +0000 Subject: automatic import of python-hypercorn --- .gitignore | 1 + python-hypercorn.spec | 78 +++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 80 insertions(+) create mode 100644 python-hypercorn.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..4255618 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/hypercorn-0.17.2.tar.gz diff --git a/python-hypercorn.spec b/python-hypercorn.spec new file mode 100644 index 0000000..f1169bc --- /dev/null +++ b/python-hypercorn.spec @@ -0,0 +1,78 @@ +Name: python-hypercorn +Version: 0.17.2 +Release: 1 +Summary: A ASGI Server based on Hyper libraries and inspired by Gunicorn + +# SPDX +License: MIT +URL: https://github.com/pgjones/hypercorn +Source: %{url}/archive/%{version}/hypercorn-%{version}.tar.gz + +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-hatchling +BuildRequires: python3-poetry-core +BuildRequires: python3-trio +BuildRequires: python3-priority +BuildRequires: python3-wsproto +BuildRequires: python3-uvloop +BuildRequires: python3-h2 +BuildRequires: python3-h11 +# for test +BuildRequires: python3-pytest +BuildRequires: python3-pytest-asyncio +BuildRequires: python3-pytest-trio +BuildRequires: python3-httpx +BuildRequires: python3-mock +BuildRequires: python3-hypothesis + +%global common_description %{expand: +Hypercorn is an ASGI and WSGI 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, and WSGI specifications. +Hypercorn can utilize asyncio, uvloop, or trio worker types. + +Hypercorn can optionally serve the current draft of the HTTP/3 specification +using the aioquic library.} + +%description %{common_description} + + +%package -n python3-hypercorn +Summary: %{summary} + +%description -n python3-hypercorn %{common_description} + + +%pyproject_extras_subpkg -n python3-hypercorn h3 trio uvloop + + +%prep +%autosetup -n hypercorn-%{version} -p1 + +%build +%pyproject_build + +%install +%pyproject_install + +%check +%pytest + + +%files -n python3-hypercorn +%license LICENSE +%doc CHANGELOG.rst +%doc README.rst +%{_bindir}/hypercorn +%{python3_sitelib}/hypercorn-*dist-info/ +%{python3_sitelib}/hypercorn/ + + +%changelog +* Fri Feb 28 2025 Dongxing Wang - 0.17.2-1 +- Init package diff --git a/sources b/sources new file mode 100644 index 0000000..a77f4a4 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +144d1a87b83792fb1e577792053233f9 hypercorn-0.17.2.tar.gz -- cgit v1.2.3