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.
- {git2report-0.1.2 → git2report-0.1.3}/PKG-INFO +1 -1
- git2report-0.1.3/git2report/__init__.py +24 -0
- git2report-0.1.3/git2report/__main__.py +9 -0
- {git2report-0.1.2 → git2report-0.1.3}/git2report/extractor.py +3 -0
- {git2report-0.1.2 → git2report-0.1.3}/git2report.egg-info/PKG-INFO +1 -1
- {git2report-0.1.2 → git2report-0.1.3}/pyproject.toml +1 -1
- git2report-0.1.2/git2report/__init__.py +0 -2
- git2report-0.1.2/git2report/__main__.py +0 -4
- {git2report-0.1.2 → git2report-0.1.3}/LICENSE +0 -0
- {git2report-0.1.2 → git2report-0.1.3}/README.md +0 -0
- {git2report-0.1.2 → git2report-0.1.3}/git2report/branches.py +0 -0
- {git2report-0.1.2 → git2report-0.1.3}/git2report/cache.py +0 -0
- {git2report-0.1.2 → git2report-0.1.3}/git2report/charts.py +0 -0
- {git2report-0.1.2 → git2report-0.1.3}/git2report/chunker.py +0 -0
- {git2report-0.1.2 → git2report-0.1.3}/git2report/cli.py +0 -0
- {git2report-0.1.2 → git2report-0.1.3}/git2report/clustering.py +0 -0
- {git2report-0.1.2 → git2report-0.1.3}/git2report/config.py +0 -0
- {git2report-0.1.2 → git2report-0.1.3}/git2report/eval_tools.py +0 -0
- {git2report-0.1.2 → git2report-0.1.3}/git2report/filtering.py +0 -0
- {git2report-0.1.2 → git2report-0.1.3}/git2report/metrics.py +0 -0
- {git2report-0.1.2 → git2report-0.1.3}/git2report/models.py +0 -0
- {git2report-0.1.2 → git2report-0.1.3}/git2report/pipeline.py +0 -0
- {git2report-0.1.2 → git2report-0.1.3}/git2report/report.py +0 -0
- {git2report-0.1.2 → git2report-0.1.3}/git2report/rules.py +0 -0
- {git2report-0.1.2 → git2report-0.1.3}/git2report/summarizer.py +0 -0
- {git2report-0.1.2 → git2report-0.1.3}/git2report/timeutil.py +0 -0
- {git2report-0.1.2 → git2report-0.1.3}/git2report/web.py +0 -0
- {git2report-0.1.2 → git2report-0.1.3}/git2report.egg-info/SOURCES.txt +0 -0
- {git2report-0.1.2 → git2report-0.1.3}/git2report.egg-info/dependency_links.txt +0 -0
- {git2report-0.1.2 → git2report-0.1.3}/git2report.egg-info/entry_points.txt +0 -0
- {git2report-0.1.2 → git2report-0.1.3}/git2report.egg-info/requires.txt +0 -0
- {git2report-0.1.2 → git2report-0.1.3}/git2report.egg-info/top_level.txt +0 -0
- {git2report-0.1.2 → git2report-0.1.3}/setup.cfg +0 -0
- {git2report-0.1.2 → git2report-0.1.3}/tests/test_chunker.py +0 -0
- {git2report-0.1.2 → git2report-0.1.3}/tests/test_end_to_end.py +0 -0
- {git2report-0.1.2 → git2report-0.1.3}/tests/test_eval_tools.py +0 -0
- {git2report-0.1.2 → git2report-0.1.3}/tests/test_filter_cluster_metrics.py +0 -0
- {git2report-0.1.2 → git2report-0.1.3}/tests/test_rules.py +0 -0
- {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.
|
|
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
|
+
|
|
@@ -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.
|
|
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.
|
|
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"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|