Date: Sat, 24 Jul 2021 20:31:16 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: 3830a51e087c - main - devel/pytype: Add pytype 2021.7.19 Message-ID: <202107242031.16OKVG28004173@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=3830a51e087c6cc007122ef7f4fed87956bc4608 commit 3830a51e087c6cc007122ef7f4fed87956bc4608 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2021-07-24 20:20:49 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2021-07-24 20:20:49 +0000 devel/pytype: Add pytype 2021.7.19 Pytype checks and infers types for your Python code - without requiring type annotations. Pytype can: - Lint plain Python code, flagging common mistakes such as misspelled attribute names, incorrect function calls, and much more, even across file boundaries. - Enforce user-provided type annotations. While annotations are optional for pytype, it will check and apply them where present. - Generate type annotations in standalone files ("pyi files"), which can be merged back into the Python source with a provided merge-pyi tool. Pytype is a static analyzer; it does not execute the code it runs on. Thousands of projects at Google rely on pytype to keep their Python code well-typed and error-free. WWW: https://google.github.io/pytype/ WWW: https://github.com/google/pytype --- devel/Makefile | 1 + devel/pytype/Makefile | 33 +++++++++++++++++++++++++++++++++ devel/pytype/distinfo | 3 +++ devel/pytype/pkg-descr | 16 ++++++++++++++++ 4 files changed, 53 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 5626167d41e9..a6b6f6a60fa0 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5396,6 +5396,7 @@ SUBDIR += pystring SUBDIR += pysvn SUBDIR += pythontidy + SUBDIR += pytype SUBDIR += qbs SUBDIR += qca SUBDIR += qca-legacy diff --git a/devel/pytype/Makefile b/devel/pytype/Makefile new file mode 100644 index 000000000000..8e035a62403a --- /dev/null +++ b/devel/pytype/Makefile @@ -0,0 +1,33 @@ +# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org> + +PORTNAME= pytype +PORTVERSION= 2021.7.19 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMESUFFIX= ${PYTHON_PKGNAMESUFFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Python type inferencer + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pybind11>=0:devel/py-pybind11@${PY_FLAVOR} +RUN_DEPENDS= ninja>=1.10.2:devel/ninja \ + ${PYTHON_PKGNAMEPREFIX}attrs>=21.2.0:devel/py-attrs@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}importlab>=0.6.1:devel/py-importlab@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}yaml>=3.11:devel/py-yaml@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}toml>=0:textproc/py-toml@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}typed-ast>=1.4.3:devel/py-typed-ast@${PY_FLAVOR} + +USES= compiler:c++11-lang python:3.6+ +USE_PYTHON= autoplist concurrent distutils + +.include <bsd.port.pre.mk> + +.if ${PYTHON_REL} < 30700 +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}dataclasses>=0:devel/py-dataclasses@${PY_FLAVOR} +.endif + +.include <bsd.port.post.mk> diff --git a/devel/pytype/distinfo b/devel/pytype/distinfo new file mode 100644 index 000000000000..28fbf7616bdf --- /dev/null +++ b/devel/pytype/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1627120800 +SHA256 (pytype-2021.7.19.tar.gz) = 8dba4e42defd145cd6a933f3673304a2e8aaa319ce9842fbf0eea670e4f3e89f +SIZE (pytype-2021.7.19.tar.gz) = 2253828 diff --git a/devel/pytype/pkg-descr b/devel/pytype/pkg-descr new file mode 100644 index 000000000000..f6e707de7eda --- /dev/null +++ b/devel/pytype/pkg-descr @@ -0,0 +1,16 @@ +Pytype checks and infers types for your Python code - without requiring type +annotations. Pytype can: +- Lint plain Python code, flagging common mistakes such as misspelled attribute + names, incorrect function calls, and much more, even across file boundaries. +- Enforce user-provided type annotations. While annotations are optional for + pytype, it will check and apply them where present. +- Generate type annotations in standalone files ("pyi files"), which can be + merged back into the Python source with a provided merge-pyi tool. + +Pytype is a static analyzer; it does not execute the code it runs on. + +Thousands of projects at Google rely on pytype to keep their Python code +well-typed and error-free. + +WWW: https://google.github.io/pytype/ +WWW: https://github.com/google/pytype
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202107242031.16OKVG28004173>