BSD Ports

lang/py-libcst 1.9.0 NetBSD

Concrete syntax tree with AST-like properties for Python

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Last update
Commit
65c9b1c391
License
mit
Categories
lang, python
Package size
2185.7 KiB, 15859.4 KiB installed

Description

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.

In the other systems

SystemPortVersion
NetBSDlang/py-libcst1.9.0
FreeBSDdevel/py-libcst1.9.0_2
HardenedBSDdevel/py-libcst1.9.0_1
GhostBSDdevel/py-libcst1.9.0_1

Install

Binary package:

pkgin install py312-libcst

From pkgsrc:

cd /usr/pkgsrc/lang/py-libcst && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_641.9.0
NetBSD 10.1 aarch641.8.6
SmartOS / illumos x86_641.9.0
macOS 15 arm641.9.0

Dependencies

Run dependencies 2

Configuration

No options to configure.

Service scripts
none
Flavors
py313-libcst-1.9.0, py314-libcst-1.9.0

Commit history 2

DateCommitCreditsLog message
65c9b1c391 adam Forget Python 3.10
0344917fbe adam py-libcst: updated to 1.9.0
1.9.0 - 2026-07-29 Added * Add support for Python 3.15 * Add `CodemodCommand` helpers for adding and removing imports Fixed * Recognize Python 3.14 parser configurations * Allow a trailing comma after `**rest` in class patterns Updated * Document the new `CodemodCommand` import helpers * Fix the `tokenize` function's docstring grammar * Remove the retired macOS 13 runner from CI