git: 7ac8d57e7cac - main - devel/py-ast2json: New port: Convert a python source code into json-dumpable AST data
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 19 May 2024 01:12:25 UTC
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=7ac8d57e7cac146e73a9b3df5669504988787ed7 commit 7ac8d57e7cac146e73a9b3df5669504988787ed7 Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2024-05-19 01:11:41 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2024-05-19 01:12:21 +0000 devel/py-ast2json: New port: Convert a python source code into json-dumpable AST data --- devel/Makefile | 1 + devel/py-ast2json/Makefile | 21 +++++++++++++++++++++ devel/py-ast2json/distinfo | 3 +++ devel/py-ast2json/pkg-descr | 2 ++ devel/py-ast2json/pkg-plist | 15 +++++++++++++++ 5 files changed, 42 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 64fb11474053..838b53176e8b 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4316,6 +4316,7 @@ SUBDIR += py-aspy.yaml SUBDIR += py-assertpy SUBDIR += py-ast-decompiler + SUBDIR += py-ast2json SUBDIR += py-asteval SUBDIR += py-astor SUBDIR += py-astroid diff --git a/devel/py-ast2json/Makefile b/devel/py-ast2json/Makefile new file mode 100644 index 000000000000..c4961e749656 --- /dev/null +++ b/devel/py-ast2json/Makefile @@ -0,0 +1,21 @@ +PORTNAME= ast2json +DISTVERSION= 0.3 +CATEGORIES= devel science +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Convert a python source code into json-dumpable AST data +WWW= https://github.com/YoloSwagTeam/ast2json + +LICENSE= BSD3CLAUSE + +USES= python +USE_PYTHON= distutils # autoplist: autoplist contains the 'test' folder that is removed + +NO_ARCH= yes + +post-install: # see https://github.com/YoloSwagTeam/ast2json/issues/10 + @${RM} -r ${STAGEDIR}${PYTHON_SITELIBDIR}/test + +.include <bsd.port.mk> diff --git a/devel/py-ast2json/distinfo b/devel/py-ast2json/distinfo new file mode 100644 index 000000000000..44f4677ae4d2 --- /dev/null +++ b/devel/py-ast2json/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1716080087 +SHA256 (ast2json-0.3.tar.gz) = fd40a7d911df8de97eb5976783bf16765fcbe6ce9393fb92aa833283fb5f8ee3 +SIZE (ast2json-0.3.tar.gz) = 4369 diff --git a/devel/py-ast2json/pkg-descr b/devel/py-ast2json/pkg-descr new file mode 100644 index 000000000000..46ef8ddcff2e --- /dev/null +++ b/devel/py-ast2json/pkg-descr @@ -0,0 +1,2 @@ +ast2json is a Python module that allows to convert a python source code into +json-dumpable syntax tree data (dict and lists with strings, ints, ...). diff --git a/devel/py-ast2json/pkg-plist b/devel/py-ast2json/pkg-plist new file mode 100644 index 000000000000..2279350dd53b --- /dev/null +++ b/devel/py-ast2json/pkg-plist @@ -0,0 +1,15 @@ +%%PYTHON_SITELIBDIR%%/ast2json/__init__.py +%%PYTHON_SITELIBDIR%%/ast2json/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/ast2json/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/ast2json/__pycache__/ast2json%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/ast2json/__pycache__/ast2json%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/ast2json/__pycache__/types%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/ast2json/__pycache__/types%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/ast2json/ast2json.py +%%PYTHON_SITELIBDIR%%/ast2json/py2/__init__.py +%%PYTHON_SITELIBDIR%%/ast2json/py2/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/ast2json/py2/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/ast2json/py3/__init__.py +%%PYTHON_SITELIBDIR%%/ast2json/py3/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/ast2json/py3/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/ast2json/types.py