head 1.12; access; symbols pkgsrc-2026Q3:1.12.0.2 pkgsrc-2026Q3-base:1.12 pkgsrc-2026Q2:1.11.0.6 pkgsrc-2026Q2-base:1.11 pkgsrc-2026Q1:1.11.0.4 pkgsrc-2026Q1-base:1.11 pkgsrc-2025Q4:1.11.0.2 pkgsrc-2025Q4-base:1.11 pkgsrc-2025Q3:1.10.0.2 pkgsrc-2025Q3-base:1.10 pkgsrc-2025Q2:1.8.0.2 pkgsrc-2025Q2-base:1.8 pkgsrc-2025Q1:1.7.0.2 pkgsrc-2025Q1-base:1.7 pkgsrc-2024Q4:1.6.0.2 pkgsrc-2024Q4-base:1.6 pkgsrc-2024Q3:1.3.0.2 pkgsrc-2024Q3-base:1.3; locks; strict; comment @# @; 1.12 date 2026.07.13.19.24.28; author adam; state Exp; branches; next 1.11; commitid AGD6ICIDCHJZLwNG; 1.11 date 2025.09.26.07.38.41; author adam; state Exp; branches; next 1.10; commitid XxFUp58PZdzObccG; 1.10 date 2025.08.11.12.04.35; author adam; state Exp; branches; next 1.9; commitid D9lX6rePp3BI8j6G; 1.9 date 2025.07.21.06.49.59; author adam; state Exp; branches; next 1.8; commitid IoC8fHGH0wdw4A3G; 1.8 date 2025.04.14.12.56.30; author adam; state Exp; branches; next 1.7; commitid FCrXmk4Qr19Kf1RF; 1.7 date 2025.01.20.08.23.35; author adam; state Exp; branches; next 1.6; commitid ptMauU84S1rsrcGF; 1.6 date 2024.11.25.11.28.24; author adam; state Exp; branches; next 1.5; commitid Cnd0NbXLgXArg1zF; 1.5 date 2024.11.11.07.29.10; author wiz; state Exp; branches; next 1.4; commitid 1fBDq3LwS98NncxF; 1.4 date 2024.10.09.08.08.26; author adam; state Exp; branches; next 1.3; commitid ho7iW2d4uB7xFXsF; 1.3 date 2024.09.19.06.39.47; author wiz; state Exp; branches; next 1.2; commitid WGMAUoT2DYTWOnqF; 1.2 date 2024.09.15.08.06.10; author adam; state Exp; branches; next 1.1; commitid 0wdc4fvRTcFyqSpF; 1.1 date 2024.08.12.11.58.49; author wiz; state Exp; branches; next ; commitid xxb9ZcX3fdIdOwlF; desc @@ 1.12 log @py-tree-sitter: updated to 0.26.0 0.26.0 Additions: Point.edit() Point.__repr__() QueryCursor.set_containing_byte_range() QueryCursor.set_containing_point_range() Range.edit() tree_sitter.__version__ Removals: Language.version: use Language.abi_version ! Language.query(source): use Query(language, source) ! Parser.timeout_micros: use the progress_callback in parse() ! QueryCursor.timeout_micros: use the progress_callback in matches() or captures() ! Changes: Point is a tuple subclass rather than a namedtuple object @ text @# $NetBSD: Makefile,v 1.11 2025/09/26 07:38:41 adam Exp $ DISTNAME= tree_sitter-0.26.0 PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/_/-/} CATEGORIES= textproc python MASTER_SITES= ${MASTER_SITE_PYPI:=t/tree-sitter/} # distfile name conflicts with textproc/tree-sitter DIST_SUBDIR= py-tree-sitter MAINTAINER= kamelderouiche@@yahoo.com HOMEPAGE= https://github.com/tree-sitter/py-tree-sitter COMMENT= Python bindings to the Tree-sitter parsing library LICENSE= mit TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools>=78:../../devel/py-setuptools .include "../../lang/python/wheel.mk" .include "../../mk/bsd.pkg.mk" @ 1.11 log @py-tree-sitter: updated to 0.25.2 0.25.2 ci: bump actions/download-artifact from 4 to 5 in the actions group ci: bump actions/checkout from 4 to 5 in the actions group build: bump tree_sitter/core from 3624198 to 629093d build: properly detect MSVC compiler ci: bump actions/upload-pages-artifact from 3 to 4 in the actions group ci: bump actions/setup-python from 5 to 6 in the actions group build: bump tree_sitter/core from 629093d to a467ea8 fix(parser): fix memleak of source_view build: bump tree_sitter/core from a467ea8 to da6fe9b @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.10 2025/08/11 12:04:35 adam Exp $ d3 2 a4 2 DISTNAME= tree-sitter-0.25.2 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} @ 1.10 log @py-tree-sitter: updated to 0.25.1 0.25.1 fix(docs): QueryCursor page was missing from index fix: pattern_index parameter to generic predicates is incorrect docs(readme): update query usage examples docs(query_cursor): fix missing space in hint ci: bump pypa/cibuildwheel from 3.0 to 3.1 in the actions group build: work around GCC optimizer bug for aarch64 build: bump tree_sitter/core from 58edb3a to 3624198 chore: release 0.25.1 ci(pypi): disable free-threaded builds @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.9 2025/07/21 06:49:59 adam Exp $ d3 1 a3 1 DISTNAME= tree-sitter-0.25.1 @ 1.9 log @py-tree-sitter: updated to 0.25.0 0.25.0 Additions: Language.name (getter) Language.abi_version (getter) Language.semantic_version (getter) Language.supertypes (getter) Language.subtypes(supertype) Node.first_child_for_byte(byte) Node.first_named_child_for_byte(byte) Query.string_count (getter) Query.capture_name(index) Query.capture_quantifier(pattern_index, capture_index) Query.string_value(index) QueryCursor(query) QueryCursor.match_limit (getter, setter, deleter) QueryCursor.timeout_micros (getter, setter, deleter) QueryCursor.did_exceed_match_limit (getter) QueryCursor.set_max_start_depth(depth) QueryCursor.set_byte_range(start, end) QueryCursor.set_point_range(start, end) QueryCursor.captures(node, predicate, progress_callback) QueryCursor.matches(node, predicate, progress_callback) LookaheadIterator.names() LookaheadIterator.symbols() Deprecations: Language.version: use Language.abi_version Language.query(source): use Query(language, source) Parser.timeout_micros: use the progress_callback in parse() QueryCursor.timeout_micros: use the progress_callback in matches() or captures() Removals: Node.child_containing_descendant(descendant): use Node.child_with_descendant(descendant) ! Query.match_limit: moved to QueryCursor.match_limit ! Query.set_match_limit(limit): moved to QueryCursor.match_limit ! Query.did_exceed_match_limit: moved to QueryCursor.did_exceed_match_limit ! Query.timeout_micros: moved to QueryCursor.timeout_micros ! Query.set_timeout_micros(timeout): moved to QueryCursor.timeout_micros ! Query.set_max_start_depth(depth): moved to QueryCursor.set_max_start_depth(depth) ! Query.set_byte_range(byte_range): moved to QueryCursor.set_byte_range(start, end) ! Query.set_point_range(point_range): moved to QueryCursor.set_point_range(start, end) ! Query.captures(node, predicate): moved to QueryCursor.captures(node, predicate, progress_callback) ! Query.matches(node, predicate): moved to QueryCursor.matches(node, predicate, progress_callback) ! LookaheadIterator.iter_names(): use LookaheadIterator.names() ! Changes: Parser.parse(): encoding parameter also accepts "utf16le" & "utf16be" Parser.parse(): added progress_callback parameter LookaheadIterator.__next__(): yields tuple[int, str] ! LookaheadIterator.reset(state, language): renamed from reset_state ! @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.8 2025/04/14 12:56:30 adam Exp $ d3 1 a3 1 DISTNAME= tree-sitter-0.25.0 @ 1.8 log @Fix PLIST after py-setuptools update; bump depends and revision @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.7 2025/01/20 08:23:35 adam Exp $ d3 1 a3 1 DISTNAME= tree-sitter-0.24.0 a4 1 PKGREVISION= 1 @ 1.7 log @py-tree-sitter: updated to 0.24.0 0.24.0 Additions: Language.copy() Language.node_kind_is_supertype(id) Language.__copy__() LogType (enum) Node.child_with_descendant(descendant) Node.field_name_for_named_child(descendant) Parser.print_dot_graphs(file) Parser.logger (getter + setter) Tree.copy() Tree.print_dot_graph(file) Tree.__copy__() Deprecations: Language(ptr: int) Node.child_containing_descendant(descendant): use Node.child_with_descendant(descendant) @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.6 2024/11/25 11:28:24 adam Exp $ d5 1 d16 1 a16 1 TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools @ 1.6 log @py-tree-sitter: updated to 0.23.2 0.23.2 Update documentation on Query.captures() build: bump tree_sitter/core from 46bdc14 to f629fd4 fix(query): iterate over captures for the shortest size, not longest @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.5 2024/11/11 07:29:10 wiz Exp $ d3 1 a3 1 DISTNAME= tree-sitter-0.23.2 @ 1.5 log @py-*: remove unused tool dependency py-setuptools includes the py-wheel functionality nowadays @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.4 2024/10/09 08:08:26 adam Exp $ d3 1 a3 1 DISTNAME= tree-sitter-0.23.1 @ 1.4 log @py-tree-sitter: updated to 0.23.1 0.23.1 build: bump tree_sitter/core from 12fb318 to ee06325 ci: bump pypa/cibuildwheel from 2.20 to 2.21 in the actions group @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.3 2024/09/19 06:39:47 wiz Exp $ a15 1 TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel @ 1.3 log @py-tree-sitter: distfile name conflicts with tree-sitter Set DIST_SUBDIR. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.2 2024/09/15 08:06:10 adam Exp $ d3 1 a3 1 DISTNAME= tree-sitter-0.23.0 @ 1.2 log @py-tree-sitter: updated to 0.23.0 0.23.0 Additions: Node.child_containing_descendant(descendant) Tree.language (getter) Query.pattern_count (getter) Query.capture_count (getter) Query.match_limit (getter) Query.did_exceed_match_limit (getter) Query.set_match_limit(match_limit): returns self Query.set_max_start_depth(max_start_depth): returns self Query.set_byte_range(byte_range): returns self Query.set_point_range(point_range): returns self Query.disable_pattern(index): returns self Query.disable_capture(capture): returns self Query.pattern_settings(index) Query.pattern_assertions(index) Query.start_byte_for_pattern(index) Query.end_byte_for_pattern(index) Query.is_pattern_rooted(index) Query.is_pattern_non_local(index) Query.is_pattern_guaranteed_at_step(offset) QueryError (exception class) QueryPredicate (typing protocol) Removals: Parser.set_language(language) Parser.set_included_ranges(ranges) Parser.set_timeout_micros(timeout) Node.sexp() Tree.text() TreeCursor.goto_first_child_for_point(row, column) LookaheadIterator.reset(language, state) Changes: Language() accepts a capsule as an argument. Parser.parse(...) no longer accepts a keep_text argument. Query.captures(...) Range arguments were removed (use set_* instead). Added an argument for custom query predicates. Return type was changed to dict[str, list[Node]]. Query.matches(...) Range arguments were removed (use set_* instead). Added an argument for custom query predicates. Return type was changed to list[tuple[int, dict[str, list[Node]]]]. TreeCursor.goto_first_child_for_byte(byte) returns int | None. TreeCursor.goto_first_child_for_point(point) returns int | None. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.1 2024/08/12 11:58:49 wiz Exp $ d7 2 @ 1.1 log @textproc/py-tree-sitter: import py-tree-sitter-0.22.3 This module provides Python bindings to the tree-sitter parsing library @ text @d1 1 a1 1 # $NetBSD$ d3 1 a3 1 DISTNAME= tree-sitter-0.22.3 a15 2 PYTHON_VERSIONS_INCOMPATIBLE+= 27 @