From nobody Sun Feb 05 15:53:47 2023 X-Original-To: dev-commits-ports-all@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 4P8v7w1XHXz3kSmv; Sun, 5 Feb 2023 15:53:48 +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 4P8v7w0txsz46HV; Sun, 5 Feb 2023 15:53:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675612428; 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=HkBDsAdnMY1x9qsz9zfRwN1Ww6BCSCRUsA3tDg05m4s=; b=nENjsYw3t/1Tz/1IkKCVaxqZLBa8c0aOKYU1jLF4nfK77NtW0ru5eO4s8uJGVNQ8VXmB2S 9eZ4g/5Hh4ZZgkFMva588TUkuWGy6LgczpP83QzVZR1Ao6HJc3oU8R9DwqadO14cqStoeK eWrotz9YaFdZlQOguq8NMTvNYmokLtuG8RbCHfjTcQ1Br630zLiM6KEAqaXJ330ikuWhI/ AiBPDoDx3RzXGzgcOkM46a1VwsCvNTv2ckcewiSntSp8o1wbRWuishXs1dghNJiFI51Bmc sqdSnp/oNSeUCxcaUFbW/+xeT3DvVQgHRA85vN0ZagO8vhB1dlYnek0bFL/OFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675612428; 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=HkBDsAdnMY1x9qsz9zfRwN1Ww6BCSCRUsA3tDg05m4s=; b=ZFyz45jT4UpHu5ephq0wYlLS5CciJsjG+Ed2CrJi7nLqk/rPW2aUMxMLyX8mzIs2B9cRKf 3soauK8fByUvnhAxv4yLj6o4fJhfwzrJBPUXoIZFGaIucbmv3eDjirnNiNqBDzeBpfF0p9 I9XLp3giUsd6vii+CzRWlJ3mMPjSrJ1/2mX6VSjbjA4gxhNQdmXAZV6DiBWFpKkZgLdFto ej51T7jEOqJabC2lXSdxghAVCIslNM/05SfNDcRBfphgszMYgC750kRzdDBnfIlWTIuJVJ 36r6yKGn1/fOv+VXx5X7sNFrOzG6Qsq0waaucfXVMzWAmRJYxNv4ZsOAks0s1g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675612428; a=rsa-sha256; cv=none; b=UErPRoFowQQuWCI2e4Sw0tSe/tERVnTWodKEXn6SnAfXhSyBqOfqyFsRWvYcLMjUYXFC5+ 2JmCEmrn0lU1PVkBiZ/zIpwyQgQDoB2FLxbA6bt28E8TbQ3hl3REg1F9VoJJQU6A8rMgEz y8O2Z65vssOOMHkK2Y0Ww20UUOkHdlEuj6+Ymem5NjeCLTEwCd4d1QXNrbaecyCfu7/vgQ Mr637MSwO0e6WtAJgIzONCwSWpKdaC6CL1pMOelracEH+kIhpVVSM1+57SpZAMlN+Ehpo+ 9f1FWVsrOtQyPJhKVL93G/sRjmbKxSRXG862Tsba46TOxn8OW7ZDeEMt2V0AJg== 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 4P8v7v721zz10p9; Sun, 5 Feb 2023 15:53:47 +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 315FrlmF028515; Sun, 5 Feb 2023 15:53:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 315FrlQf028514; Sun, 5 Feb 2023 15:53:47 GMT (envelope-from git) Date: Sun, 5 Feb 2023 15:53:47 GMT Message-Id: <202302051553.315FrlQf028514@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: f904e024f146 - main - devel/py-pycomplete: Add py-pycomplete 0.3.2 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@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: f904e024f146c8853e8a6fb51c1b599b7894bf09 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=f904e024f146c8853e8a6fb51c1b599b7894bf09 commit f904e024f146c8853e8a6fb51c1b599b7894bf09 Author: Po-Chuan Hsieh AuthorDate: 2023-02-05 15:15:13 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-02-05 15:47:38 +0000 devel/py-pycomplete: Add py-pycomplete 0.3.2 With pycomplete, one can generate a completion script for CLI application that is compatible with a given shell. The script outputs the result onto stdout, allowing one to re-direct the output to the file of their choosing. pycomplete accepts different types of objects depending on which CLI framework you are using. For argparse, argparse.ArgumentParser is expected while for click, either click.Command or click.Context is OK. pycomplete knows what to do smartly. Where you place the file will depend on which shell, and which operating system you are using. Your particular configuration may also determine where these scripts need to be placed. Note that pycomplete needs to be installed in the same environment as the target CLI app to work properly. --- devel/Makefile | 1 + devel/py-pycomplete/Makefile | 23 ++++++++++++++++++ devel/py-pycomplete/distinfo | 3 +++ devel/py-pycomplete/files/setup.py | 49 ++++++++++++++++++++++++++++++++++++++ devel/py-pycomplete/pkg-descr | 15 ++++++++++++ 5 files changed, 91 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index d11cde2b9934..7ab7ff9a8c54 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5107,6 +5107,7 @@ SUBDIR += py-pycodestyle SUBDIR += py-pycognito SUBDIR += py-pycompilation + SUBDIR += py-pycomplete SUBDIR += py-pycparser SUBDIR += py-pydantic SUBDIR += py-pydash diff --git a/devel/py-pycomplete/Makefile b/devel/py-pycomplete/Makefile new file mode 100644 index 000000000000..12707fdc9335 --- /dev/null +++ b/devel/py-pycomplete/Makefile @@ -0,0 +1,23 @@ +PORTNAME= pycomplete +PORTVERSION= 0.3.2 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Python library to generate static completion scripts for your CLI app +WWW= https://github.com/frostming/pycomplete + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= python:3.7+ +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +post-patch: + @${RM} ${WRKSRC}/pyproject.toml + @${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py + +.include diff --git a/devel/py-pycomplete/distinfo b/devel/py-pycomplete/distinfo new file mode 100644 index 000000000000..ab5b3b109ecd --- /dev/null +++ b/devel/py-pycomplete/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1675190913 +SHA256 (pycomplete-0.3.2.tar.gz) = 671bfba70b6f2eecedad6b6daabac2aa3f1573cd790cc56ccd48b8067f584391 +SIZE (pycomplete-0.3.2.tar.gz) = 12468 diff --git a/devel/py-pycomplete/files/setup.py b/devel/py-pycomplete/files/setup.py new file mode 100644 index 000000000000..16ebe8808b52 --- /dev/null +++ b/devel/py-pycomplete/files/setup.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +from setuptools import setup + +import codecs + +with codecs.open('README.md', encoding="utf-8") as fp: + long_description = fp.read() +INSTALL_REQUIRES = [ +] +EXTRAS_REQUIRE = { + 'dev': [ + 'pytest<7.0.0,>=6.1.1', + 'click<8.0.0,>=7.1.2', + ], +} +ENTRY_POINTS = { + 'console_scripts': [ + 'pycomplete = pycomplete.__main__:main', + ], +} + +setup_kwargs = { + 'name': 'pycomplete', + 'version': '%%PORTVERSION%%', + 'description': 'A Python library to generate static completion scripts for your CLI app', + 'long_description': long_description, + 'license': 'BSD-3-Clause', + 'author': '', + 'author_email': 'Frost Ming ', + 'maintainer': None, + 'maintainer_email': None, + 'url': '', + 'packages': [ + 'pycomplete', + 'pycomplete.templates', + ], + 'package_data': {'': ['*']}, + 'long_description_content_type': 'text/markdown', + 'keywords': ['cli', 'shell'], + 'classifiers': [ + 'Development Status :: 3 - Alpha', + ], + 'install_requires': INSTALL_REQUIRES, + 'extras_require': EXTRAS_REQUIRE, + 'python_requires': '>=3.6', + 'entry_points': ENTRY_POINTS, +} + +setup(**setup_kwargs) diff --git a/devel/py-pycomplete/pkg-descr b/devel/py-pycomplete/pkg-descr new file mode 100644 index 000000000000..d6d2f1db0103 --- /dev/null +++ b/devel/py-pycomplete/pkg-descr @@ -0,0 +1,15 @@ +With pycomplete, one can generate a completion script for CLI application that +is compatible with a given shell. The script outputs the result onto stdout, +allowing one to re-direct the output to the file of their choosing. + +pycomplete accepts different types of objects depending on which CLI framework +you are using. For argparse, argparse.ArgumentParser is expected while for +click, either click.Command or click.Context is OK. pycomplete knows what to do +smartly. + +Where you place the file will depend on which shell, and which operating system +you are using. Your particular configuration may also determine where these +scripts need to be placed. + +Note that pycomplete needs to be installed in the same environment as the target +CLI app to work properly.