git2report 0.1.2__tar.gz → 0.1.3__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 (39) hide show
  1. {git2report-0.1.2 → git2report-0.1.3}/PKG-INFO +1 -1
  2. git2report-0.1.3/git2report/__init__.py +24 -0
  3. git2report-0.1.3/git2report/__main__.py +9 -0
  4. {git2report-0.1.2 → git2report-0.1.3}/git2report/extractor.py +3 -0
  5. {git2report-0.1.2 → git2report-0.1.3}/git2report.egg-info/PKG-INFO +1 -1
  6. {git2report-0.1.2 → git2report-0.1.3}/pyproject.toml +1 -1
  7. git2report-0.1.2/git2report/__init__.py +0 -2
  8. git2report-0.1.2/git2report/__main__.py +0 -4
  9. {git2report-0.1.2 → git2report-0.1.3}/LICENSE +0 -0
  10. {git2report-0.1.2 → git2report-0.1.3}/README.md +0 -0
  11. {git2report-0.1.2 → git2report-0.1.3}/git2report/branches.py +0 -0
  12. {git2report-0.1.2 → git2report-0.1.3}/git2report/cache.py +0 -0
  13. {git2report-0.1.2 → git2report-0.1.3}/git2report/charts.py +0 -0
  14. {git2report-0.1.2 → git2report-0.1.3}/git2report/chunker.py +0 -0
  15. {git2report-0.1.2 → git2report-0.1.3}/git2report/cli.py +0 -0
  16. {git2report-0.1.2 → git2report-0.1.3}/git2report/clustering.py +0 -0
  17. {git2report-0.1.2 → git2report-0.1.3}/git2report/config.py +0 -0
  18. {git2report-0.1.2 → git2report-0.1.3}/git2report/eval_tools.py +0 -0
  19. {git2report-0.1.2 → git2report-0.1.3}/git2report/filtering.py +0 -0
  20. {git2report-0.1.2 → git2report-0.1.3}/git2report/metrics.py +0 -0
  21. {git2report-0.1.2 → git2report-0.1.3}/git2report/models.py +0 -0
  22. {git2report-0.1.2 → git2report-0.1.3}/git2report/pipeline.py +0 -0
  23. {git2report-0.1.2 → git2report-0.1.3}/git2report/report.py +0 -0
  24. {git2report-0.1.2 → git2report-0.1.3}/git2report/rules.py +0 -0
  25. {git2report-0.1.2 → git2report-0.1.3}/git2report/summarizer.py +0 -0
  26. {git2report-0.1.2 → git2report-0.1.3}/git2report/timeutil.py +0 -0
  27. {git2report-0.1.2 → git2report-0.1.3}/git2report/web.py +0 -0
  28. {git2report-0.1.2 → git2report-0.1.3}/git2report.egg-info/SOURCES.txt +0 -0
  29. {git2report-0.1.2 → git2report-0.1.3}/git2report.egg-info/dependency_links.txt +0 -0
  30. {git2report-0.1.2 → git2report-0.1.3}/git2report.egg-info/entry_points.txt +0 -0
  31. {git2report-0.1.2 → git2report-0.1.3}/git2report.egg-info/requires.txt +0 -0
  32. {git2report-0.1.2 → git2report-0.1.3}/git2report.egg-info/top_level.txt +0 -0
  33. {git2report-0.1.2 → git2report-0.1.3}/setup.cfg +0 -0
  34. {git2report-0.1.2 → git2report-0.1.3}/tests/test_chunker.py +0 -0
  35. {git2report-0.1.2 → git2report-0.1.3}/tests/test_end_to_end.py +0 -0
  36. {git2report-0.1.2 → git2report-0.1.3}/tests/test_eval_tools.py +0 -0
  37. {git2report-0.1.2 → git2report-0.1.3}/tests/test_filter_cluster_metrics.py +0 -0
  38. {git2report-0.1.2 → git2report-0.1.3}/tests/test_rules.py +0 -0
  39. {git2report-0.1.2 → git2report-0.1.3}/tests/test_summarizer.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: git2report
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: Turn Git history into a plain-language, evidence-linked progress report with visual charts and Terminal Web Studio.
5
5
  Author-email: Vijay <vijaykd04@users.noreply.github.com>
6
6
  License: MIT
@@ -0,0 +1,24 @@
1
+ """Git2Report: turn Git history into a plain-language, evidence-linked progress report."""
2
+ import os
3
+ import shutil
4
+ from pathlib import Path
5
+
6
+ # Prevent GitPython from crashing on import when git is missing from system PATH
7
+ os.environ.setdefault("GIT_PYTHON_REFRESH", "quiet")
8
+
9
+ # Auto-detect git executable if installed in standard Windows locations
10
+ if not shutil.which("git"):
11
+ for cand in [
12
+ r"C:\Program Files\Git\cmd\git.exe",
13
+ r"C:\Program Files\Git\bin\git.exe",
14
+ r"C:\Program Files (x86)\Git\cmd\git.exe",
15
+ str(Path.home() / r"AppData\Local\Programs\Git\cmd\git.exe"),
16
+ str(Path.home() / r"AppData\Local\Programs\Git\bin\git.exe"),
17
+ ]:
18
+ if Path(cand).exists():
19
+ os.environ["GIT_PYTHON_GIT_EXECUTABLE"] = cand
20
+ os.environ["PATH"] = str(Path(cand).parent) + os.pathsep + os.environ.get("PATH", "")
21
+ break
22
+
23
+ __version__ = "0.1.3"
24
+
@@ -0,0 +1,9 @@
1
+ import os
2
+ os.environ.setdefault("GIT_PYTHON_REFRESH", "quiet")
3
+
4
+ import git2report
5
+ from git2report.cli import app
6
+
7
+ if __name__ == "__main__":
8
+ app()
9
+
@@ -10,6 +10,9 @@ from git2report.models import CommitRecord, FileChange, GitReportError
10
10
 
11
11
 
12
12
  def extract(repo_path: Path, since: datetime) -> list[CommitRecord]:
13
+ import shutil
14
+ if not shutil.which("git"):
15
+ raise GitReportError("Git is not installed on this system. Please install Git via 'winget install Git.Git' or from https://git-scm.com")
13
16
  repo_path = Path(repo_path)
14
17
  if not (repo_path / ".git").exists():
15
18
  raise GitReportError(f"'{repo_path}' is not a Git repository (no .git folder found).")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: git2report
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: Turn Git history into a plain-language, evidence-linked progress report with visual charts and Terminal Web Studio.
5
5
  Author-email: Vijay <vijaykd04@users.noreply.github.com>
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "git2report"
7
- version = "0.1.2"
7
+ version = "0.1.3"
8
8
  description = "Turn Git history into a plain-language, evidence-linked progress report with visual charts and Terminal Web Studio."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -1,2 +0,0 @@
1
- """Git2Report: turn Git history into a plain-language, evidence-linked progress report."""
2
- __version__ = "0.1.2"
@@ -1,4 +0,0 @@
1
- from git2report.cli import app
2
-
3
- if __name__ == "__main__":
4
- app()
File without changes
File without changes
File without changes
File without changes
File without changes