git: f283b95e8235 - main - devel/py-typeshed-client: Add py-typeshed-client 2.7.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 14 Oct 2024 05:27:12 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=f283b95e823513f50cc6b5c7bafa213207d8d51a commit f283b95e823513f50cc6b5c7bafa213207d8d51a Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2024-10-14 04:45:14 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2024-10-14 04:45:14 +0000 devel/py-typeshed-client: Add py-typeshed-client 2.7.0 typeshed-client provides a way to retrieve information from typeshed and from PEP 561 stub packages. Example use cases: - Find the path to the stub file for a particular module. - Find the names defined in a stub. - Find the AST node that defines a particular name in a stub. Projects for which typeshed_client could be useful include: - Static analyzers that want to access typeshed annotations. - Tools that check stubs for correctness. - Tools that use typeshed for runtime introspection. --- devel/Makefile | 1 + devel/py-typeshed-client/Makefile | 25 +++++++++++++++++++++++++ devel/py-typeshed-client/distinfo | 3 +++ devel/py-typeshed-client/pkg-descr | 12 ++++++++++++ 4 files changed, 41 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 03f28bbd0eec..60f622e772e0 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -6028,6 +6028,7 @@ SUBDIR += py-types-toml SUBDIR += py-types-typed-ast SUBDIR += py-types-urllib3 + SUBDIR += py-typeshed-client SUBDIR += py-typing-extensions SUBDIR += py-typing-inspect SUBDIR += py-tzdata diff --git a/devel/py-typeshed-client/Makefile b/devel/py-typeshed-client/Makefile new file mode 100644 index 000000000000..9fce830730fa --- /dev/null +++ b/devel/py-typeshed-client/Makefile @@ -0,0 +1,25 @@ +PORTNAME= typeshed-client +PORTVERSION= 2.7.0 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= typeshed_client-${PORTVERSION} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Library for accessing stubs in typeshed +WWW= https://github.com/JelleZijlstra/typeshed_client + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=42:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}importlib-resources>=1.4.0:devel/py-importlib-resources@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.5.0:devel/py-typing-extensions@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/devel/py-typeshed-client/distinfo b/devel/py-typeshed-client/distinfo new file mode 100644 index 000000000000..a5ba6853d389 --- /dev/null +++ b/devel/py-typeshed-client/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1728632230 +SHA256 (typeshed_client-2.7.0.tar.gz) = e63df1e738588ad39f1226de042f4407ab6a99c456f0837063afd83b1415447c +SIZE (typeshed_client-2.7.0.tar.gz) = 433569 diff --git a/devel/py-typeshed-client/pkg-descr b/devel/py-typeshed-client/pkg-descr new file mode 100644 index 000000000000..1617f2828d01 --- /dev/null +++ b/devel/py-typeshed-client/pkg-descr @@ -0,0 +1,12 @@ +typeshed-client provides a way to retrieve information from typeshed and from +PEP 561 stub packages. + +Example use cases: +- Find the path to the stub file for a particular module. +- Find the names defined in a stub. +- Find the AST node that defines a particular name in a stub. + +Projects for which typeshed_client could be useful include: +- Static analyzers that want to access typeshed annotations. +- Tools that check stubs for correctness. +- Tools that use typeshed for runtime introspection.