From nobody Fri Dec 30 09:07:54 2022 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 4Njztf3kkSz2kbrk; Fri, 30 Dec 2022 09:07:54 +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 4Njztf2DJWz3qKH; Fri, 30 Dec 2022 09:07:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672391274; 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=sMdrwhKFzbuMD/uTPCxHkSR69sDQsMoJ650ds/inEbQ=; b=VxCM64rtV9Wu2RaZUTWQj0vKAUMG6XIuZ4sqQ8SOgCXNpJvXPrhXcxFgWzY1tcGtMAYJ+9 S9G+CeLjBD/F3xW2imgXnxj+L3ckZy2gihooWq0imv9Mvg1g3qrYMmN6fHhxwGnOcy0inC zdERIqdknNZBsuO4DesWbPcGpYtH4Qec43kIGVyv0YCp7ezz917TMDDJFAA5fjCyaixA93 iPtp+Iq/KIvnreQy8QjrMhGWREGSX8w26bmYDH3javyc/081RaVdRuG3LV/K4YohD2QVBv 5tDOA9jWuNpt+Q7nOTyabZfnLfNZnmJyHraSBfy7WdTX0wtotZg3/eWyGidYQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672391274; 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=sMdrwhKFzbuMD/uTPCxHkSR69sDQsMoJ650ds/inEbQ=; b=TFb8KV8BJP8A31pzl2WK5514Ict22OuXL0PykEZL6LSO2GrWFW8tRRkS217PqEEbiVmpf0 fGwuQGSRt4HVlLrxS756WfPdqLacwMraVDl37Pl4aBnJxWYBbyFx7QtbBNw7J+zFZTGj5h KfoGoBb/5up6+c8uRIMXi8o1KTu1dUwauOevlB1sUooDxNdhoHLicdbBzdpdjdgibqZcsz sB+B0n+rea+UdL7PvPQihriJoFVADK4HDjLEq2EW73zQ03IgpofdUMNlbKqC33wvg6Oggr ZLx96/++3IT9IJ5qd4oNYz8RFl6s6rFtQq7fXBKMQX2zbwp8fCzBAVjS3kO/tw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1672391274; a=rsa-sha256; cv=none; b=ZIY5yOlEJQiNc4N1ECT1g/1FLaLsOBQQOzb34fcQWa/eYzP+gufdjp0qucMCs/5qv5ZuqV tOxnu9PIa4fHeh5x2blpttsduhv54Vdc45+D1vszWZsfUXbaYvrsxN6+7mD/b3teEWQ4YW HgYZVSKdHGS7rfd5fMPPPI2FEVLJHlZ44UtaQ1MNXlLApKSOuYsCITepijBXu3CK6Mxi1/ tFhA3HVIUuS6+/xBcoaU06eY9ZRJgowltM/bFCpL1+z+jW1Kq8oYXgysNaNgc+nhX1gx57 4LsC1BnF9QIjhX6ysITBTUhURdKF351iYXkc0eo/4TarkxfNF/qtI75OzRkemQ== 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 4Njztf1F8hz12Z1; Fri, 30 Dec 2022 09:07:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2BU97sPS099146; Fri, 30 Dec 2022 09:07:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2BU97ssl099145; Fri, 30 Dec 2022 09:07:54 GMT (envelope-from git) Date: Fri, 30 Dec 2022 09:07:54 GMT Message-Id: <202212300907.2BU97ssl099145@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: d69de92defd8 - main - devel/py-shtab: Add py-shtab 1.5.8 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: d69de92defd8933830dbe0498c3c49b59fa6ea65 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=d69de92defd8933830dbe0498c3c49b59fa6ea65 commit d69de92defd8933830dbe0498c3c49b59fa6ea65 Author: Po-Chuan Hsieh AuthorDate: 2022-12-30 08:36:12 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-12-30 09:04:00 +0000 devel/py-shtab: Add py-shtab 1.5.8 What: Automatically generate shell tab completion scripts for Python CLI apps Why: Speed & correctness. Alternatives like argcomplete and pyzshcomplete are slow and have side-effects How: shtab processes an argparse.ArgumentParser object to generate a tab completion script for your shell Features: - Outputs tab completion scripts for - bash - zsh - tcsh - Supports - argparse - docopt (via argopt) - Supports arguments, options and subparsers - Supports choices (e.g. --say={hello,goodbye}) - Supports file and directory path completion - Supports custom path completion (e.g. --file={*.txt}) --- devel/Makefile | 1 + devel/py-shtab/Makefile | 20 ++++++++++++++++++++ devel/py-shtab/distinfo | 3 +++ devel/py-shtab/files/patch-setup.cfg | 11 +++++++++++ devel/py-shtab/pkg-descr | 18 ++++++++++++++++++ 5 files changed, 53 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index fff7f4bd782c..388eeff0cb15 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5351,6 +5351,7 @@ SUBDIR += py-sh SUBDIR += py-shapely SUBDIR += py-shellingham + SUBDIR += py-shtab SUBDIR += py-signalr-client-aio SUBDIR += py-simpleeval SUBDIR += py-simplegeneric diff --git a/devel/py-shtab/Makefile b/devel/py-shtab/Makefile new file mode 100644 index 000000000000..ddaa6461934f --- /dev/null +++ b/devel/py-shtab/Makefile @@ -0,0 +1,20 @@ +PORTNAME= shtab +PORTVERSION= 1.5.8 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Automagic shell tab completion for Python CLI applications +WWW= https://github.com/iterative/shtab + +LICENSE= APACHE20 + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=3.4:devel/py-setuptools_scm@${PY_FLAVOR} + +USES= python:3.7+ +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +.include diff --git a/devel/py-shtab/distinfo b/devel/py-shtab/distinfo new file mode 100644 index 000000000000..8e00148fbb58 --- /dev/null +++ b/devel/py-shtab/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1669057511 +SHA256 (shtab-1.5.8.tar.gz) = 1f944e2e33c1554be69e6b26ef638ba3b516ac9449fdd2a40d197f9061c8bed8 +SIZE (shtab-1.5.8.tar.gz) = 45670 diff --git a/devel/py-shtab/files/patch-setup.cfg b/devel/py-shtab/files/patch-setup.cfg new file mode 100644 index 000000000000..b192883223bb --- /dev/null +++ b/devel/py-shtab/files/patch-setup.cfg @@ -0,0 +1,11 @@ +--- setup.cfg.orig 2022-11-18 22:13:24 UTC ++++ setup.cfg +@@ -67,7 +67,7 @@ classifiers = + Topic :: Utilities + + [options] +-setup_requires = setuptools>=42; wheel; setuptools_scm[toml]>=3.4 ++setup_requires = setuptools>=42; setuptools_scm[toml]>=3.4 + install_requires = + argparse; "3.0" <= python_version and python_version < "3.2" + python_requires = >=3.7 diff --git a/devel/py-shtab/pkg-descr b/devel/py-shtab/pkg-descr new file mode 100644 index 000000000000..2deb1de0f400 --- /dev/null +++ b/devel/py-shtab/pkg-descr @@ -0,0 +1,18 @@ +What: Automatically generate shell tab completion scripts for Python CLI apps +Why: Speed & correctness. Alternatives like argcomplete and pyzshcomplete are +slow and have side-effects +How: shtab processes an argparse.ArgumentParser object to generate a tab +completion script for your shell + +Features: +- Outputs tab completion scripts for + - bash + - zsh + - tcsh +- Supports + - argparse + - docopt (via argopt) +- Supports arguments, options and subparsers +- Supports choices (e.g. --say={hello,goodbye}) +- Supports file and directory path completion +- Supports custom path completion (e.g. --file={*.txt})