Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Mar 2026 02:41:02 +0000
From:      Wen Heping <wen@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: fee31501d1bc - main - www/py-a2wsgi: New port
Message-ID:  <69af84be.33a6d.1a414a76@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by wen:

URL: https://cgit.FreeBSD.org/ports/commit/?id=fee31501d1bc34a8af6af558dd1dee14eb510ca5

commit fee31501d1bc34a8af6af558dd1dee14eb510ca5
Author:     Wen Heping <wen@FreeBSD.org>
AuthorDate: 2026-03-10 02:40:22 +0000
Commit:     Wen Heping <wen@FreeBSD.org>
CommitDate: 2026-03-10 02:40:22 +0000

    www/py-a2wsgi: New port
    
    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/startlette or hypercorn.
---
 www/Makefile            |  1 +
 www/py-a2wsgi/Makefile  | 25 +++++++++++++++++++++++++
 www/py-a2wsgi/distinfo  |  3 +++
 www/py-a2wsgi/pkg-descr |  9 +++++++++
 4 files changed, 38 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index 68dd7b737528..2d7ec7626f19 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1477,6 +1477,7 @@
     SUBDIR += py-Tenjin
     SUBDIR += py-WebError
     SUBDIR += py-WebFlash
+    SUBDIR += py-a2wsgi
     SUBDIR += py-adblock
     SUBDIR += py-advocate
     SUBDIR += py-aiobreaker
diff --git a/www/py-a2wsgi/Makefile b/www/py-a2wsgi/Makefile
new file mode 100644
index 000000000000..26089927db6f
--- /dev/null
+++ b/www/py-a2wsgi/Makefile
@@ -0,0 +1,25 @@
+PORTNAME=	a2wsgi
+PORTVERSION=	1.10.10
+CATEGORIES=	www python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	wen@FreeBSD.org
+COMMENT=	Convert WSGI app to ASGI app or ASGI app to WSGI app
+WWW=		https://github.com/abersheeran/a2wsgi
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pdm-backend>=0:devel/py-pdm-backend@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest-asyncio>0:devel/py-pytest-asyncio@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}baize>=0:www/py-baize@${PY_FLAVOR}
+
+USES=		cpe python
+CPE_VENDOR=	${PORTNAME}_project
+USE_PYTHON=	autoplist concurrent pep517 pytest
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/www/py-a2wsgi/distinfo b/www/py-a2wsgi/distinfo
new file mode 100644
index 000000000000..6795dde2cb41
--- /dev/null
+++ b/www/py-a2wsgi/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1773108368
+SHA256 (a2wsgi-1.10.10.tar.gz) = a5bcffb52081ba39df0d5e9a884fc6f819d92e3a42389343ba77cbf809fe1f45
+SIZE (a2wsgi-1.10.10.tar.gz) = 18799
diff --git a/www/py-a2wsgi/pkg-descr b/www/py-a2wsgi/pkg-descr
new file mode 100644
index 000000000000..2e1ce1ce9dfb
--- /dev/null
+++ b/www/py-a2wsgi/pkg-descr
@@ -0,0 +1,9 @@
+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/startlette or hypercorn.


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69af84be.33a6d.1a414a76>