commit:     1a2cdafc550a37d6736cfed4e7e2e5d450449f31
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 12 16:01:07 2025 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Thu Jun 12 16:01:07 2025 +0000
URL:        
https://gitweb.gentoo.org/proj/pkgcore/pkgcheck.git/commit/?id=1a2cdafc

pyproject: cap tree-sitter deps

If we leave it to pypi python packages, they can get out of sync, and
become not complient one to another (like tree-sitter-bash-0.25.0 and
tree-sitter-0.24.0). It doesn't occur in ::gentoo, because we source
compile tree-sitter-0.24.0 with dev-libs/tree-sitter-0.25.0 and it works.

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 pyproject.toml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/pyproject.toml b/pyproject.toml
index 49788d4a..03b496ff 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -6,8 +6,8 @@ requires = [
        "lazy-object-proxy",
        "lxml",
        "pathspec",
-       "tree-sitter>=0.23.0",
-       "tree-sitter-bash>=0.21.0",
+       "tree-sitter~=0.24.0",
+       "tree-sitter-bash~=0.23.0",
        "snakeoil~=0.10.11",
        "pkgcore~=0.12.30",
 ]
@@ -45,8 +45,8 @@ dependencies = [
        "lazy-object-proxy",
        "lxml",
        "pathspec",
-       "tree-sitter>=0.23.0",
-       "tree-sitter-bash>=0.21.0",
+       "tree-sitter~=0.24.0",
+       "tree-sitter-bash~=0.23.0",
        "snakeoil~=0.10.11",
        "pkgcore~=0.12.30",
 ]

Reply via email to