From 895b4c46f00a9fb6d870051729c779cc09b75ca5a176b2024f89e76ffb863310 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 13 Dec 2024 12:17:15 +0100 Subject: [PATCH] Sync from SUSE:SLFO:Main python-quart-trio revision 39ec3e3b635cf78ce59406160f842ede --- .gitattributes | 23 +++++++++++++ python-quart-trio.changes | 9 +++++ python-quart-trio.spec | 70 +++++++++++++++++++++++++++++++++++++++ quart_trio-0.11.1.tar.gz | 3 ++ 4 files changed, 105 insertions(+) create mode 100644 .gitattributes create mode 100644 python-quart-trio.changes create mode 100644 python-quart-trio.spec create mode 100644 quart_trio-0.11.1.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/python-quart-trio.changes b/python-quart-trio.changes new file mode 100644 index 0000000..aa20982 --- /dev/null +++ b/python-quart-trio.changes @@ -0,0 +1,9 @@ +------------------------------------------------------------------- +Fri Sep 20 04:21:43 UTC 2024 - Steve Kowalik + +- Add missing Requires on python-exceptiongroup. + +------------------------------------------------------------------- +Thu Sep 19 05:48:30 UTC 2024 - Steve Kowalik + +- Initial release of 0.11.1. diff --git a/python-quart-trio.spec b/python-quart-trio.spec new file mode 100644 index 0000000..88477cf --- /dev/null +++ b/python-quart-trio.spec @@ -0,0 +1,70 @@ +# +# spec file for package python-quart-trio +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define skip_python310 1 +Name: python-quart-trio +Version: 0.11.1 +Release: 0 +Summary: A Quart extension to provide trio support +License: MIT +URL: https://github.com/pgjones/quart-trio/ +Source: https://github.com/pgjones/quart-trio/archive/refs/tags/%{version}.tar.gz#/quart_trio-%{version}.tar.gz +BuildRequires: %{python_module Quart >= 0.19} +BuildRequires: %{python_module exceptiongroup} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module poetry-core >= 1.0.0} +BuildRequires: %{python_module pytest-cov} +BuildRequires: %{python_module pytest-trio} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module trio >= 0.19} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-Quart >= 0.19 +Requires: python-exceptiongroup +Requires: python-hypercorn >= 0.12 +Requires: python-trio >= 0.19 +Recommends: python-python-dotenv +BuildArch: noarch +%python_subpackages + +%description +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. + +%prep +%autosetup -p1 -n quart-trio-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# Trio breakage with exceptiongroup handling +%pytest -k 'not (test_websocket_exception_group or test_websocket_abort)' + +%files %{python_files} +%doc README.rst +%license LICENSE +%{python_sitelib}/quart_trio +%{python_sitelib}/quart_trio-%{version}.dist-info + +%changelog diff --git a/quart_trio-0.11.1.tar.gz b/quart_trio-0.11.1.tar.gz new file mode 100644 index 0000000..f9aef2c --- /dev/null +++ b/quart_trio-0.11.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9aa24b3fb20345ee8d79179d23d5df2d72dc0a2a8a3562fdad7c2900a2fd12d0 +size 18568