From nobody Fri Oct 03 09:56:09 2025 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 4cdPF54X6tz69LMV; Fri, 03 Oct 2025 09:56:09 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cdPF53zD9z3F6B; Fri, 03 Oct 2025 09:56:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759485369; 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=pelgRjZ6CbWVG3TAbZ5ejEUf5oaEVL7XCrRDKV8UIKc=; b=XyWzKug8VYDP95d06f6u2OoBF01J88r5fQVQLUjqeW82TnrWaJKPe54xvzM8RRllIBefpN Wrj0/CaxC618kHKdiHCdjBMRSoDw4m5XUbtCTNmtB7J6A22nw8/ooeWvE7dSLepyS+jbaj AiuNzxTjJhtmkMIJpbJgvHg/IdIiEmMTaYwiK31lpLxpuJKQB66d2vMshpG6TY590eDo+t oVn5GiFEq20BWIc+i09uslGbH00nHC+8MUTC/HhJA9DAy8+xj9e0qfHYq3/yo//ZtF0+uK 7q3EUFNHHGX1tudg377g6zJXknKGkGiB3G9YsMe0y0X1FPurNHy7xUIqcTEvGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759485369; 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=pelgRjZ6CbWVG3TAbZ5ejEUf5oaEVL7XCrRDKV8UIKc=; b=f//Gk+g3On/xvcoIVS0cUUsq1KHrUzo0Avy1RUg1be6zkK3Jh7F53Gn3PyaqXPBEdAysJ0 T4siyqbX6DdtWoaJOJpMmb+UvkDDnyb/y8Al6ci0GIG1s8od+g4ycRmv6QHC+Rn8RbjcKt 3WToUXwQ5OwXLAsfm3ss0MtsOSvcDDxUYsBuzGVBUkIRKu6Fy6tB65S6S3GLCMKqdMksse XoEV17SE3dcG/lm7/rJ+sRkiZdFlteMC7GeC6CAePRBZg6rr7asf9skmIXT6yqYh3wKGfi htyI0HRVQ0CzgCVKoKSRW2JnqZX43453ZfpEGAUnpU85JzWK8uiVIF9gTna+/g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1759485369; a=rsa-sha256; cv=none; b=oXAsXA9wtCVuAuRWryA7mB2FOvbNN16Sado9DOrJ3cRZVO7npgqZJDCI4yVk2LopJq9AKp 7jr7b7hNcwqWLjj1ksixFPGLZvf1wgvLLSdK1EkyZ5KgWfQa/HPA0PB2Lh+AkXXttxRIyD QoxoTGiMf4zmbmBbfwK2Jddk81sTyoeLXCRDSKIN+Iv13pJ+eN3SkrZrM8hYNP3ycV6sZ6 4SzlTDdgf8fwmsbE1tNJdH+pgfE1BDWyR78jCncgCcYOwfJPN8fLWoI3uw6IvoWcSLIhgC 42vQnEuqVlSRucaCN5zmtZr7MMoJ/zyeiSPxOREjXBwin0MNKpiSOhBH4AAUHg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4cdPF53YtBzqZt; Fri, 03 Oct 2025 09:56:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 5939u9nF073233; Fri, 3 Oct 2025 09:56:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 5939u9lD073230; Fri, 3 Oct 2025 09:56:09 GMT (envelope-from git) Date: Fri, 3 Oct 2025 09:56:09 GMT Message-Id: <202510030956.5939u9lD073230@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 523f14cbc395 - main - devel/py-mando: New port: Create Python CLI apps with little to no effort at all 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: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 523f14cbc3952b39185870880456ce1abfc3d4a1 Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=523f14cbc3952b39185870880456ce1abfc3d4a1 commit 523f14cbc3952b39185870880456ce1abfc3d4a1 Author: Yuri Victorovich AuthorDate: 2025-10-03 09:44:11 +0000 Commit: Yuri Victorovich CommitDate: 2025-10-03 09:56:07 +0000 devel/py-mando: New port: Create Python CLI apps with little to no effort at all --- devel/Makefile | 1 + devel/py-mando/Makefile | 28 ++++++++++++++++++++++++++++ devel/py-mando/distinfo | 3 +++ devel/py-mando/pkg-descr | 15 +++++++++++++++ 4 files changed, 47 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 3594aabda146..925331a0fae0 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5248,6 +5248,7 @@ SUBDIR += py-magnet2torrent SUBDIR += py-mailcap-fix SUBDIR += py-makefun + SUBDIR += py-mando SUBDIR += py-manuel SUBDIR += py-marisa-trie SUBDIR += py-marrow.mailer diff --git a/devel/py-mando/Makefile b/devel/py-mando/Makefile new file mode 100644 index 000000000000..69bab921b3ea --- /dev/null +++ b/devel/py-mando/Makefile @@ -0,0 +1,28 @@ +PORTNAME= mando +DISTVERSION= 0.8.2 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Create Python CLI apps with little to no effort at all +WWW= https://mando.readthedocs.org/ \ + https://github.com/rubik/mando + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= python +USE_PYTHON= distutils autoplist pytest + +TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + +NO_ARCH= yes + +do-test: + @cd ${TEST_WRKSRC} && \ + ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest mando/tests/ -v + +# tests as of 0.8.2: 83 passed in 2.23s + +.include diff --git a/devel/py-mando/distinfo b/devel/py-mando/distinfo new file mode 100644 index 000000000000..5d6e89ec3917 --- /dev/null +++ b/devel/py-mando/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1759484079 +SHA256 (mando-0.8.2.tar.gz) = 539659d9a2fdc6c9a188211c58f381e0dafe9597085174c5472eb1ed0224b6b5 +SIZE (mando-0.8.2.tar.gz) = 37732 diff --git a/devel/py-mando/pkg-descr b/devel/py-mando/pkg-descr new file mode 100644 index 000000000000..dd167d7af971 --- /dev/null +++ b/devel/py-mando/pkg-descr @@ -0,0 +1,15 @@ +mando is a wrapper around argparse, and allows you to write complete CLI +applications in seconds while maintaining all the flexibility. + +While argparse is great for simple command line applications with only +one, default command, when you have to add multiple commands and manage them +things get really messy and long. But don't worry, mando comes to help! + +Features: +* Create complete CLI applications with decorators +* Supports multiple commands and subcommands +* Automatic help generation from docstrings +* Type annotations support for Python 3 +* Sphinx, Google, and NumPy docstring styles +* Shell autocompletion via argcomplete package +* Custom format classes support