From nobody Mon Dec 25 09:08:11 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 4SzBrr3FlYz54LGf; Mon, 25 Dec 2023 09:08:12 +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 4SzBrr0ppCz3V0V; Mon, 25 Dec 2023 09:08:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1703495292; 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=egS7t79uou/ahxgRh0OjcCo4wZUyAoSak9SPSUaAayc=; b=Zjuin1wH/MtY/0zYuq9+ty5HyZphFAYa+pwWRt3f8NXsDWLrsndYwmu6LJuZhNywvwdoqo W0+KQMtenFYxDtv2rer1Z3Rk6WmPQJXJFJHm6c1WefeM7Tgr/q01Ux/A6r+3AI8QSPnPpO ZozT8aR6MdeSN1A4o4P3U++G83fHd65OMhIwtTmQmTYvlcpPSrhnNc++xqpM43MEqYzPDi eBofRutAnb55NPHCRwp/wdMWd2LmvtiAFmUz4mNgXfyS+6HEKDN6BxpybJNe2jvAcXwzjf lPjn0AQqKw4yAaRP0lML1Qae0ALr4ZEUW3YjFT+pUq01+iJNy4DyWMwbP2ne7g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1703495292; a=rsa-sha256; cv=none; b=GAobA/yufniWNFEnaFEB+I59tbuDxABSTfNqg5H9hr4gNsi9qr2g9rbVHHZ2l/dqxZ2Nsv 3UuGqFCsneWzvd0N+oo+LRLFQwuusx5l/0GYE11hJEDXOKMYN/joS3wlAGTrvtY1jxWSLa Q5zT7IoQJACJ7LQKOtfuylmP+kSF1KqtQD97pICjjUt30w70VTpBUfuBN1iiMa0nvfUE00 4+A81WJ+b64iTMwXdXaD0XCDciWPaJO/DYI1pUoBpjKOtylg041ie0eGUAh2BDS/4P/URL 6D5/TxRvVDj88Bd8kIl7OtnjxrWzeltBIn8bFAKaPy+Ei4VtxBoBz5U+72O3Ag== 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=1703495292; 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=egS7t79uou/ahxgRh0OjcCo4wZUyAoSak9SPSUaAayc=; b=Ck1IwKYFDplBN2SRMK8NVMpAd3K9awOXW8SNMkkxG9uT5Zlkuh9LCW12zrS4P54FhMmEjN XlPB3P6lLFhVilKCNkIBaTgsy9gDGEVrKGbvRXlJKUTcyou92Gu20wpbm3Js4C1HiVkHUN llJ0rbsqC7U0CVQFon11s3Pna+bCjpRlWMZGdz547gZcH5c59ZtQvfXVTG3NH3yJKoQ9hZ hd3as7Ma6eGa6AzE8pxM1vXgDodUREcEyanB0sXlDDU29Em/K8L06dy/SjRDQ+MPdox4kg QLcM6FBGpraoR9QkAZiSv6HmlI0gTgtWN1Al3Db08G1F+rltGLFHtzy8s18ILQ== 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 4SzBrq704Tz14tV; Mon, 25 Dec 2023 09:08:11 +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 3BP98Bk7068489; Mon, 25 Dec 2023 09:08:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3BP98BaC068486; Mon, 25 Dec 2023 09:08:11 GMT (envelope-from git) Date: Mon, 25 Dec 2023 09:08:11 GMT Message-Id: <202312250908.3BP98BaC068486@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: 92223841af27 - main - devel/py-expandvars: Add py-expandvars 0.12.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: 92223841af27c549e0c452611f5f37b99a635ab2 Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=92223841af27c549e0c452611f5f37b99a635ab2 commit 92223841af27c549e0c452611f5f37b99a635ab2 Author: Po-Chuan Hsieh AuthorDate: 2023-12-25 08:56:51 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-12-25 08:56:51 +0000 devel/py-expandvars: Add py-expandvars 0.12.0 expandvars is inspired by GNU bash's variable expansion features. It can be used as an alternative to Python's os.path.expandvars function. A good use case is reading config files with the flexibility of reading values from environment variables using advanced features like returning a default value if some variable is not defined. --- devel/Makefile | 1 + devel/py-expandvars/Makefile | 21 +++++++++++++++++++++ devel/py-expandvars/distinfo | 3 +++ devel/py-expandvars/pkg-descr | 6 ++++++ 4 files changed, 31 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 5d9c76e0a56f..4f8f0c5af730 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4650,6 +4650,7 @@ SUBDIR += py-exam SUBDIR += py-exceptiongroup SUBDIR += py-executing + SUBDIR += py-expandvars SUBDIR += py-expiringdict SUBDIR += py-extras SUBDIR += py-extremes diff --git a/devel/py-expandvars/Makefile b/devel/py-expandvars/Makefile new file mode 100644 index 000000000000..0aefcb159004 --- /dev/null +++ b/devel/py-expandvars/Makefile @@ -0,0 +1,21 @@ +PORTNAME= expandvars +PORTVERSION= 0.12.0 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Expand system variables Unix style +WWW= https://github.com/sayanarijit/expandvars + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +.include diff --git a/devel/py-expandvars/distinfo b/devel/py-expandvars/distinfo new file mode 100644 index 000000000000..a0539ae71915 --- /dev/null +++ b/devel/py-expandvars/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1703227788 +SHA256 (expandvars-0.12.0.tar.gz) = 7d1adfa55728cf4b5d812ece3d087703faea953e0c0a1a78415de9df5024d844 +SIZE (expandvars-0.12.0.tar.gz) = 10909 diff --git a/devel/py-expandvars/pkg-descr b/devel/py-expandvars/pkg-descr new file mode 100644 index 000000000000..fa28c0fa3770 --- /dev/null +++ b/devel/py-expandvars/pkg-descr @@ -0,0 +1,6 @@ +expandvars is inspired by GNU bash's variable expansion features. It can be used +as an alternative to Python's os.path.expandvars function. + +A good use case is reading config files with the flexibility of reading values +from environment variables using advanced features like returning a default +value if some variable is not defined.