summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-02-28 01:58:24 +0000
committerCoprDistGit <infra@openeuler.org>2025-02-28 01:58:24 +0000
commitd17d88343c05642b51a23123bc750e354bbc0700 (patch)
tree24a60aa21b594aadd60c57a9fa119a399a07e70f
parente77dc460a60003c5102314e9e9e09e12be885cf5 (diff)
automatic import of python-hypercornopeneuler24.03_LTS_SP1
-rw-r--r--.gitignore1
-rw-r--r--python-hypercorn.spec78
-rw-r--r--sources1
3 files changed, 80 insertions, 0 deletions
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 <dongxing.wang_a@thundersoft.com> - 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