Date: Fri, 26 Jun 2026 20:49:27 +0000 From: Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 5a70e6a6aa85 - main - devel/py-clickdc: Add py-clickdc 0.1.1 Message-ID: <6a3ee5d7.1aacd.26dedd8b@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=5a70e6a6aa85d1cd76daac0408c1d505e9c27806 commit 5a70e6a6aa85d1cd76daac0408c1d505e9c27806 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2026-06-26 20:42:58 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2026-06-26 20:42:58 +0000 devel/py-clickdc: Add py-clickdc 0.1.1 This is a package to define click command line options from a python dataclass. You can define a python dataclass from dataclasses with fields that have proper types when assigned by click parsing library. Then each field is initialized with a option, argument, command or group from clickdc library. --- devel/Makefile | 1 + devel/py-clickdc/Makefile | 28 ++++++++++++++++++++++++++++ devel/py-clickdc/distinfo | 5 +++++ devel/py-clickdc/files/patch-pyproject.toml | 9 +++++++++ devel/py-clickdc/pkg-descr | 5 +++++ 5 files changed, 48 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 0d65cdaa7d92..18509df3c005 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4755,6 +4755,7 @@ SUBDIR += py-click-repl SUBDIR += py-click-threading SUBDIR += py-click7 + SUBDIR += py-clickdc SUBDIR += py-cliff SUBDIR += py-cligj SUBDIR += py-clikit diff --git a/devel/py-clickdc/Makefile b/devel/py-clickdc/Makefile new file mode 100644 index 000000000000..61a311b6bcca --- /dev/null +++ b/devel/py-clickdc/Makefile @@ -0,0 +1,28 @@ +PORTNAME= clickdc +PORTVERSION= 0.1.1 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +PATCH_SITES= https://github.com/Kamilcuk/clickdc/commit/ +PATCHFILES= 906faf8dfc48ff4bde9b3e5eec19620fc5100927.patch:-p1 + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Manage click arguments using python dataclass +WWW= https://github.com/Kamilcuk/clickdc + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=41:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}setuptools-git-versioning>=0:devel/py-setuptools-git-versioning@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}click>=0:devel/py-click@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/devel/py-clickdc/distinfo b/devel/py-clickdc/distinfo new file mode 100644 index 000000000000..6561d5db8e7e --- /dev/null +++ b/devel/py-clickdc/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1780751892 +SHA256 (clickdc-0.1.1.tar.gz) = 077f04d7ad00509b43aa8e37a9c7df307c00a73f7fef265235ef98ca54235b9b +SIZE (clickdc-0.1.1.tar.gz) = 10128 +SHA256 (906faf8dfc48ff4bde9b3e5eec19620fc5100927.patch) = 947eb56e7a341e3e3937955ce31fa382649bceadfb2ae88e95b83345a3a4badc +SIZE (906faf8dfc48ff4bde9b3e5eec19620fc5100927.patch) = 1083 diff --git a/devel/py-clickdc/files/patch-pyproject.toml b/devel/py-clickdc/files/patch-pyproject.toml new file mode 100644 index 000000000000..4eca10251d11 --- /dev/null +++ b/devel/py-clickdc/files/patch-pyproject.toml @@ -0,0 +1,9 @@ +--- pyproject.toml.orig 2024-10-09 20:01:19 UTC ++++ pyproject.toml +@@ -1,5 +1,5 @@ + [build-system] +-requires = [ "setuptools>=41", "wheel", "setuptools-git-versioning<2", ] ++requires = [ "setuptools>=41", "wheel", "setuptools-git-versioning", ] + build-backend = "setuptools.build_meta" + + [tool.setuptools-git-versioning] diff --git a/devel/py-clickdc/pkg-descr b/devel/py-clickdc/pkg-descr new file mode 100644 index 000000000000..dd3a32c98680 --- /dev/null +++ b/devel/py-clickdc/pkg-descr @@ -0,0 +1,5 @@ +This is a package to define click command line options from a python dataclass. + +You can define a python dataclass from dataclasses with fields that have proper +types when assigned by click parsing library. Then each field is initialized +with a option, argument, command or group from clickdc library.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a3ee5d7.1aacd.26dedd8b>
