Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Jun 2021 20:45:27 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: e57b0445a8bb - main - devel/py-typer: Add py-typer 0.3.2
Message-ID:  <202106302045.15UKjROO053297@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e57b0445a8bbc8a0eceb9785b79ad77fa81bd30d

commit e57b0445a8bbc8a0eceb9785b79ad77fa81bd30d
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2021-06-30 20:27:28 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
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 <sunpoet@FreeBSD.org>
+
+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 <bsd.port.mk>
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106302045.15UKjROO053297>