From nobody Fri Sep 22 23:34:48 2023 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 4RspX92cLVz4tc9F; Fri, 22 Sep 2023 23:34:49 +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 4RspX8653Cz4JVB; Fri, 22 Sep 2023 23:34:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695425688; 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=HT0+vsIQMMtmkIvB6Z8xej8a2GLjeUha0Ytll+6iTQI=; b=nMfxs295W1Ip9h4vtgr2cmlTnYALQS2cyCPZgiZfGtNCg9l7qST4zkjcvSlDKGLyPChyap Y7gvwIJ8azTHFOPhC3m9pSQ9zq5IQYxpVgkRorMMdL2ILwvFqX19VXImoJfEeM968xpPam SD85hS7UZ8h5NJzag8hAJkVrPfmVXpGqbmBXKyxBrMXMeDxJadlbsnTvIWI796q+tyv6HE vZvxmKRLF6I95XbVfBmjMqQ0ICruou5u7vpSw6siiPI5eOwiFfMFs10GYVosg2q8JgqbRO OzfbmoBIiKAMag6slQllyNxahOtdZ1pJ6ok94kLxPKl7KP0CfTZ3XzD/Q69LIQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1695425688; a=rsa-sha256; cv=none; b=sDFgsVZXHOf3ECNPxP6low4/MWZJ7I8XkPFybARYd790lt9M3vJsi/n8zausYbLGdMyNoU P5ZnIsad1fbF/bbjtorc69ejHeRGf+ML2J9oHsdfdTUcgkqlXKhrqUb5o2jLTiRWT2hcSG rTOoKyfTtLBkoep7QwaihwLbJpsYmpsjkN0EVFVTYNGFhlkzwkjN2eWENx8ARj7VTYjTpZ K0QzxeuprMy/wCyUgASBW1/L1lxRqdNLy1qPpLmg7eYCS+hb24ivaOQzLHuSHjne5S96WG ddOs/eSa7ji2RUtWCmyOKq5PMP7uMa2HwZfis5LXrFf4EDkO8TA395sNjMKRdQ== 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=1695425688; 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=HT0+vsIQMMtmkIvB6Z8xej8a2GLjeUha0Ytll+6iTQI=; b=yK9m79QRImUHV1jUkxXjtALlwJbCQ+ehUJZWCLZzP12CFK+kzmg5bE2KZR/H3ZCzbYsaU/ 7K9Arz5wSm7HZ5GVNkOsWe6g8ojP/MGZ5Ykzf6uoHViD8bSb4IdBJBTSYr73DuNoCSI/K5 TYdc4JsCDsk23NTDhw0H3J5+F3oYky9BLiqKFYguiu8GvUHjcwZERAiHRqzlyDQOH6koTW q/SwOfDXv7LK4qxl3zfcR33nAEZy4tMdhnZytByKzAjL+Y/FRoCXEhX/FS+xTOqthh8EFw SLmJ8ldjonQ1lkpfPy8BshCHNd9bkHl1Tk2O39duzar8C1cCGtMq0A4CYD6Z8A== 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 4RspX84ywpzhHW; Fri, 22 Sep 2023 23:34:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 38MNYmtE015981; Fri, 22 Sep 2023 23:34:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 38MNYmW3015977; Fri, 22 Sep 2023 23:34:48 GMT (envelope-from git) Date: Fri, 22 Sep 2023 23:34:48 GMT Message-Id: <202309222334.38MNYmW3015977@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 1432dd292312 - main - devel/py-pydantic-vault: Add py-pydantic-vault 0.8.0 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: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1432dd292312a52cb8cf72ff931894814044410a Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=1432dd292312a52cb8cf72ff931894814044410a commit 1432dd292312a52cb8cf72ff931894814044410a Author: Po-Chuan Hsieh AuthorDate: 2023-09-22 23:22:23 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-09-22 23:22:23 +0000 devel/py-pydantic-vault: Add py-pydantic-vault 0.8.0 Pydantic-Vault is a simple extension to Pydantic BaseSettings that can retrieve secrets stored in Hashicorp Vault With Pydantic and Pydantic-Vault, you can easily declare your configuration in a type-hinted class, and load configuration from environment variables or Vault secrets. Pydantic-Vault will work the same when developing locally (where you probably login with the Vault CLI and your own user account) and when deploying in production (using a Vault Approle or Kubernetes authentication for example). --- devel/Makefile | 1 + devel/py-pydantic-vault/Makefile | 24 ++++++++++++++++++++++++ devel/py-pydantic-vault/distinfo | 3 +++ devel/py-pydantic-vault/pkg-descr | 8 ++++++++ 4 files changed, 36 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index d578bd9e4a24..1736c12b1bf3 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5273,6 +5273,7 @@ SUBDIR += py-pydantic SUBDIR += py-pydantic-core SUBDIR += py-pydantic-extra-types + SUBDIR += py-pydantic-vault SUBDIR += py-pydantic2 SUBDIR += py-pydash SUBDIR += py-pydecor diff --git a/devel/py-pydantic-vault/Makefile b/devel/py-pydantic-vault/Makefile new file mode 100644 index 000000000000..ab19c5860cd3 --- /dev/null +++ b/devel/py-pydantic-vault/Makefile @@ -0,0 +1,24 @@ +PORTNAME= pydantic-vault +PORTVERSION= 0.8.0 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= pydantic_vault-${PORTVERSION} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Pydantic BaseSettings extension to retrieve secrets from Hashicorp Vault +WWW= https://github.com/nymous/pydantic-vault + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>=0:devel/py-poetry-core@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hvac>=0.10.6:devel/py-hvac@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pydantic>=1.8<2:devel/py-pydantic@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +.include diff --git a/devel/py-pydantic-vault/distinfo b/devel/py-pydantic-vault/distinfo new file mode 100644 index 000000000000..3597b8d64a37 --- /dev/null +++ b/devel/py-pydantic-vault/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1695357787 +SHA256 (pydantic_vault-0.8.0.tar.gz) = 9fb0f136100f9f82bc49b8808a3bc88fa65b50ec27d5dc07cf907abe157e9e5e +SIZE (pydantic_vault-0.8.0.tar.gz) = 15471 diff --git a/devel/py-pydantic-vault/pkg-descr b/devel/py-pydantic-vault/pkg-descr new file mode 100644 index 000000000000..6cd5ed5ca6c1 --- /dev/null +++ b/devel/py-pydantic-vault/pkg-descr @@ -0,0 +1,8 @@ +Pydantic-Vault is a simple extension to Pydantic BaseSettings that can retrieve +secrets stored in Hashicorp Vault + +With Pydantic and Pydantic-Vault, you can easily declare your configuration in a +type-hinted class, and load configuration from environment variables or Vault +secrets. Pydantic-Vault will work the same when developing locally (where you +probably login with the Vault CLI and your own user account) and when deploying +in production (using a Vault Approle or Kubernetes authentication for example).