head	1.29;
access;
symbols
	pkgsrc-2026Q3:1.28.0.2
	pkgsrc-2026Q3-base:1.28
	pkgsrc-2026Q2:1.26.0.6
	pkgsrc-2026Q2-base:1.26
	pkgsrc-2026Q1:1.26.0.4
	pkgsrc-2026Q1-base:1.26
	pkgsrc-2025Q4:1.26.0.2
	pkgsrc-2025Q4-base:1.26
	pkgsrc-2025Q3:1.22.0.2
	pkgsrc-2025Q3-base:1.22
	pkgsrc-2025Q2:1.20.0.2
	pkgsrc-2025Q2-base:1.20
	pkgsrc-2025Q1:1.17.0.2
	pkgsrc-2025Q1-base:1.17
	pkgsrc-2024Q4:1.16.0.2
	pkgsrc-2024Q4-base:1.16
	pkgsrc-2024Q3:1.13.0.4
	pkgsrc-2024Q3-base:1.13
	pkgsrc-2024Q2:1.13.0.2
	pkgsrc-2024Q2-base:1.13
	pkgsrc-2024Q1:1.11.0.2
	pkgsrc-2024Q1-base:1.11
	pkgsrc-2023Q4:1.10.0.2
	pkgsrc-2023Q4-base:1.10
	pkgsrc-2023Q3:1.8.0.4
	pkgsrc-2023Q3-base:1.8
	pkgsrc-2023Q2:1.8.0.2
	pkgsrc-2023Q2-base:1.8
	pkgsrc-2023Q1:1.5.0.4
	pkgsrc-2023Q1-base:1.5
	pkgsrc-2022Q4:1.5.0.2
	pkgsrc-2022Q4-base:1.5
	pkgsrc-2022Q3:1.4.0.2
	pkgsrc-2022Q3-base:1.4
	pkgsrc-2022Q2:1.3.0.2
	pkgsrc-2022Q2-base:1.3
	pkgsrc-2022Q1:1.2.0.2
	pkgsrc-2022Q1-base:1.2;
locks; strict;
comment	@# @;


1.29
date	2026.10.16.19.44.01;	author adam;	state Exp;
branches;
next	1.28;
commitid	z8jatkdHAjoiPJZG;

1.28
date	2026.08.02.11.30.29;	author adam;	state Exp;
branches;
next	1.27;
commitid	ownqkSkdnoowv3QG;

1.27
date	2026.06.28.15.41.26;	author wiz;	state Exp;
branches;
next	1.26;
commitid	hjtQh9zHnnKc1ALG;

1.26
date	2025.11.07.10.28.09;	author adam;	state Exp;
branches;
next	1.25;
commitid	trgCwRTGi3UcMBhG;

1.25
date	2025.10.09.07.57.44;	author wiz;	state Exp;
branches;
next	1.24;
commitid	t4nMY0Dt3rBjSRdG;

1.24
date	2025.10.03.05.56.32;	author adam;	state Exp;
branches;
next	1.23;
commitid	xxoJAasqJcTOo5dG;

1.23
date	2025.09.22.17.54.31;	author adam;	state Exp;
branches;
next	1.22;
commitid	xGVIQ5Ol4sOYIJbG;

1.22
date	2025.07.05.11.44.07;	author wiz;	state Exp;
branches;
next	1.21;
commitid	B2KLCDAZOmgedy1G;

1.21
date	2025.06.30.19.45.57;	author adam;	state Exp;
branches;
next	1.20;
commitid	1iAYIC8YvgDG2X0G;

1.20
date	2025.06.11.05.43.58;	author adam;	state Exp;
branches;
next	1.19;
commitid	Arx2UBefTETFZqYF;

1.19
date	2025.06.01.05.45.04;	author adam;	state Exp;
branches;
next	1.18;
commitid	maYJgeqg6YmWj9XF;

1.18
date	2025.04.12.19.34.56;	author adam;	state Exp;
branches;
next	1.17;
commitid	MrHf5xDtrfoiwNQF;

1.17
date	2025.01.14.08.40.57;	author adam;	state Exp;
branches;
next	1.16;
commitid	YhR8NiXoH1ViJqFF;

1.16
date	2024.11.20.09.34.59;	author adam;	state Exp;
branches;
next	1.15;
commitid	iW6ZhAX3OLPvNmyF;

1.15
date	2024.11.11.07.28.37;	author wiz;	state Exp;
branches;
next	1.14;
commitid	1fBDq3LwS98NncxF;

1.14
date	2024.10.11.12.40.04;	author adam;	state Exp;
branches;
next	1.13;
commitid	YLnUhxG9hePF6ftF;

1.13
date	2024.05.24.15.15.44;	author adam;	state Exp;
branches;
next	1.12;
commitid	XglqeFm8Pul1tgbF;

1.12
date	2024.04.09.16.41.06;	author adam;	state Exp;
branches;
next	1.11;
commitid	4xyWWJNrR4l3ou5F;

1.11
date	2024.02.20.04.55.23;	author adam;	state Exp;
branches;
next	1.10;
commitid	cZEG05ajd0Ex38ZE;

1.10
date	2023.12.13.17.39.07;	author schmonz;	state Exp;
branches;
next	1.9;
commitid	ok4r2yyfjEzQukQE;

1.9
date	2023.10.07.20.14.31;	author adam;	state Exp;
branches;
next	1.8;
commitid	SNZgtzE8QszXvJHE;

1.8
date	2023.06.14.15.38.44;	author adam;	state Exp;
branches;
next	1.7;
commitid	4FnTNIHxZjWxGVsE;

1.7
date	2023.06.06.12.41.45;	author riastradh;	state Exp;
branches;
next	1.6;
commitid	xhspr6Z8JLQOWSrE;

1.6
date	2023.05.30.09.28.00;	author adam;	state Exp;
branches;
next	1.5;
commitid	LiABjaf8VHE77YqE;

1.5
date	2022.11.11.11.26.10;	author adam;	state Exp;
branches;
next	1.4;
commitid	WGy3q2ZJ4WXech1E;

1.4
date	2022.09.14.08.39.01;	author adam;	state Exp;
branches;
next	1.3;
commitid	FP0GA3E6NKYp8OTD;

1.3
date	2022.05.16.19.20.04;	author adam;	state Exp;
branches;
next	1.2;
commitid	rW7fQbmwSCwvzjED;

1.2
date	2022.03.05.11.23.11;	author wiz;	state Exp;
branches;
next	1.1;
commitid	Tnx7ZPSm6foyf1vD;

1.1
date	2022.02.23.11.32.52;	author wiz;	state Exp;
branches;
next	;
commitid	hcQCVvgHShhVCJtD;


desc
@@


1.29
log
@Forget Python 3.10
@
text
@# $NetBSD: Makefile,v 1.28 2026/08/02 11:30:29 adam Exp $

DISTNAME=	libcst-1.9.0
PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
CATEGORIES=	lang python
MASTER_SITES=	${MASTER_SITE_PYPI:=l/libcst/}

MAINTAINER=	pkgsrc-users@@NetBSD.org
HOMEPAGE=	https://github.com/Instagram/LibCST
COMMENT=	Concrete syntax tree with AST-like properties for Python
LICENSE=	mit

TOOL_DEPENDS+=	${PYPKGPREFIX}-setuptools>=78:../../devel/py-setuptools
TOOL_DEPENDS+=	${PYPKGPREFIX}-setuptools-rust>=1.0.0:../../devel/py-setuptools-rust
TOOL_DEPENDS+=	${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
DEPENDS+=	${PYPKGPREFIX}-yaml>=6.0.3:../../textproc/py-yaml
TEST_DEPENDS+=	${PYPKGPREFIX}-hypothesmith>=0.0.4:../../devel/py-hypothesmith

USE_LANGUAGES=	c c++	# Rust, but needs toolchain for linking

CARGO_WRKSRC=	${WRKSRC}/native
MAKE_ENV+=	CARGO_NET_OFFLINE=true

INSTALLATION_DIRS=	bin ${PKGMANDIR}/man1

PYTHON_VERSIONS_INCOMPATIBLE=	311

pre-build:
	cd ${WRKSRC}/.cargo && ${LN} -f -s ../native/.cargo/config config

.include "cargo-depends.mk"

.include "../../lang/python/wheel.mk"
.include "../../lang/rust/cargo.mk"
.include "../../mk/bsd.pkg.mk"
@


1.28
log
@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
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.27 2026/06/28 15:41:26 wiz Exp $
d26 1
a26 1
PYTHON_VERSIONS_INCOMPATIBLE=	310 311
@


1.27
log
@*: limit Python versions due to py-numpy dropping Python 3.11 support
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.26 2025/11/07 10:28:09 adam Exp $
d3 1
a3 1
DISTNAME=	libcst-1.8.6
d16 1
a16 1
DEPENDS+=	${PYPKGPREFIX}-yaml>=5.2:../../textproc/py-yaml
@


1.26
log
@py-libcst: updated to 1.8.6

1.8.6

* Update pyproject.toml for 3.14t
* Update PyO3 to 0.26
* Make CodemodCommand's supported_transforms order deterministic
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.25 2025/10/09 07:57:44 wiz Exp $
d26 1
a26 1
PYTHON_VERSIONS_INCOMPATIBLE=	310
@


1.25
log
@*: remove reference to (removed) Python 3.9
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.24 2025/10/03 05:56:32 adam Exp $
d3 1
a3 1
DISTNAME=	libcst-1.8.5
@


1.24
log
@py-libcst: updated to 1.8.5

1.8.5 - 2025-09-25
* fixed: circular import error
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.23 2025/09/22 17:54:31 adam Exp $
d26 1
a26 1
PYTHON_VERSIONS_INCOMPATIBLE=	39 310
@


1.23
log
@py-libcst: updated to 1.8.4

1.8.4 - 2025-09-09

* fixed: generate Attribute nodes when applying type annotations
* added: Support parsing of t-strings
* added: add support for PEP758

1.8.3 - 2025-08-29
* removed: remove entry points to pure parser
* fixed: fixes match statements to work with PositionProvider
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.22 2025/07/05 11:44:07 wiz Exp $
d3 1
a3 1
DISTNAME=	libcst-1.8.4
@


1.22
log
@*: some more recursive Python restrictions on Python 3.11+

Reported in SmartOS bulk build
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.21 2025/06/30 19:45:57 adam Exp $
d3 1
a3 1
DISTNAME=	libcst-1.8.2
@


1.21
log
@py-libcst: updated to 1.8.2

1.8.2
* fix(dependency): add back typing-extensions for 3.9
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.20 2025/06/11 05:43:58 adam Exp $
d26 2
a32 5
.include "../../lang/python/pyversion.mk"
.if ${PYTHON_VERSION} < 310
DEPENDS+=	${PYPKGPREFIX}-typing-extensions>0:../../devel/py-typing-extensions
.endif

@


1.20
log
@py-libcst: updated to 1.8.1

1.8.1 - 2025-06-10

Added
* add helper to convert nodes to matchers

Updated
* Avoid raising bare Exception
* Upgrade PyYAML-ft version and use new module name
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.19 2025/06/01 05:45:04 adam Exp $
d3 1
a3 1
DISTNAME=	libcst-1.8.1
d31 5
@


1.19
log
@py-libcst: updated to 1.8.0

1.8.0 - 2025-05-27

Added
* Allow configuring empty formatter lists in codemod CLI
* Publish several new binary wheels
  * macos intel
  * windows arm64
  * 3.13 CPython free-threaded
  * (only on [test.pypi.org](https://test.pypi.org/project/libcst/#history)) 3.14 and 3.14 CPython free-threaded
* Enable support for free-threaded CPython

Updated
* update pyo3 to 0.25
* Replace multiprocessing with ProcessPoolExecutor
* Support pipe syntax for Union types in codegen
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2025/04/12 19:34:56 adam Exp $
d3 1
a3 1
DISTNAME=	libcst-1.8.0
@


1.18
log
@py-libcst: updated to 1.7.0

1.7.0 - 2025-03-13

Added
* add free-threaded CI

Updated
* Remove dependency on `chic` and upgrade `annotate-snippets`
* Update for Pyo3 0.23
* Bump PyO3 to 0.23.5
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2025/01/14 08:40:57 adam Exp $
d3 1
a3 1
DISTNAME=	libcst-1.7.0
@


1.17
log
@py-libcst: updated to 1.6.0

1.6.0 - 2024-01-09

Fixed

* rename: store state in scratch
* rename: handle imports via a parent module
* rename: Fix imports with aliases
* rename: don't leave trailing commas
* rename: don't eat commas unnecessarily
* rename: fix renaming toplevel names
* bump 3.12 to 3.13 in readme

Added

* Add codemod to convert `typing.Union` to `|`
* Add codemod to fix variadic callable annotations
* Add codemod to rename typing aliases of builtins
* Add typing classifier to pyproject.toml and badge to README
* Expose TypeAlias and TypeVar related structs in rust library

Updated
* Upgrade pyo3 to 0.22
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2024/11/20 09:34:59 adam Exp $
d3 1
a3 1
DISTNAME=	libcst-1.6.0
d13 1
a13 1
TOOL_DEPENDS+=	${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
@


1.16
log
@py-libcst: updated to 1.5.1

1.5.1 - 2024-11-18

Added

* build wheels for musllinux
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2024/11/11 07:28:37 wiz Exp $
d3 1
a3 1
DISTNAME=	libcst-1.5.1
@


1.15
log
@py-*: remove unused tool dependency

py-setuptools includes the py-wheel functionality nowadays
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2024/10/11 12:40:04 adam Exp $
d3 1
a3 1
DISTNAME=	libcst-1.5.0
@


1.14
log
@py-libcst: updated to 1.5.0

1.5.0

Added

FullyQualifiedNameProvider: Optionally consider pyproject.toml files when determining a file's module name and package
Add validation for If node
include python 3.13 in build

Fixed

fix various Match statement visitation errors
Mention codemod -x flag in docs
Clear warnings for each file in codemod cli
Typo fix in codemods_tutorial.rst (trivial)
fix certain matchers breaking under multiprocessing by initializing them late

Updated

make libcst_native::tokenizer public
Use license instead of license-file
Drop codecov from CI and readme
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2024/05/24 15:15:44 adam Exp $
a15 1
TOOL_DEPENDS+=	${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
@


1.13
log
@py-libcst: updated to 1.4.0

1.4.0 - 2024-05-22

Fixed
* Fix Literal parse error in RemoveImportsVisitor
* Don't reset context.scratch between files
* Various documentation fixes
 * Typo fix FullRepoManager
 * Fix tiny typo in `docs/source/metadata.rst`
 * Fix typo in `docs/source/scope_tutorial.ipynb`
 * Update CONTRIBUTING.md

Added

* Add helper functions for common ways of filtering nodes
* Dump CST to .dot (graphviz) files
* Implement PEP-696
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2024/04/09 16:41:06 adam Exp $
d3 1
a3 1
DISTNAME=	libcst-1.4.0
a21 2
PYTHON_VERSIONS_INCOMPATIBLE=	27

@


1.12
log
@py-libcst: updated to 1.3.1

1.3.1 - 2024-04-03

Fixed
* ImportError due to missing `mypy_extensions` dependency

1.3.0 - 2024-04-03

Updated
* Removed dependencies on `typing_extensions` and `typing_inspect`
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2024/02/20 04:55:23 adam Exp $
d3 1
a3 1
DISTNAME=	libcst-1.3.1
@


1.11
log
@py-libcst: updated to 1.2.0

1.2.0 - 2024-02-19

Updated
* Support running LibCST on Python 3.12 and drop support for running it on 3.8
 * remove 3.8 support
 * Remove reference to distutils
 * Update pyproject.toml for Python 3.12 support

Added
* Allow `Element::codegen` to be used by external users

Fixed
* Fix parsing list matchers without explicit brackets
* installing rustc/cargo for mybinder demo
* fix filepathprovider generic type
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2023/12/13 17:39:07 schmonz Exp $
d3 1
a3 1
DISTNAME=	libcst-1.2.0
a16 2
DEPENDS+=	${PYPKGPREFIX}-typing-extensions>=3.7.4.2:../../devel/py-typing-extensions
DEPENDS+=	${PYPKGPREFIX}-typing-inspect>=0.4.0:../../devel/py-typing-inspect
a31 2
#CHECK_WRKREF_SKIP+=	${PYSITELIB}/libcst/native.so

@


1.10
log
@cargo.mk: centralize Darwin -install_name workaround.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2023/10/07 20:14:31 adam Exp $
d3 1
a3 1
DISTNAME=	libcst-1.1.0
d13 1
d16 1
d20 1
d34 1
a34 1
CHECK_WRKREF_SKIP+=	${PYSITELIB}/libcst/native.so
d38 1
a38 1
.include "../../lang/python/egg.mk"
@


1.9
log
@py-libcst: updated to 1.1.0

1.1.0 - 2023-10-05

Added
* PEP 695 support
  * parser: PEP 695 - Type Parameter Syntax
  * Scope provider: support for type annotations
* PEP 701 support
  * parser: support arbitrarily nested f-strings
  * parser: Parse multiline expressions in f-strings
* parser: Support files with mixed newlines
* [libcst](https://crates.io/crates/libcst) is now published to crates.io

Fixed
* codemod/ApplyTypeAnnotationsVisitor: Do not annotate the same variable multiple times
* parser: Don't swallow trailing whitespace
* codemod/rename: Avoid duplicating import statements when the module name doesn't change

Updated
* cli: Don't gather dirs ending .py
* drop support for Python 3.7
* A few parser performance improvements:
  * Switch to using thread_local regular expressions to stop mutext contention
  * Remove need for regex in TextPosition::matches
  * Remove Regexes from whitespace parser
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2023/06/14 15:38:44 adam Exp $
a32 7
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "Darwin"
post-install:
	install_name_tool -id ${PREFIX}/${PYSITELIB}/libcst/native.so \
	${DESTDIR}${PREFIX}/${PYSITELIB}/libcst/native.so
.endif

@


1.8
log
@py-libcst: updated to 1.0.1

1.0.1

Fix type of evaluated_value on string to allow bytes
Fix Sentinal typo
Allow no whitespace after lambda body in certain cases
Fix whitespace, fstring, walrus related parse errors
Codemod CLI: Print diff only when there is a change
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2023/06/06 12:41:45 riastradh Exp $
d3 1
a3 1
DISTNAME=	libcst-1.0.1
@


1.7
log
@Mass-change BUILD_DEPENDS to TOOL_DEPENDS outside mk/.

Almost all uses, if not all of them, are wrong, according to the
semantics of BUILD_DEPENDS (packages built for target available for
use _by_ tools at build-time) and TOOL_DEPEPNDS (packages built for
host available for use _as_ tools at build-time).

No change to BUILD_DEPENDS as used correctly inside buildlink3.

As proposed on tech-pkg:
https://mail-index.netbsd.org/tech-pkg/2023/06/03/msg027632.html
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2023/05/30 09:28:00 adam Exp $
d3 1
a3 1
DISTNAME=	libcst-1.0.0
@


1.6
log
@py-libcst: updated to 1.0.0

v1.0.0

The first major release of LibCST is essentially the same as 0.4.10, but using the
newer, Rust-based parser implementation by default. The old, pure Python parser is
scheduled for removal in the next (non-patch) release. Until then, it is available with
the LIBCST_PARSER_TYPE environment variable set to pure.

Updated

Switch the default parser implementation to native


v0.4.10

Added

Add py3.11 classifier
Script to regenerate test fixtures, upgrade to Pyre 0.9.10
Allow FullyQualifiedNameProvider to work with absolute paths
Allow running codemods without configuring in YAML
Support PEP 604 in ApplyTypeAnnotationsVisitor

Fixed

fix PEP 604 union annotations in decorators
[AddImportsVisitor] Docstring Check Only for the Top Element of the Body
Fix 855 - fail to parse with statement
Add setuptools-rust to build requirements in setup.py
Relative imports from '' package are not allowed
Use subprocess.DEVNULL instead of opening os.devnull by hand
Ensure current Python interpreter is used for subprocesses
Fix ApplyTypeAnnotationsVisitor behavior on attribute assignments.
Fix spelling and grammar in some comments
skip escaped backslash in rf-string
relax validation rules on decorators
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2022/11/11 11:26:10 adam Exp $
d13 2
a14 2
BUILD_DEPENDS+=	${PYPKGPREFIX}-setuptools-rust>=1.0.0:../../devel/py-setuptools-rust
BUILD_DEPENDS+=	${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
@


1.5
log
@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
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2022/09/14 08:39:01 adam Exp $
d3 1
a3 1
DISTNAME=	libcst-0.4.9
@


1.4
log
@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
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2022/05/16 19:20:04 adam Exp $
d3 1
a3 1
DISTNAME=	libcst-0.4.7
@


1.3
log
@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
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2022/03/05 11:23:11 wiz Exp $
d3 1
a3 1
DISTNAME=	libcst-0.4.3
d19 1
a19 1
USE_LANGUAGES=		c c++	# Rust, but needs toolchain for linking
a25 6
# Depends on an unpublished crate. Can't use cargo.mk to fetch it.
RUST_PEG_REV=	4b146b4b78a80c07e43d7ace2d97f65bfde279a8
DISTFILES=	${DEFAULT_DISTFILES}
DISTFILES+=	rust-peg-${RUST_PEG_REV}.tar.gz
SITES.rust-peg-${RUST_PEG_REV}.tar.gz+=	-${MASTER_SITE_GITHUB:=kevinmehall/}rust-peg/archive/${RUST_PEG_REV}.tar.gz

a27 3
post-extract:
	${MV} ${WRKDIR}/rust-peg-${RUST_PEG_REV} ${WRKDIR}/rust-peg

@


1.2
log
@py-libcst: download peg-git during fetch stage, and provide it during build

avoids network access during build
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2022/02/23 11:32:52 wiz Exp $
d3 1
a3 1
DISTNAME=	libcst-0.4.1
d19 2
d23 2
a24 3
.include "cargo-depends.mk"
# for updating cargo-depends, uncomment the next line since Cargo.lock lives there
#WRKSRC=		${WRKDIR}/${DISTNAME}/native
a31 1
USE_LANGUAGES=		c c++   # Rust, but needs toolchain for linking
d35 4
a38 1
	mv ${WRKDIR}/rust-peg* ${WRKDIR}/rust-peg
d42 9
@


1.1
log
@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.
@
text
@d1 1
a1 1
# $NetBSD$
d25 12
@

