./lang/py-libcst, Concrete syntax tree with AST-like properties for Python

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 0.4.9, Package name: py310-libcst-0.4.9, Maintainer: pkgsrc-users

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.


Master sites:

Filesize: 724.679 KB

Version history: (Expand)


CVS history: (Expand)


   2022-11-11 12:26:10 by Adam Ciarcinski | Files touched by this commit (4) | Package updated
Log message:
py-libcst: updated to 0.4.9

0.4.9
Bump setuptools-rust version

0.4.8
Fixed

Fix parse error message for number parsing
Fix problematic doc build, due to the new builder image provided by readthedocs \ 
doesn't has the graphviz-dev package pre-installed any more
Fix docstring of FullRepoManager
Fix bug when TypeOf is one of options in OneOf / AllOf
Tighten the metadata type of ExpressionContextProvider
Fix the bug that the use of formatter in codemods has undetermined target Python \ 
version, resulting in hard-to-reason-with behavior

Added

Python 3.11 rutime support
test using python 3.11 beta versions
Python 3.11 wheels
Raise informative exception when metadata is unresolved in a metadata-based match
Add AccessorProvider
   2022-09-14 10:39:01 by Adam Ciarcinski | Files touched by this commit (5) | Package updated
Log message:
py-libcst: updated to 0.4.7

0.4.7 - 2022-07-12

Fixed
* Fix get_qualified_names_for matching on prefixes of the given name by @lpetre \ 
in https://github.com/Instagram/LibCST/pull/719

Added
* Implement lazy loading mechanism for expensive metadata providers by \ 
@Chenguang-Zhu in https://github.com/Instagram/LibCST/pull/720

0.4.6 - 2022-07-04

New Contributors
- @superbobry made their first contribution in \ 
https://github.com/Instagram/LibCST/pull/702

Fixed
- convert_type_comments now preserves comments following type comments by \ 
@superbobry in https://github.com/Instagram/LibCST/pull/702
- QualifiedNameProvider optimizations
  - Cache the scope name prefix to prevent scope traversal in a tight loop by \ 
@lpetre in https://github.com/Instagram/LibCST/pull/708
  - Faster qualified name formatting by @lpetre in \ 
https://github.com/Instagram/LibCST/pull/710
  - Prevent unnecessary work in Scope.get_qualified_names_for_ by @lpetre in \ 
https://github.com/Instagram/LibCST/pull/709
- Fix parsing of parenthesized empty tuples by @zsol in \ 
https://github.com/Instagram/LibCST/pull/712
- Support whitespace after ParamSlash by @zsol in \ 
https://github.com/Instagram/LibCST/pull/713
- [parser] bail on deeply nested expressions by @zsol in \ 
https://github.com/Instagram/LibCST/pull/718

0.4.5 - 2022-06-17

New Contributors

-   @zzl0 made their first contribution in \ 
https://github.com/Instagram/LibCST/pull/704

Fixed

-   Only skip supported escaped characters in f-strings by @zsol in \ 
https://github.com/Instagram/LibCST/pull/700
-   Escaping quote characters in raw string literals causes a tokenizer error by \ 
@zsol in https://github.com/Instagram/LibCST/issues/668
-   Corrected a code example in the documentation by @zzl0 in \ 
https://github.com/Instagram/LibCST/pull/703
-   Handle multiline strings that start with quotes by @zzl0 in \ 
https://github.com/Instagram/LibCST/pull/704
-   Fixed a performance regression in libcst.metadata.ScopeProvider by @lpetre \ 
in https://github.com/Instagram/LibCST/pull/698

0.4.4 - 2022-06-13

New Contributors

-   @adamchainz made their first contribution in \ 
https://github.com/Instagram/LibCST/pull/688

Added

-   Add package links to PyPI by @adamchainz in \ 
https://github.com/Instagram/LibCST/pull/688
-   native: add overall benchmark by @zsol in \ 
https://github.com/Instagram/LibCST/pull/692
-   Add support for PEP-646 by @zsol in https://github.com/Instagram/LibCST/pull/696

Updated

-   parser: use references instead of smart pointers for Tokens by @zsol in \ 
https://github.com/Instagram/LibCST/pull/691
   2022-05-16 21:20:04 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-libcst: updated to 0.4.3

0.4.3 - 2022-05-11

Fixed
* Restore the 0.4.1 behavior for libcst.helpers.get_absolute_module

0.4.2 - 2022-05-04

Fixed
* native: Avoid crashing by making IntoPy conversion fallible
* native: make sure ParserError's line is zero-indexed
* Fix space validation for AsName and Await
* Qualified Name Provider: Fix returned qname for symbols that are prefixes of \ 
each other
* Rename Codemod: Correct last renamed import from
* Many changes to the Apply Type Comments codemod:
  * Allow for skipping quotes when applying type comments
  * Port pyre fixes
  * Preserve as-imports when merging type annotations.
  * Qualify imported symbols when the dequalified form would cause a conflict
  * Add an argument to always qualify imported type annotations.

Added
* Create an AddTrailingCommas codemod
* Define gather global names visitor

Updated
* Support module and package names in the codemod context
* Drop support for running libcst using a python 3.6 interpreter
* Update relative import logic to match cpython
* Scope Provider: Consider access information when computing qualified names for \ 
nodes
   2022-03-05 12:23:11 by Thomas Klausner | Files touched by this commit (4)
Log message:
py-libcst: download peg-git during fetch stage, and provide it during build

avoids network access during build
   2022-02-23 12:32:52 by Thomas Klausner | Files touched by this commit (5)
Log message:
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.