pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/py-libcst lang/py-libcst: import py-libcst-0.4.1
details: https://anonhg.NetBSD.org/pkgsrc/rev/f834569b6f10
branches: trunk
changeset: 374468:f834569b6f10
user: wiz <wiz%pkgsrc.org@localhost>
date: Wed Feb 23 11:32:52 2022 +0000
description:
lang/py-libcst: import py-libcst-0.4.1
Packaged by adam and myself in wip.
LibCST parses Python 3.0 -> 3.11 source code as a CST tree that
keeps all formatting details (comments, whitespaces, parentheses,
etc). It's useful for building automated refactoring (codemod)
applications and linters.
LibCST creates a compromise between an Abstract Syntax Tree (AST)
and a traditional Concrete Syntax Tree (CST). By carefully reorganizing
and naming node types and fields, we've created a lossless CST that
looks and feels like an AST.
diffstat:
lang/py-libcst/DESCR | 9 +
lang/py-libcst/Makefile | 29 +
lang/py-libcst/PLIST | 808 ++++++++++++++++++++++++++++++++++++++++
lang/py-libcst/cargo-depends.mk | 96 ++++
lang/py-libcst/distinfo | 287 ++++++++++++++
5 files changed, 1229 insertions(+), 0 deletions(-)
diffs (truncated from 1249 to 300 lines):
diff -r 8e01da029f28 -r f834569b6f10 lang/py-libcst/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/py-libcst/DESCR Wed Feb 23 11:32:52 2022 +0000
@@ -0,0 +1,9 @@
+LibCST parses Python 3.0 -> 3.11 source code as a CST tree that
+keeps all formatting details (comments, whitespaces, parentheses,
+etc). It's useful for building automated refactoring (codemod)
+applications and linters.
+
+LibCST creates a compromise between an Abstract Syntax Tree (AST)
+and a traditional Concrete Syntax Tree (CST). By carefully reorganizing
+and naming node types and fields, we've created a lossless CST that
+looks and feels like an AST.
diff -r 8e01da029f28 -r f834569b6f10 lang/py-libcst/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/py-libcst/Makefile Wed Feb 23 11:32:52 2022 +0000
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.1 2022/02/23 11:32:52 wiz Exp $
+
+DISTNAME= libcst-0.4.1
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES= lang python
+MASTER_SITES= ${MASTER_SITE_PYPI:=l/libcst/}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/Instagram/LibCST
+COMMENT= Concrete syntax tree with AST-like properties for Python
+LICENSE= mit
+
+BUILD_DEPENDS+= ${PYPKGPREFIX}-setuptools-rust>=1.0.0:../../devel/py-setuptools-rust
+BUILD_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
+DEPENDS+= ${PYPKGPREFIX}-typing-extensions>=3.7.4.2:../../devel/py-typing-extensions
+DEPENDS+= ${PYPKGPREFIX}-typing-inspect>=0.4.0:../../devel/py-typing-inspect
+DEPENDS+= ${PYPKGPREFIX}-yaml>=5.2:../../textproc/py-yaml
+
+PYTHON_VERSIONS_INCOMPATIBLE= 27
+
+.include "cargo-depends.mk"
+# for updating cargo-depends, uncomment the next line since Cargo.lock lives there
+#WRKSRC= ${WRKDIR}/${DISTNAME}/native
+
+CHECK_WRKREF_SKIP+= ${PYSITELIB}/libcst/native.so
+
+.include "../../lang/python/egg.mk"
+.include "../../lang/rust/cargo.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 8e01da029f28 -r f834569b6f10 lang/py-libcst/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/py-libcst/PLIST Wed Feb 23 11:32:52 2022 +0000
@@ -0,0 +1,808 @@
+@comment $NetBSD: PLIST,v 1.1 2022/02/23 11:32:52 wiz Exp $
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/libcst/__init__.py
+${PYSITELIB}/libcst/__init__.pyc
+${PYSITELIB}/libcst/__init__.pyo
+${PYSITELIB}/libcst/_add_slots.py
+${PYSITELIB}/libcst/_add_slots.pyc
+${PYSITELIB}/libcst/_add_slots.pyo
+${PYSITELIB}/libcst/_batched_visitor.py
+${PYSITELIB}/libcst/_batched_visitor.pyc
+${PYSITELIB}/libcst/_batched_visitor.pyo
+${PYSITELIB}/libcst/_exceptions.py
+${PYSITELIB}/libcst/_exceptions.pyc
+${PYSITELIB}/libcst/_exceptions.pyo
+${PYSITELIB}/libcst/_flatten_sentinel.py
+${PYSITELIB}/libcst/_flatten_sentinel.pyc
+${PYSITELIB}/libcst/_flatten_sentinel.pyo
+${PYSITELIB}/libcst/_maybe_sentinel.py
+${PYSITELIB}/libcst/_maybe_sentinel.pyc
+${PYSITELIB}/libcst/_maybe_sentinel.pyo
+${PYSITELIB}/libcst/_metadata_dependent.py
+${PYSITELIB}/libcst/_metadata_dependent.pyc
+${PYSITELIB}/libcst/_metadata_dependent.pyo
+${PYSITELIB}/libcst/_nodes/__init__.py
+${PYSITELIB}/libcst/_nodes/__init__.pyc
+${PYSITELIB}/libcst/_nodes/__init__.pyo
+${PYSITELIB}/libcst/_nodes/base.py
+${PYSITELIB}/libcst/_nodes/base.pyc
+${PYSITELIB}/libcst/_nodes/base.pyo
+${PYSITELIB}/libcst/_nodes/deep_equals.py
+${PYSITELIB}/libcst/_nodes/deep_equals.pyc
+${PYSITELIB}/libcst/_nodes/deep_equals.pyo
+${PYSITELIB}/libcst/_nodes/expression.py
+${PYSITELIB}/libcst/_nodes/expression.pyc
+${PYSITELIB}/libcst/_nodes/expression.pyo
+${PYSITELIB}/libcst/_nodes/internal.py
+${PYSITELIB}/libcst/_nodes/internal.pyc
+${PYSITELIB}/libcst/_nodes/internal.pyo
+${PYSITELIB}/libcst/_nodes/module.py
+${PYSITELIB}/libcst/_nodes/module.pyc
+${PYSITELIB}/libcst/_nodes/module.pyo
+${PYSITELIB}/libcst/_nodes/op.py
+${PYSITELIB}/libcst/_nodes/op.pyc
+${PYSITELIB}/libcst/_nodes/op.pyo
+${PYSITELIB}/libcst/_nodes/statement.py
+${PYSITELIB}/libcst/_nodes/statement.pyc
+${PYSITELIB}/libcst/_nodes/statement.pyo
+${PYSITELIB}/libcst/_nodes/tests/__init__.py
+${PYSITELIB}/libcst/_nodes/tests/__init__.pyc
+${PYSITELIB}/libcst/_nodes/tests/__init__.pyo
+${PYSITELIB}/libcst/_nodes/tests/base.py
+${PYSITELIB}/libcst/_nodes/tests/base.pyc
+${PYSITELIB}/libcst/_nodes/tests/base.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_assert.py
+${PYSITELIB}/libcst/_nodes/tests/test_assert.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_assert.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_assign.py
+${PYSITELIB}/libcst/_nodes/tests/test_assign.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_assign.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_atom.py
+${PYSITELIB}/libcst/_nodes/tests/test_atom.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_atom.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_attribute.py
+${PYSITELIB}/libcst/_nodes/tests/test_attribute.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_attribute.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_await.py
+${PYSITELIB}/libcst/_nodes/tests/test_await.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_await.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_binary_op.py
+${PYSITELIB}/libcst/_nodes/tests/test_binary_op.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_binary_op.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_boolean_op.py
+${PYSITELIB}/libcst/_nodes/tests/test_boolean_op.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_boolean_op.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_call.py
+${PYSITELIB}/libcst/_nodes/tests/test_call.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_call.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_classdef.py
+${PYSITELIB}/libcst/_nodes/tests/test_classdef.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_classdef.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_comment.py
+${PYSITELIB}/libcst/_nodes/tests/test_comment.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_comment.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_comparison.py
+${PYSITELIB}/libcst/_nodes/tests/test_comparison.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_comparison.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_cst_node.py
+${PYSITELIB}/libcst/_nodes/tests/test_cst_node.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_cst_node.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_del.py
+${PYSITELIB}/libcst/_nodes/tests/test_del.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_del.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_dict.py
+${PYSITELIB}/libcst/_nodes/tests/test_dict.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_dict.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_dict_comp.py
+${PYSITELIB}/libcst/_nodes/tests/test_dict_comp.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_dict_comp.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_docstring.py
+${PYSITELIB}/libcst/_nodes/tests/test_docstring.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_docstring.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_else.py
+${PYSITELIB}/libcst/_nodes/tests/test_else.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_else.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_empty_line.py
+${PYSITELIB}/libcst/_nodes/tests/test_empty_line.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_empty_line.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_flatten_behavior.py
+${PYSITELIB}/libcst/_nodes/tests/test_flatten_behavior.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_flatten_behavior.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_for.py
+${PYSITELIB}/libcst/_nodes/tests/test_for.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_for.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_funcdef.py
+${PYSITELIB}/libcst/_nodes/tests/test_funcdef.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_funcdef.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_global.py
+${PYSITELIB}/libcst/_nodes/tests/test_global.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_global.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_if.py
+${PYSITELIB}/libcst/_nodes/tests/test_if.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_if.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_ifexp.py
+${PYSITELIB}/libcst/_nodes/tests/test_ifexp.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_ifexp.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_import.py
+${PYSITELIB}/libcst/_nodes/tests/test_import.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_import.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_indented_block.py
+${PYSITELIB}/libcst/_nodes/tests/test_indented_block.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_indented_block.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_lambda.py
+${PYSITELIB}/libcst/_nodes/tests/test_lambda.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_lambda.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_leaf_small_statements.py
+${PYSITELIB}/libcst/_nodes/tests/test_leaf_small_statements.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_leaf_small_statements.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_list.py
+${PYSITELIB}/libcst/_nodes/tests/test_list.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_list.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_match.py
+${PYSITELIB}/libcst/_nodes/tests/test_match.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_match.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_matrix_multiply.py
+${PYSITELIB}/libcst/_nodes/tests/test_matrix_multiply.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_matrix_multiply.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_module.py
+${PYSITELIB}/libcst/_nodes/tests/test_module.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_module.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_namedexpr.py
+${PYSITELIB}/libcst/_nodes/tests/test_namedexpr.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_namedexpr.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_newline.py
+${PYSITELIB}/libcst/_nodes/tests/test_newline.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_newline.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_nonlocal.py
+${PYSITELIB}/libcst/_nodes/tests/test_nonlocal.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_nonlocal.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_number.py
+${PYSITELIB}/libcst/_nodes/tests/test_number.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_number.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_raise.py
+${PYSITELIB}/libcst/_nodes/tests/test_raise.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_raise.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_removal_behavior.py
+${PYSITELIB}/libcst/_nodes/tests/test_removal_behavior.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_removal_behavior.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_return.py
+${PYSITELIB}/libcst/_nodes/tests/test_return.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_return.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_set.py
+${PYSITELIB}/libcst/_nodes/tests/test_set.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_set.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_simple_comp.py
+${PYSITELIB}/libcst/_nodes/tests/test_simple_comp.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_simple_comp.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_simple_statement.py
+${PYSITELIB}/libcst/_nodes/tests/test_simple_statement.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_simple_statement.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_simple_whitespace.py
+${PYSITELIB}/libcst/_nodes/tests/test_simple_whitespace.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_simple_whitespace.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_small_statement.py
+${PYSITELIB}/libcst/_nodes/tests/test_small_statement.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_small_statement.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_subscript.py
+${PYSITELIB}/libcst/_nodes/tests/test_subscript.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_subscript.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_trailing_whitespace.py
+${PYSITELIB}/libcst/_nodes/tests/test_trailing_whitespace.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_trailing_whitespace.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_try.py
+${PYSITELIB}/libcst/_nodes/tests/test_try.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_try.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_tuple.py
+${PYSITELIB}/libcst/_nodes/tests/test_tuple.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_tuple.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_unary_op.py
+${PYSITELIB}/libcst/_nodes/tests/test_unary_op.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_unary_op.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_while.py
+${PYSITELIB}/libcst/_nodes/tests/test_while.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_while.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_with.py
+${PYSITELIB}/libcst/_nodes/tests/test_with.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_with.pyo
+${PYSITELIB}/libcst/_nodes/tests/test_yield.py
+${PYSITELIB}/libcst/_nodes/tests/test_yield.pyc
+${PYSITELIB}/libcst/_nodes/tests/test_yield.pyo
+${PYSITELIB}/libcst/_nodes/whitespace.py
+${PYSITELIB}/libcst/_nodes/whitespace.pyc
+${PYSITELIB}/libcst/_nodes/whitespace.pyo
+${PYSITELIB}/libcst/_parser/__init__.py
+${PYSITELIB}/libcst/_parser/__init__.pyc
+${PYSITELIB}/libcst/_parser/__init__.pyo
+${PYSITELIB}/libcst/_parser/base_parser.py
+${PYSITELIB}/libcst/_parser/base_parser.pyc
+${PYSITELIB}/libcst/_parser/base_parser.pyo
+${PYSITELIB}/libcst/_parser/conversions/__init__.py
+${PYSITELIB}/libcst/_parser/conversions/__init__.pyc
+${PYSITELIB}/libcst/_parser/conversions/__init__.pyo
+${PYSITELIB}/libcst/_parser/conversions/expression.py
+${PYSITELIB}/libcst/_parser/conversions/expression.pyc
+${PYSITELIB}/libcst/_parser/conversions/expression.pyo
+${PYSITELIB}/libcst/_parser/conversions/module.py
+${PYSITELIB}/libcst/_parser/conversions/module.pyc
+${PYSITELIB}/libcst/_parser/conversions/module.pyo
+${PYSITELIB}/libcst/_parser/conversions/params.py
+${PYSITELIB}/libcst/_parser/conversions/params.pyc
+${PYSITELIB}/libcst/_parser/conversions/params.pyo
+${PYSITELIB}/libcst/_parser/conversions/statement.py
+${PYSITELIB}/libcst/_parser/conversions/statement.pyc
+${PYSITELIB}/libcst/_parser/conversions/statement.pyo
+${PYSITELIB}/libcst/_parser/conversions/terminals.py
+${PYSITELIB}/libcst/_parser/conversions/terminals.pyc
+${PYSITELIB}/libcst/_parser/conversions/terminals.pyo
+${PYSITELIB}/libcst/_parser/custom_itertools.py
+${PYSITELIB}/libcst/_parser/custom_itertools.pyc
+${PYSITELIB}/libcst/_parser/custom_itertools.pyo
+${PYSITELIB}/libcst/_parser/detect_config.py
+${PYSITELIB}/libcst/_parser/detect_config.pyc
+${PYSITELIB}/libcst/_parser/detect_config.pyo
+${PYSITELIB}/libcst/_parser/entrypoints.py
+${PYSITELIB}/libcst/_parser/entrypoints.pyc
+${PYSITELIB}/libcst/_parser/entrypoints.pyo
Home |
Main Index |
Thread Index |
Old Index