InfoTracker 0.2.4__tar.gz → 0.2.6__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.
Files changed (23) hide show
  1. {infotracker-0.2.4 → infotracker-0.2.6}/PKG-INFO +1 -1
  2. {infotracker-0.2.4 → infotracker-0.2.6}/pyproject.toml +5 -3
  3. {infotracker-0.2.4 → infotracker-0.2.6}/src/infotracker/config.py +22 -4
  4. infotracker-0.2.6/test_impact_out.py +0 -0
  5. infotracker-0.2.6/test_implementation.py +0 -0
  6. infotracker-0.2.6/test_insert_exec.py +0 -0
  7. infotracker-0.2.6/test_preprocessing.py +0 -0
  8. infotracker-0.2.6/verify_implementation.py +0 -0
  9. {infotracker-0.2.4 → infotracker-0.2.6}/.gitignore +0 -0
  10. {infotracker-0.2.4 → infotracker-0.2.6}/MANIFEST.in +0 -0
  11. {infotracker-0.2.4 → infotracker-0.2.6}/README.md +0 -0
  12. {infotracker-0.2.4 → infotracker-0.2.6}/requirements.txt +0 -0
  13. {infotracker-0.2.4 → infotracker-0.2.6}/src/infotracker/__init__.py +0 -0
  14. {infotracker-0.2.4 → infotracker-0.2.6}/src/infotracker/__main__.py +0 -0
  15. {infotracker-0.2.4 → infotracker-0.2.6}/src/infotracker/adapters.py +0 -0
  16. {infotracker-0.2.4 → infotracker-0.2.6}/src/infotracker/cli.py +0 -0
  17. {infotracker-0.2.4 → infotracker-0.2.6}/src/infotracker/diff.py +0 -0
  18. {infotracker-0.2.4 → infotracker-0.2.6}/src/infotracker/engine.py +0 -0
  19. {infotracker-0.2.4 → infotracker-0.2.6/src/infotracker}/infotracker.yml +0 -0
  20. {infotracker-0.2.4 → infotracker-0.2.6}/src/infotracker/lineage.py +0 -0
  21. {infotracker-0.2.4 → infotracker-0.2.6}/src/infotracker/models.py +0 -0
  22. {infotracker-0.2.4 → infotracker-0.2.6}/src/infotracker/openlineage_utils.py +0 -0
  23. {infotracker-0.2.4 → infotracker-0.2.6}/src/infotracker/parser.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: InfoTracker
3
- Version: 0.2.4
3
+ Version: 0.2.6
4
4
  Summary: Column-level SQL lineage, impact analysis, and breaking-change detection (MS SQL first)
5
5
  Project-URL: homepage, https://example.com/infotracker
6
6
  Project-URL: documentation, https://example.com/infotracker/docs
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "InfoTracker"
7
- version = "0.2.4"
7
+ version = "0.2.6"
8
8
  description = "Column-level SQL lineage, impact analysis, and breaking-change detection (MS SQL first)"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -38,20 +38,22 @@ infotracker = "infotracker.cli:entrypoint"
38
38
 
39
39
  [tool.hatch.build.targets.wheel]
40
40
  packages = ["src/infotracker"]
41
- only-include = ["src/infotracker"]
41
+ force-include = { "src/infotracker/infotracker.yml" = "infotracker/infotracker.yml" }
42
42
  exclude = [
43
43
  "src/infotracker/tests",
44
44
  "src/infotracker/**/tests",
45
45
  "src/**/tests",
46
46
  "tests/",
47
47
  "tests/**",
48
+ "docs", "examples",
49
+ ".github", ".git", ".venv", ".gitignore","ProjectDescription.md",
48
50
  ]
49
51
 
50
52
  [tool.hatch.build.targets.sdist]
51
53
  exclude = [
52
54
  "tests", "tests/**",
53
55
  "docs", "examples",
54
- ".github", ".git", ".venv", ".gitignore", "README.md","ProjectDescription.md",
56
+ ".github", ".git", ".venv", ".gitignore","ProjectDescription.md",
55
57
  ]
56
58
 
57
59
  [tool.ruff]
@@ -31,10 +31,28 @@ class RuntimeConfig:
31
31
  def load_config(path: Optional[Path]) -> RuntimeConfig:
32
32
  cfg = RuntimeConfig()
33
33
  if path is None:
34
- # Try repo root default
35
- default = Path("infotracker.yml")
36
- if default.exists():
37
- path = default
34
+ # Try package default first (works for installed packages)
35
+ try:
36
+ import importlib.resources
37
+ from . import __package__
38
+
39
+ if hasattr(importlib.resources, 'files'): # Python 3.9+
40
+ package_config = importlib.resources.files('infotracker') / 'infotracker.yml'
41
+ if package_config.is_file():
42
+ path = Path(str(package_config))
43
+ else: # Python 3.8 fallback
44
+ with importlib.resources.path('infotracker', 'infotracker.yml') as p:
45
+ if p.exists():
46
+ path = p
47
+ except (ImportError, AttributeError):
48
+ pass
49
+
50
+ # Fallback to current directory (development mode)
51
+ if path is None:
52
+ default = Path("infotracker.yml")
53
+ if default.exists():
54
+ path = default
55
+
38
56
  if path and path.exists():
39
57
  data = yaml.safe_load(path.read_text()) or {}
40
58
  for k, v in data.items():
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes