From nobody Sun Jul 28 06:13:45 2024 X-Original-To: dev-commits-ports-all@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 4WWrls4Slxz5RYHw; Sun, 28 Jul 2024 06:13:45 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WWrls2xlHz4ttf; Sun, 28 Jul 2024 06:13:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722147225; 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=LHo2YSQv7ThO91SgdLLHjxamgx5lq/c7NYMmbYRghVU=; b=Dd54TBSivObwTEQq+rs0RTRS7p9qvUPViOeFRVpleKs2G/4XUHYeTj32aDhBF5Z3ZnIITB Yf3G0HAjyzr7EK5pVH14v6nvf9YY4VD0EVH41Bm4OiEjr8QK/zmAc3/d9IAlW5BgHKtb5W MgBQRlf503uwvRo91ydgW4G4DShJhwSBrhGy8boCY2aXwuc9/7mxux0cqYWknTD4dm82B2 m322Gq4pBwxvzlyO/l41pd8Ky+PCNSG4PC8axDzxtkyj4ZlRiWQqJVUq6su2XVgpgXBZu2 1wnlswWILm0CZ4xNHmfyxcc2PeSYPBej+SKssKMN7S0E0kxpfdpnWdWYc81DaA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722147225; a=rsa-sha256; cv=none; b=sIg4+FSl7LcD95pIathMA2Iy4U+iWbtg93T+GFBvHBuiXr+RdDqMrySHE1pT586GZmjqak CM725fa92GpZnp55QU/eEEe29U0u1lnjFT10G5XjMiGWgUGZ8PVt8attTWX23Zafilsf4H YD+Kw+vPCM8PSdhIMlnbZ/CS92Ug6A/WlGXZPgwZGYVNrPlTLlIaXesf0q75NVW6by+b+s vvGEYfK0B6T3wQb1B4DljtMnL9doogDLYgmt/LulKoWmn/z7QxAJU2OXVgio5G16y/joy2 EGNo+qpmbgf8dq++8UOT0qgGIP5uv5NLIizzRWw8rLgHfAZPJQ+Bp0+WM74iiw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722147225; 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=LHo2YSQv7ThO91SgdLLHjxamgx5lq/c7NYMmbYRghVU=; b=q9FL7UrLcGttSmrs3kuFM0HnXD/3IvAaPciaVEHS5WzdvOeDnOiOjOsGioIU65mpQ9v5+B AuG29a/A+sUmK9+yefIsHSyQB3X8x/GDGJT6j/iS/Lyisd+Pept3Nb34oE1wkAJF0Td4s0 GAmcKci0SgHB0IYlMhGu2qVY4qRZOCs4s05oPZvjlDW7wB2pBlwIRRJnv8hV6uIm53TcGi z8dLh0wSomvNYxdTtEWLN4KGfiN53NDZYB3GbbbNGzsedDb4KgoSJ9dbZC4cWskl23HiIh EsGmA2A3OcTDHIP0XMP1+Dp+5UV9YQX6cZ7kMo62AURHxHPbUeAm514M6ECKZw== 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 4WWrls2Y79zfMS; Sun, 28 Jul 2024 06:13:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 46S6Djmi011681; Sun, 28 Jul 2024 06:13:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46S6Dj53011678; Sun, 28 Jul 2024 06:13:45 GMT (envelope-from git) Date: Sun, 28 Jul 2024 06:13:45 GMT Message-Id: <202407280613.46S6Dj53011678@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: d69eb732c8ce - main - www/py-starlette-context: New port: Starlette: store and access the context data of a request List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@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: d69eb732c8ce28d9e4134ee5a53a25ae0a24d16f Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=d69eb732c8ce28d9e4134ee5a53a25ae0a24d16f commit d69eb732c8ce28d9e4134ee5a53a25ae0a24d16f Author: Yuri Victorovich AuthorDate: 2024-07-28 05:14:36 +0000 Commit: Yuri Victorovich CommitDate: 2024-07-28 06:13:39 +0000 www/py-starlette-context: New port: Starlette: store and access the context data of a request --- www/Makefile | 1 + www/py-starlette-context/Makefile | 33 +++++++++++++++++++++++++++++++++ www/py-starlette-context/distinfo | 3 +++ www/py-starlette-context/pkg-descr | 3 +++ 4 files changed, 40 insertions(+) diff --git a/www/Makefile b/www/Makefile index f6cc8124bfe1..5a8816f94ae3 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1822,6 +1822,7 @@ SUBDIR += py-spyne SUBDIR += py-sseclient SUBDIR += py-starlette + SUBDIR += py-starlette-context SUBDIR += py-strawberry-graphql-django SUBDIR += py-streamlit SUBDIR += py-swapper diff --git a/www/py-starlette-context/Makefile b/www/py-starlette-context/Makefile new file mode 100644 index 000000000000..2e050bc9b3cd --- /dev/null +++ b/www/py-starlette-context/Makefile @@ -0,0 +1,33 @@ +PORTNAME= starlette-context +DISTVERSIONPREFIX= v +DISTVERSION= 0.3.6 +CATEGORIES= www python +#MASTER_SITES= PYPI # no tests +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Starlette: store and access the context data of a request +WWW= https://starlette-context.readthedocs.io/en/latest/ + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0:devel/py-poetry-core@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}starlette>0:www/py-starlette@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}codecov>=2.1.12:devel/py-codecov@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}coverage>=7.0.2:devel/py-coverage@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}httpx>=0.23.2:www/py-httpx@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-asyncio>=0.20.3:devel/py-pytest-asyncio@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-cov>=4.0.0:devel/py-pytest-cov@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-sugar>=0.9.6:devel/py-pytest-sugar@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-xdist>=3.1.0:devel/py-pytest-xdist@${PY_FLAVOR} + +USES= python +USE_PYTHON= pep517 autoplist pytest + +USE_GITHUB= yes +GH_ACCOUNT= tomwojcik + +NO_ARCH= yes + +.include diff --git a/www/py-starlette-context/distinfo b/www/py-starlette-context/distinfo new file mode 100644 index 000000000000..0a6f0e0cbdf8 --- /dev/null +++ b/www/py-starlette-context/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1722143053 +SHA256 (tomwojcik-starlette-context-v0.3.6_GH0.tar.gz) = a71af70fab9284b0db6bddfe811d00d145ef4c42264d0cc98869c9fecc7a49e4 +SIZE (tomwojcik-starlette-context-v0.3.6_GH0.tar.gz) = 55771 diff --git a/www/py-starlette-context/pkg-descr b/www/py-starlette-context/pkg-descr new file mode 100644 index 000000000000..9ad6dfdb2536 --- /dev/null +++ b/www/py-starlette-context/pkg-descr @@ -0,0 +1,3 @@ +starlette-context is a middleware for Starlette that allows you to store and +access the context data of a request. Can be used with logging so logs +automatically use request headers such as x-request-id or x-correlation-id.