[packages/python3-a2wsgi] - new

qboosh qboosh at pld-linux.org
Tue Jan 13 21:34:47 CET 2026


commit 9e8552784e50bfa794eafa161ae6ba90d2281760
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Jan 13 21:34:40 2026 +0100

    - new

 python3-a2wsgi.spec | 82 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 82 insertions(+)
---
diff --git a/python3-a2wsgi.spec b/python3-a2wsgi.spec
new file mode 100644
index 0000000..d8ec371
--- /dev/null
+++ b/python3-a2wsgi.spec
@@ -0,0 +1,82 @@
+#
+# Conditional build:
+%bcond_without	tests	# unit tests
+
+Summary:	Convert WSGI app to ASGI app or ASGI app to WSGI app
+Summary(pl.UTF-8):	Konwersja aplikacji WSGI do ASGII lub ASGI do WSGI
+Name:		python3-a2wsgi
+Version:	1.10.10
+Release:	1
+License:	Apache v2.0
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/a2wsgi/
+Source0:	https://files.pythonhosted.org/packages/source/a/a2wsgi/a2wsgi-%{version}.tar.gz
+# Source0-md5:	2b57e7a3d099d80d7f7c54f851008330
+URL:		https://pypi.org/project/a2wsgi/
+BuildRequires:	python3-build
+BuildRequires:	python3-installer
+BuildRequires:	python3-modules >= 1:3.8
+BuildRequires:	python3-pdm-backend
+%if %{with tests}
+BuildRequires:	python3-baize >= 0.20.8
+BuildRequires:	python3-httpx >= 0.22.0
+BuildRequires:	python3-httpx < 1
+BuildRequires:	python3-pytest >= 7.0.1
+BuildRequires:	python3-pytest-asyncio >= 0.11.0
+BuildRequires:	python3-pytest-cov >= 3.0.0
+BuildRequires:	python3-starlette >= 0.37.2
+%if "%{_ver_lt %{py3_ver} 3.11}" == "1"
+BuildRequires:	python3-typing_extensions
+%endif
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 2.044
+Requires:	python3-modules >= 1:3.8
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Convert WSGI app to ASGI app or ASGI app to WSGI app. Pure Python.
+Only depend on the standard library.
+
+Compared with other converters, the advantage is that a2wsgi will not
+accumulate the requested content or response content in the memory, so
+you don't have to worry about the memory limit caused by a2wsgi. This
+problem exists in converters implemented by uvicorn/starlette or
+hypercorn.
+
+%description -l pl.UTF-8
+Konwersja aplikacji WSGI na ASGI lub ASGI na WSGI. W czystym Pythonie.
+Wymaga jedynie biblioteki standardowej.
+
+W porównaniu do innych konwerterów, zaletą a2wsgi jest niegromadzenie
+żądanej treści lub treści odpowiedzi w pamięci, dzięki czemu nie
+trzeba się martwić o limit pamięci spowodowany przez a2wsgi. Ten
+problem występuje w konwerterach implementowanych przy użyciu
+szkieletów uvicorn, starlette czy hypercorn.
+
+%prep
+%setup -q -n a2wsgi-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=pytest_asyncio.plugin \
+%{__python3} -m pytest tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%{py3_sitescriptdir}/a2wsgi
+%{py3_sitescriptdir}/a2wsgi-%{version}.dist-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-a2wsgi.git/commitdiff/9e8552784e50bfa794eafa161ae6ba90d2281760



More information about the pld-cvs-commit mailing list