From nobody Sun May 19 01:12:25 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VhjNT4FnJz5KPXs; Sun, 19 May 2024 01:12:25 +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 4VhjNT2K5Wz4Gsw; Sun, 19 May 2024 01:12:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716081145; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4v0QXNJueE9BrXFkUmUYrEHYP2u1jK9vKaTgHVX6Bfg=; b=n5Mu1JWtldw9DnBIKs+R0Da/JL7NL7fjx3cgniUwN30zHUUbyOCfuwoOJ0kCVoYc53IBxe vC3bB7x0Jc56TS/eudjgID59h7dpcc09FPndnoZoJwFzmjfY1O7g3O0iyqDMRYq79i9Cj8 QMIX4U+kmpQecRMOAfRdt6GHDZgCAnVJlwxp6v1f3YLghokJ3zG4oPvQ13ze7ffNLbcuXQ CAEuP74u4NRAVBYfgUjhZDRN55tWxo+lq+HxwhWE2BrgRuKvJLKcUGUQnp2C/JFqD60mVr QxSJBREsb4rDLcRVJdHPwb9H4VWMutYrCUxk/N5p+BmLx1QmF5Eh3BeUe4BZ4A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1716081145; a=rsa-sha256; cv=none; b=M0iyJLETYdGQulSkzy7y/DKejHEJSlvYo7gnznUauVcx/C9gTHFMIu7AmhqKPE3p6pwbKN h9wxbZVAAqiuidp/miLjy4fz7BUsUwsDezsvSbz3XiOx4aBr4sS7Wh+2hath5I+NKsZLM8 VO9Hmf/vzj5DcaY9gx7DpXhrfhqlq/htyW0UUrQ5YNIlk/GwHpRjF5dClHqtMEeB9cLbQ1 QGxPvIMCio6o0wH3Ds+ZHeIXohh3OxB1TP1eVgVYdyFylqLh070BLJ16n4x+PyAMJY0GK1 gEVUUWfoeYOC6w+k7peJj3Cq1/e8l0I8ZOUnKZE0xCRSPnJJ08hTMmfvp//mBw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716081145; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4v0QXNJueE9BrXFkUmUYrEHYP2u1jK9vKaTgHVX6Bfg=; b=CNmDboJwq89o5MMflyA4Wttnd2DXmOEQwLdzytsBUaoYPme4hfRqTAeh9dL/wqFAA1vsG4 OxYYbBVO0ilkG4dhC8c7+NjAXGPkalfUf2ATH/AS92qbOJRHTMI8/H1lHZS12Am9wmTzVQ MuvfHwPHDYKsLzDAFuQEWq0gJvUJ2pffYFcFHhu7gX9enqIh2aYIuGwaig7ndO54OvPvDy Gm2n2rVk+ape0m4REXRWffW9l3/Ya0n1o6SBij+yTb1eSQLT8AJRK1v6Ew1Tw9REfWpjts dDLpfEUcpJOwpUV48KYL52m40B97YTQW1lQcBAGt+RlGCAfAhroJtfVWdIhwBQ== 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 4VhjNT1xLczpvC; Sun, 19 May 2024 01:12:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 44J1CPWU013360; Sun, 19 May 2024 01:12:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44J1CPqO013357; Sun, 19 May 2024 01:12:25 GMT (envelope-from git) Date: Sun, 19 May 2024 01:12:25 GMT Message-Id: <202405190112.44J1CPqO013357@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 7ac8d57e7cac - main - devel/py-ast2json: New port: Convert a python source code into json-dumpable AST data List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7ac8d57e7cac146e73a9b3df5669504988787ed7 Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=7ac8d57e7cac146e73a9b3df5669504988787ed7 commit 7ac8d57e7cac146e73a9b3df5669504988787ed7 Author: Yuri Victorovich AuthorDate: 2024-05-19 01:11:41 +0000 Commit: Yuri Victorovich 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 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