From nobody Sat Dec 17 09:14:25 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NZ0fB1qYSzZmtw; Sat, 17 Dec 2022 09:14:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NZ0fB1Gnvz47j3; Sat, 17 Dec 2022 09:14:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671268466; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=hHok5lBFDe5PMQNP3jiCxl0sDsOc+R/JS8wMi65zjpE=; b=bF/yJk+nHTQ+QbVC11JTCwSAreejP+GcxkcD7CksPww8YTWvzp6QGWKupfo8M0mGMf6U+c RyWEYNdX0BcXtT+He/iqPQWlIaI6togvZjuPQBotp4gUlKKfqK+Lzkg/4e1b0r+asECb9o XsY/quk+s4GdML1APOwt9Lbats0xVy81c+deSWoO+zMbE/chlF/TKzM6g78x+zj1CprGAg KNaPoFuArrag+gkgOqgO1+eJIiDAt4em85J7k9LkAxlstxcQn81ULO+dfTXV8T1m+/Ql0M mg1GxWAK06hk9l7iuyYwau6AokR6FB0QaQg0//+a89Auf5sa8gMJ//7RxO5vnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671268466; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=hHok5lBFDe5PMQNP3jiCxl0sDsOc+R/JS8wMi65zjpE=; b=k/8TOgaGGtSdJdHD6uAAnSrcotRHBZuLsiY0GrpWwSk+SCTwrKYxnoW8+5nsRNlxl4iBru AgEsxTwhYZerKzu0O3eY90anrSBuYGsruTB3KEKehk2n+xfkQLrKMTXOSxge1MWrzIEzMe GkYr71oIIMqVIe8RM/Arp7LxuR+2nNIMoDfjG1K4wEQQDhdsijB9CfA3v+IMMpoIfdi0gr 3uqCViuSzi5mMVsotnMT7u2X1YoioRSZWIXQPmz/OqNP7Nr8RdBEQSRGfT3sWVhHzMRoTo gAaKUssyDc+9xNVS3ANE/hgya3DxdFt4DYmjk+dXzPUSvAujHOKrqyeQjl9DWQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1671268466; a=rsa-sha256; cv=none; b=nQ5lAjHyqhH7n5G5Y3NVDvZtASICsYzsBPEo1VsocQaCweykVltQtc/zFn5SY7TfjjmNp8 EqL5sYtFX3ngg+DWhv14WKO6JpfVbn0ur9WLpSxiXDxR3Dem7rPC6TNRb2g8IyqmH/s6Zn 1GNiMqLuvRvkJ8v/yp0AabHEndcbiKN3iMJJvoJIDuIdrvcRS5YbPkN6KO07xOY9tMUzd7 YoC8YRzW9E6kb3TDsZl2MRuV3oB0RMSAr3fh99Dz6wu9/5TtMscaGL96bmVNgDRV+6KpJq 0Vz6hP5aRfSCCjrhz9jiWG7xC1dYCfFDTb9j5xMkq9sc0iHCEsauX20f0vLY7A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NZ0fB04cHzmst; Sat, 17 Dec 2022 09:14:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2BH9EPMa012602; Sat, 17 Dec 2022 09:14:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2BH9EPqo012601; Sat, 17 Dec 2022 09:14:25 GMT (envelope-from git) Date: Sat, 17 Dec 2022 09:14:25 GMT Message-Id: <202212170914.2BH9EPqo012601@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: b4c9bc97bb14 - main - devel/py-asgi-lifespan: New port: Programmatic startup/shutdown of ASGI apps List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b4c9bc97bb146574281e704a28988355ab91dafe Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=b4c9bc97bb146574281e704a28988355ab91dafe commit b4c9bc97bb146574281e704a28988355ab91dafe Author: Goran Mekić AuthorDate: 2022-12-17 05:41:15 +0000 Commit: Yuri Victorovich CommitDate: 2022-12-17 09:14:19 +0000 devel/py-asgi-lifespan: New port: Programmatic startup/shutdown of ASGI apps PR: 257334 --- devel/Makefile | 1 + devel/py-asgi-lifespan/Makefile | 26 ++++++++++++++++++++++++++ devel/py-asgi-lifespan/distinfo | 3 +++ devel/py-asgi-lifespan/pkg-descr | 4 ++++ 4 files changed, 34 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index a32a35f80384..4100566303ee 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -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 diff --git a/devel/py-asgi-lifespan/Makefile b/devel/py-asgi-lifespan/Makefile new file mode 100644 index 000000000000..0cb01642e27a --- /dev/null +++ b/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 diff --git a/devel/py-asgi-lifespan/distinfo b/devel/py-asgi-lifespan/distinfo new file mode 100644 index 000000000000..c55aad4dc0c0 --- /dev/null +++ b/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 diff --git a/devel/py-asgi-lifespan/pkg-descr b/devel/py-asgi-lifespan/pkg-descr new file mode 100644 index 000000000000..0b3e2bdda5fc --- /dev/null +++ b/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.