ph-code-graph 0.4.0__tar.gz → 0.5.0__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.5
2
2
  Name: ph-code-graph
3
- Version: 0.4.0
3
+ Version: 0.5.0
4
4
  Summary: pH plugin: `code_index` and `code_graph`, a Python-native tree-sitter code graph with line-accurate answers.
5
5
  Project-URL: Homepage, https://github.com/chastabor/pH
6
6
  Project-URL: Repository, https://github.com/chastabor/pH
@@ -21,7 +21,7 @@ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
21
21
  Classifier: Topic :: Software Development
22
22
  Classifier: Typing :: Typed
23
23
  Requires-Python: >=3.12
24
- Requires-Dist: ph-core==0.4.0
24
+ Requires-Dist: ph-core==0.5.0
25
25
  Requires-Dist: tree-sitter-language-pack>=1.16
26
26
  Requires-Dist: tree-sitter>=0.25
27
27
  Description-Content-Type: text/markdown
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "ph-code-graph"
7
- version = "0.4.0"
7
+ version = "0.5.0"
8
8
  description = "pH plugin: `code_index` and `code_graph`, a Python-native tree-sitter code graph with line-accurate answers."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.12"
@@ -29,7 +29,7 @@ classifiers = [
29
29
  # in (371 available, the rest fetched on demand — which this row never does
30
30
  # implicitly; see `_extract.indexable`). No Rust toolchain, no Node, no
31
31
  # submodule: the graph itself is stdlib `sqlite3`.
32
- dependencies = ["ph-core==0.4.0", "tree-sitter>=0.25", "tree-sitter-language-pack>=1.16"]
32
+ dependencies = ["ph-core==0.5.0", "tree-sitter>=0.25", "tree-sitter-language-pack>=1.16"]
33
33
 
34
34
  [project.urls]
35
35
  Homepage = "https://github.com/chastabor/pH"
@@ -493,7 +493,7 @@ def offer_skills(ctx: Context) -> None:
493
493
  contribute_item(ctx, SKILLS, skill, label=f"skill({skill.name})")
494
494
 
495
495
 
496
- @plugin("code-graph", inject=[TOOLS, FS], config=Config)
496
+ @plugin("code-graph", affects="environment", inject=[TOOLS, FS], config=Config)
497
497
  async def apply(ctx: Context, config: Config) -> None:
498
498
  """Mount the seam and register both tools."""
499
499
  for module in ("tree_sitter", "tree_sitter_language_pack"):
@@ -903,7 +903,7 @@ async def test_every_row_in_the_rlm_indexed_profile_activates(
903
903
  the `PROFILES` entry and cannot test it — nothing there depends on the two
904
904
  indexing distributions, which is the point of discovering them as bundles.
905
905
  """
906
- from ph.cordis import Context, Profile, load_profile_documents
906
+ from ph.cordis import Context, Profile, ProfileDocument, load_profile_documents
907
907
  from ph_app.profiles import resolve_profile
908
908
 
909
909
  # `PH_HOME`/`PH_CACHE` are not pinned here: the suite's autouse
@@ -911,7 +911,7 @@ async def test_every_row_in_the_rlm_indexed_profile_activates(
911
911
  # the first comes to be believed and bypassed.
912
912
  documents = load_profile_documents(resolve_profile("rlm-indexed"))
913
913
  documents.append(
914
- (
914
+ ProfileDocument(
915
915
  "test-overlay",
916
916
  [
917
917
  {"id": "fs", "config": {"root": str(tmp_path)}},
File without changes
File without changes
File without changes