lscope 0.1.1__tar.gz → 0.1.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lscope
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: ast-grep using ladybug
5
5
  Requires-Python: >=3.14
6
6
  Description-Content-Type: text/markdown
@@ -8,7 +8,7 @@ Requires-Dist: icebug>=12.9
8
8
  Requires-Dist: ladybug>=0.18.0
9
9
  Requires-Dist: pyarrow>=24.0.0
10
10
  Requires-Dist: tqdm>=4.68.3
11
- Requires-Dist: tree-sitter>=0.25.2
11
+ Requires-Dist: tree-sitter==0.25.2
12
12
  Requires-Dist: tree-sitter-c-sharp>=0.23.1
13
13
  Requires-Dist: tree-sitter-cpp>=0.23.4
14
14
  Requires-Dist: tree-sitter-go>=0.23.4
@@ -0,0 +1,10 @@
1
+ """Allow running lscope as ``python -m lscope``."""
2
+ import sys
3
+ import traceback
4
+ from lscope.main import main
5
+
6
+ try:
7
+ sys.exit(main())
8
+ except Exception:
9
+ traceback.print_exc()
10
+ sys.exit(1)
@@ -783,7 +783,7 @@ def find_functions(conn, pattern: str, languages: list[str] | None = None):
783
783
  {"pattern": pattern},
784
784
  )
785
785
  )
786
- return pl.concat(frames, how="vertical")
786
+ return pa.concat_tables(frames)
787
787
 
788
788
 
789
789
  def find_callers(conn, func_name: str):
@@ -809,7 +809,7 @@ def find_callers(conn, func_name: str):
809
809
  {"func_name": func_name},
810
810
  )
811
811
  )
812
- return pl.concat(frames, how="vertical")
812
+ return pa.concat_tables(frames)
813
813
 
814
814
 
815
815
  # --------------------------------------------------------------------------- #
@@ -1042,16 +1042,23 @@ def main(argv: list[str] | None = None) -> int:
1042
1042
  args = parser.parse_args(argv)
1043
1043
  action = _resolve_actions(args)
1044
1044
 
1045
- if action == "index":
1046
- return run_index(args)
1047
- if action == "find-functions":
1048
- return run_find_functions(args)
1049
- if action == "find-callers":
1050
- return run_find_callers(args)
1051
- if action == "schema-only":
1052
- return run_schema_only(args)
1053
- parser.error(f"Unhandled action {action!r}")
1054
- return 2 # unreachable
1045
+ try:
1046
+ if action == "index":
1047
+ return run_index(args)
1048
+ if action == "find-functions":
1049
+ return run_find_functions(args)
1050
+ if action == "find-callers":
1051
+ return run_find_callers(args)
1052
+ if action == "schema-only":
1053
+ return run_schema_only(args)
1054
+ parser.error(f"Unhandled action {action!r}")
1055
+ return 2 # unreachable
1056
+ except SystemExit:
1057
+ raise
1058
+ except Exception:
1059
+ import traceback
1060
+ traceback.print_exc()
1061
+ return 1
1055
1062
 
1056
1063
 
1057
1064
  if __name__ == "__main__":
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lscope
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: ast-grep using ladybug
5
5
  Requires-Python: >=3.14
6
6
  Description-Content-Type: text/markdown
@@ -8,7 +8,7 @@ Requires-Dist: icebug>=12.9
8
8
  Requires-Dist: ladybug>=0.18.0
9
9
  Requires-Dist: pyarrow>=24.0.0
10
10
  Requires-Dist: tqdm>=4.68.3
11
- Requires-Dist: tree-sitter>=0.25.2
11
+ Requires-Dist: tree-sitter==0.25.2
12
12
  Requires-Dist: tree-sitter-c-sharp>=0.23.1
13
13
  Requires-Dist: tree-sitter-cpp>=0.23.4
14
14
  Requires-Dist: tree-sitter-go>=0.23.4
@@ -2,7 +2,7 @@ icebug>=12.9
2
2
  ladybug>=0.18.0
3
3
  pyarrow>=24.0.0
4
4
  tqdm>=4.68.3
5
- tree-sitter>=0.25.2
5
+ tree-sitter==0.25.2
6
6
  tree-sitter-c-sharp>=0.23.1
7
7
  tree-sitter-cpp>=0.23.4
8
8
  tree-sitter-go>=0.23.4
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "lscope"
3
- version = "0.1.1"
3
+ version = "0.1.2"
4
4
  description = "ast-grep using ladybug"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.14"
@@ -9,7 +9,7 @@ dependencies = [
9
9
  "ladybug>=0.18.0",
10
10
  "pyarrow>=24.0.0",
11
11
  "tqdm>=4.68.3",
12
- "tree-sitter>=0.25.2",
12
+ "tree-sitter==0.25.2",
13
13
  "tree-sitter-c-sharp>=0.23.1",
14
14
  "tree-sitter-cpp>=0.23.4",
15
15
  "tree-sitter-go>=0.23.4",
@@ -1,5 +0,0 @@
1
- """Allow running lscope as ``python -m lscope``."""
2
- import sys
3
- from lscope.main import main
4
-
5
- sys.exit(main())
File without changes
File without changes
File without changes
File without changes
File without changes