summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-02-26 03:06:17 +0000
committerCoprDistGit <infra@openeuler.org>2025-02-26 03:06:17 +0000
commitd6262043e4d320aa331112c01c4a40abf21bb342 (patch)
tree7e3a9cb6e5df9baaadac999a35b406e1bbe723ae
parent7c88e85a61579a290b3c46488f65f52524eecf4b (diff)
automatic import of python-quart-trio
-rw-r--r--.gitignore1
-rw-r--r--python-quart-trio.spec61
-rw-r--r--sources1
3 files changed, 63 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..75d75c2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/quart-trio-0.12.0.tar.gz
diff --git a/python-quart-trio.spec b/python-quart-trio.spec
new file mode 100644
index 0000000..6d55128
--- /dev/null
+++ b/python-quart-trio.spec
@@ -0,0 +1,61 @@
+Name: python-quart-trio
+Version: 0.12.0
+Release: 1
+Summary: A Quart extension to provide trio support
+
+# SPDX
+License: MIT
+URL: https://github.com/pgjones/quart-trio
+Source: %{url}/archive/%{version}/quart-trio-%{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-pdm-backend
+# for test
+BuildRequires: python3-pytest
+BuildRequires: python3-pytest-asyncio
+
+%global common_description %{expand:
+Quart-Trio is an extension for Quart to support the Trio event loop. This is an
+alternative to using the asyncio event loop present in the Python standard
+library and supported by default in Quart.}
+
+%description %{common_description}
+
+
+%package -n python3-quart-trio
+Summary: %{summary}
+
+%description -n python3-quart-trio %{common_description}
+
+
+%prep
+%autosetup -n quart-trio-%{version} -p1
+
+%build
+%pyproject_build
+
+
+%install
+%pyproject_install
+
+%check
+%pytest -- -v
+
+
+%files -n python3-quart-trio
+%license LICENSE
+%doc CHANGELOG.rst
+%doc README.rst
+%{python3_sitelib}/quart_trio
+%{python3_sitelib}/quart_trio-*.dist-info/
+
+
+%changelog
+* Wed Feb 26 2025 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 0.12.0-1
+- Init package
diff --git a/sources b/sources
new file mode 100644
index 0000000..8317e97
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+c10041742cf9eca3ada10d4abcb212d7 quart-trio-0.12.0.tar.gz