From owner-dev-commits-ports-main@freebsd.org Wed Jun 30 20:45:27 2021 Return-Path: Delivered-To: dev-commits-ports-main@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BB04264CA56; Wed, 30 Jun 2021 20:45:27 +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 4GFYJR2fJTz3tWh; Wed, 30 Jun 2021 20:45:27 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 42245138F4; Wed, 30 Jun 2021 20:45:27 +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 15UKjRTi053298; Wed, 30 Jun 2021 20:45:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 15UKjROO053297; Wed, 30 Jun 2021 20:45:27 GMT (envelope-from git) Date: Wed, 30 Jun 2021 20:45:27 GMT Message-Id: <202106302045.15UKjROO053297@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: e57b0445a8bb - main - devel/py-typer: Add py-typer 0.3.2 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: e57b0445a8bbc8a0eceb9785b79ad77fa81bd30d Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-main@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commits to the main branch of the FreeBSD ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2021 20:45:27 -0000 The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=e57b0445a8bbc8a0eceb9785b79ad77fa81bd30d commit e57b0445a8bbc8a0eceb9785b79ad77fa81bd30d Author: Po-Chuan Hsieh AuthorDate: 2021-06-30 20:27:28 +0000 Commit: Po-Chuan Hsieh CommitDate: 2021-06-30 20:43:30 +0000 devel/py-typer: Add py-typer 0.3.2 Typer is a library for building CLI applications that users will love using and developers will love creating. Based on Python 3.6+ type hints. The key features are: - Intuitive to write: Great editor support. Completion everywhere. Less time debugging. Designed to be easy to use and learn. Less time reading docs. - Easy to use: It's easy to use for the final users. Automatic help, and automatic completion for all shells. - Short: Minimize code duplication. Multiple features from each parameter declaration. Fewer bugs. - Start simple: The simplest example adds only 2 lines of code to your app: 1 import, 1 function call. - Grow large: Grow in complexity as much as you want, create arbitrarily complex trees of commands and groups of subcommands, with options and arguments. WWW: https://github.com/tiangolo/typer --- devel/Makefile | 1 + devel/py-typer/Makefile | 29 +++++++++++++++++++++++++++++ devel/py-typer/distinfo | 3 +++ devel/py-typer/pkg-descr | 16 ++++++++++++++++ 4 files changed, 49 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index c0496cf43771..981041a443e2 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5201,6 +5201,7 @@ SUBDIR += py-txaio SUBDIR += py-typechecks SUBDIR += py-typed-ast + SUBDIR += py-typer SUBDIR += py-types-PyYAML SUBDIR += py-types-protobuf SUBDIR += py-types-requests diff --git a/devel/py-typer/Makefile b/devel/py-typer/Makefile new file mode 100644 index 000000000000..1ef691b5a809 --- /dev/null +++ b/devel/py-typer/Makefile @@ -0,0 +1,29 @@ +# Created by: Po-Chuan Hsieh + +PORTNAME= typer +PORTVERSION= 0.3.2 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Library for building CLI applications + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}click>=7.1.1<7.2.0:devel/py-click@${PY_FLAVOR} + +USES= python:3.6+ +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +OPTIONS_DEFINE= ALL +OPTIONS_DEFAULT=ALL +ALL_DESC= All dependencies + +ALL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}colorama>=0.4.3<0.5.0:devel/py-colorama@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}shellingham>=1.3.0<2.0.0:devel/py-shellingham@${PY_FLAVOR} + +.include diff --git a/devel/py-typer/distinfo b/devel/py-typer/distinfo new file mode 100644 index 000000000000..2a9d1f79d453 --- /dev/null +++ b/devel/py-typer/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1624630040 +SHA256 (typer-0.3.2.tar.gz) = 5455d750122cff96745b0dec87368f56d023725a7ebc9d2e54dd23dc86816303 +SIZE (typer-0.3.2.tar.gz) = 206705 diff --git a/devel/py-typer/pkg-descr b/devel/py-typer/pkg-descr new file mode 100644 index 000000000000..89696c062c00 --- /dev/null +++ b/devel/py-typer/pkg-descr @@ -0,0 +1,16 @@ +Typer is a library for building CLI applications that users will love using and +developers will love creating. Based on Python 3.6+ type hints. + +The key features are: +- Intuitive to write: Great editor support. Completion everywhere. Less time + debugging. Designed to be easy to use and learn. Less time reading docs. +- Easy to use: It's easy to use for the final users. Automatic help, and + automatic completion for all shells. +- Short: Minimize code duplication. Multiple features from each parameter + declaration. Fewer bugs. +- Start simple: The simplest example adds only 2 lines of code to your app: 1 + import, 1 function call. +- Grow large: Grow in complexity as much as you want, create arbitrarily complex + trees of commands and groups of subcommands, with options and arguments. + +WWW: https://github.com/tiangolo/typer