From nobody Thu Mar 30 08:29:02 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 4PnGmG4BDpz42gGv; Thu, 30 Mar 2023 08:29:02 +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 4PnGmG3lS6z4CQ8; Thu, 30 Mar 2023 08:29:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1680164942; 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=VADKOxtuU85DyOh9c6yk8yl0+4+uNjSzwecuXkID6qU=; b=rp6v9/WIGcmDJePvOCfr9NyqNXqkTIYpqlZyUpWol7Ry+qMQ+B7ProyFBwAne1tRSgLthW Y4zmTIcNIbDKdLX+HrKLWcx5rjsOTOjH0bgf+ILIDkZFrq6Rpcn5YkjVfBEfiKO+8CjOqg MWEcBIcC6fgnmyCbLBR6fzCedjnEMpMqUyApxA2wXFYB7dKhT4o4CfjXxMcPc3E2/TxYar X+0EU8nR6EQqEjAXo8AOn2ZW+U/tnUNtX8bhUQA9tBo7qOod6/g8z8KvU9q7Zx9triL4FQ 3wG+fIVg82WmtPmkG8RxckqCWJAqv6zh4Mdly5RNcgSeTte7sO33MSdLJ4PdUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1680164942; 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=VADKOxtuU85DyOh9c6yk8yl0+4+uNjSzwecuXkID6qU=; b=rpJa5D0lmYOIVKfnFrZIhgGwoaePox/aNIj9dQ3BGDsW2Yn5ye/UW7D/U+OklVt1AWo00o 8WJCpKLHUdW8FH9jlyO5UxQkUWpboreY9FNv0GrubDcLBdTUxdEdzzO6ecXi4OJZnFrput y1OHMmG69fVTEkObFo1T9DSeim6NLuHJhe2ICcB9toDIRRO9u9292wKeg0GSDdS4M3NkzP WqmrhMEjr2vspJ4QkhvpIAab/D1bPkn86gAKk3a1gb32Jn+HfrfWEV70+kF6VuM+TfXGCH 0ltfL1dLDnwMmFF6lyQSbAtpUonkFjmD9iFC/3DHx2yK/WPkvFdcwY3LTFr5KA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1680164942; a=rsa-sha256; cv=none; b=lLFG8icGepl9WSvygjc5pO/p2Qu5dCksb66sJlea03gIGvyPQravwq5WfooAkiYbDRlHoe QaYp24REcBU/Gj/8X8yh2bZh1tlp2bGFBrUsAIZCI2CEKVXpNSSUGrPEPsCRGdOqkIvT9v lTg5FRuaCzdGHKQ4SuWAEzEuizhaBt65b+BiT9dXAdNBbfoIlrKJooMGotF/lIvxwNgDDe aFrQ86D8aytNofq82IVhYE32/V1UUFxME7nGRe5SRZpfL+5dl7TJpiahv0Z6KT54vqBsLv 3kgknJn4IRmnroXkylgFfq5hyb5B6xyDMNfXs73SdEZGdOLbab+1cQf/1TXJUQ== 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 4PnGmG2nvsz14hn; Thu, 30 Mar 2023 08:29:02 +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 32U8T294071813; Thu, 30 Mar 2023 08:29:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 32U8T2mr071812; Thu, 30 Mar 2023 08:29:02 GMT (envelope-from git) Date: Thu, 30 Mar 2023 08:29:02 GMT Message-Id: <202303300829.32U8T2mr071812@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Hiroki Tagato Subject: git: cbb4a1e96c06 - main - misc/py-shell-gpt: add port: Command-line productivity tool powered by ChatGPT 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: tagattie X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: cbb4a1e96c064fac3db7c0a236a07335e80974aa Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by tagattie: URL: https://cgit.FreeBSD.org/ports/commit/?id=cbb4a1e96c064fac3db7c0a236a07335e80974aa commit cbb4a1e96c064fac3db7c0a236a07335e80974aa Author: Hiroki Tagato AuthorDate: 2023-03-30 08:27:26 +0000 Commit: Hiroki Tagato CommitDate: 2023-03-30 08:28:50 +0000 misc/py-shell-gpt: add port: Command-line productivity tool powered by ChatGPT A command-line productivity tool powered by OpenAI's ChatGPT (GPT-3.5). As developers, we can leverage ChatGPT capabilities to generate shell commands, code snippets, comments, and documentation, among other things. Forget about cheat sheets and notes, with this tool you can get accurate answers right in your terminal, and you'll probably find yourself reducing your daily Google searches, saving you valuable time and effort. WWW: https://github.com/TheR1D/shell_gpt --- misc/Makefile | 1 + misc/py-shell-gpt/Makefile | 31 +++++++++++++++++++++++++++++++ misc/py-shell-gpt/distinfo | 3 +++ misc/py-shell-gpt/pkg-descr | 7 +++++++ 4 files changed, 42 insertions(+) diff --git a/misc/Makefile b/misc/Makefile index fa5ebf0a6bbd..b45123492196 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -451,6 +451,7 @@ SUBDIR += py-scikit-fusion SUBDIR += py-serverfiles SUBDIR += py-shap2 + SUBDIR += py-shell-gpt SUBDIR += py-soapy_power SUBDIR += py-spdx SUBDIR += py-spdx-lookup diff --git a/misc/py-shell-gpt/Makefile b/misc/py-shell-gpt/Makefile new file mode 100644 index 000000000000..8331ba46c8c4 --- /dev/null +++ b/misc/py-shell-gpt/Makefile @@ -0,0 +1,31 @@ +PORTNAME= shell-gpt +DISTVERSION= 0.8.1 +CATEGORIES= misc python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= ${PORTNAME:S/-/_/}-${DISTVERSION} + +MAINTAINER= tagattie@FreeBSD.org +COMMENT= Command-line productivity tool powered by ChatGPT +WWW= https://github.com/TheR1D/shell_gpt + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}typer>=0.7.0<0.8:devel/py-typer@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}distro>=1.8.0<1.9:sysutils/py-distro@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}rich>=13.3.1<13.4:textproc/py-rich@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}requests>=2.28.2<2.29:www/py-requests@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests-mock>0:www/py-requests-mock@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist distutils pytest + +BINARY_ALIAS= python=${PYTHON_CMD} +NO_ARCH= yes + +do-test: + cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} tests/unittests.py + cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest tests/integrational_tests.py + +.include diff --git a/misc/py-shell-gpt/distinfo b/misc/py-shell-gpt/distinfo new file mode 100644 index 000000000000..d4f233c186f4 --- /dev/null +++ b/misc/py-shell-gpt/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1680088583 +SHA256 (shell_gpt-0.8.1.tar.gz) = bfd8eca822483ea9e8d87c7d120b6b686fc899845af0ae5b202580886d1f1ef1 +SIZE (shell_gpt-0.8.1.tar.gz) = 17235 diff --git a/misc/py-shell-gpt/pkg-descr b/misc/py-shell-gpt/pkg-descr new file mode 100644 index 000000000000..cc3128ff1917 --- /dev/null +++ b/misc/py-shell-gpt/pkg-descr @@ -0,0 +1,7 @@ +A command-line productivity tool powered by OpenAI's ChatGPT +(GPT-3.5). As developers, we can leverage ChatGPT capabilities to +generate shell commands, code snippets, comments, and documentation, +among other things. Forget about cheat sheets and notes, with this +tool you can get accurate answers right in your terminal, and you'll +probably find yourself reducing your daily Google searches, saving you +valuable time and effort.