DISTVERSION= 0.11.0 -PORTREVISION= 2 +PORTVERSION= 0.13.0 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= sunpoet@FreeBSD.org -COMMENT= Command line interface framework -WWW= https://github.com/Microsoft/knack +COMMENT= Command-Line Interface framework +WWW= https://github.com/microsoft/knack LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}argcomplete>0:devel/py-argcomplete@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}jmespath>0:devel/py-jmespath@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}pygments>0:textproc/py-pygments@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}tabulate>0:devel/py-tabulate@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}pyyaml>=0:devel/py-pyyaml@${PY_FLAVOR} +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}argcomplete>=0:devel/py-argcomplete@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}jmespath>=0:devel/py-jmespath@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}packaging>=0:devel/py-packaging@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pygments>=0:textproc/py-pygments@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pyyaml>=0:devel/py-pyyaml@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}tabulate>=0:devel/py-tabulate@${PY_FLAVOR} USES= python -USE_PYTHON= autoplist distutils concurrent +USE_PYTHON= autoplist concurrent pep517 NO_ARCH= yes diff --git a/devel/py-knack/distinfo b/devel/py-knack/distinfo index 6c39fd5a428e..ae0d701f2177 100644 --- a/devel/py-knack/distinfo +++ b/devel/py-knack/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1696201709 -SHA256 (knack-0.11.0.tar.gz) = eb6568001e9110b1b320941431c51033d104cc98cda2254a5c2b09ba569fd494 -SIZE (knack-0.11.0.tar.gz) = 72308 +TIMESTAMP = 1761386756 +SHA256 (knack-0.13.0.tar.gz) = dda35b4ff4c576b2501a18f0ec2f2fe0a3a5f9cce8265d4066d311e5ed4b5bc6 +SIZE (knack-0.13.0.tar.gz) = 72509 diff --git a/devel/py-knack/pkg-descr b/devel/py-knack/pkg-descr index 7e310e3e042a..b8402f07b70c 100644 --- a/devel/py-knack/pkg-descr +++ b/devel/py-knack/pkg-descr @@ -1,22 +1,21 @@ -Knack is a Python command line parsing framework. Knack is built around the -following patterns: - - Be consistent with POSIX tools. - - CLI success comes from ease and predictability of use so be consistent. - - Support Piping and output direction to chain commands together. - - Work with GREP, AWK, JQ and other common tools and commands. - - Support productivity features like tab completion and parameter value - completion. - - Commands should follow a "[noun] [noun] [verb]" pattern. - - For nouns that only support a single verb, the command should be named as a - single hyphenated verb-noun pair. - - Commands should support all output types (be consistent). - - Exceptions are okay if only a 'raw' format makes sense e.g. XML. - - Commands and arguments should have descriptions. - - Include examples for the less straightforward commands. - - Commands should return an object or dictionary, not strings/bools/etc.; - logging.info("Upload of myfile.txt successful") NOT return - "Upload successful". - - Log to ERROR or WARNING for user messages; don't use print() function (by - default it goes to STDOUT). - - STDOUT vs. STDERR: STDOUT is used for actual command output. Everything - else to STDERR (e.g. log/status/error messages). +Knack provides a Command-Line Interface framework. + +CLI Patterns: +- Be consistent with POSIX tools. +- CLI success comes from ease and predictability of use so be consistent. +- Support Piping and output direction to chain commands together. +- Work with GREP, AWK, JQ and other common tools and commands. +- Support productivity features like tab completion and parameter value + completion. +- Commands should follow a "[noun] [noun] [verb]" pattern. +- For nouns that only support a single verb, the command should be named as a + single hyphenated verb-noun pair. +- Commands should support all output types (be consistent). +- Exceptions are okay if only a 'raw' format makes sense e.g. XML. +- Commands and arguments should have descriptions. +- Include examples for the less straightforward commands. +- Commands should return an object or dictionary, not strings/bools/etc. +- Log to ERROR or WARNING for user messages; don't use print() function (by + default it goes to STDOUT). +- STDOUT vs. STDERR: STDOUT is used for actual command output. Everything else + to STDERR (e.g. log/status/error messages).