Skip to content

Commit

Permalink
devel/py-asgi-lifespan: New port: Programmatic startup/shutdown of AS…
Browse files Browse the repository at this point in the history
…GI apps

PR:		257334
  • Loading branch information
mekanix authored and yurivict committed Dec 17, 2022
1 parent f9f17ca commit b4c9bc9
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions devel/Makefile
Expand Up @@ -4165,6 +4165,7 @@
SUBDIR += py-arpeggio
SUBDIR += py-arrow
SUBDIR += py-asciimatics
SUBDIR += py-asgi-lifespan
SUBDIR += py-asn1crypto
SUBDIR += py-aspy.yaml
SUBDIR += py-asteval
Expand Down
26 changes: 26 additions & 0 deletions devel/py-asgi-lifespan/Makefile
@@ -0,0 +1,26 @@
PORTNAME= asgi-lifespan
DISTVERSION= 2.0.0
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= meka@tilda.center
COMMENT= Programmatic startup/shutdown of ASGI apps
WWW= https://github.com/florimondmanca/asgi-lifespan

LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE

RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sniffio>0:devel/py-sniffio@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest-trio>0:devel/py-pytest-trio@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}starlette>0:www/py-starlette@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}trio>0:net/py-trio@${PY_FLAVOR}

USES= python
USE_PYTHON= autoplist concurrent distutils pytest

TEST_ENV= PYTHONPATH=${WRKSRC}/src

NO_ARCH= yes

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions devel/py-asgi-lifespan/distinfo
@@ -0,0 +1,3 @@
TIMESTAMP = 1671255378
SHA256 (asgi-lifespan-2.0.0.tar.gz) = d46a31ff681e9edf1f776c9f61cf8fa6274cc66fca8cb4f11e940b1183e18842
SIZE (asgi-lifespan-2.0.0.tar.gz) = 14804
4 changes: 4 additions & 0 deletions devel/py-asgi-lifespan/pkg-descr
@@ -0,0 +1,4 @@
Programmatically send startup/shutdown lifespan events into ASGI applications.
When used in combination with an ASGI-capable HTTP client such as HTTPX, this
allows mocking or testing ASGI applications without having to spin up an ASGI
server.

0 comments on commit b4c9bc9

Please sign in to comment.