diff options
author | CoprDistGit <infra@openeuler.org> | 2025-02-28 01:58:24 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2025-02-28 01:58:24 +0000 |
commit | d17d88343c05642b51a23123bc750e354bbc0700 (patch) | |
tree | 24a60aa21b594aadd60c57a9fa119a399a07e70f | |
parent | e77dc460a60003c5102314e9e9e09e12be885cf5 (diff) |
automatic import of python-hypercornopeneuler24.03_LTS_SP1
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-hypercorn.spec | 78 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 80 insertions, 0 deletions
@@ -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 <dongxing.wang_a@thundersoft.com> - 0.17.2-1 +- Init package @@ -0,0 +1 @@ +144d1a87b83792fb1e577792053233f9 hypercorn-0.17.2.tar.gz |