gitlogstats 1.5.1__tar.gz → 1.5.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.
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/PKG-INFO +1 -1
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/docs/examples/README.md +4 -4
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/docs/examples/assignment-stats.sh +9 -5
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/pyproject.toml +1 -1
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/.claude/CLAUDE.md +0 -0
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/.claude/agents/developer-agent.md +0 -0
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/.claude/agents/spec-reviewer.md +0 -0
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/.claude/hooks/format-edited.sh +0 -0
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/.claude/hooks/guard-paths.sh +0 -0
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/.claude/hooks/guard-paths.test.mjs +0 -0
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/.claude/hooks/verify.sh +0 -0
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/.claude/settings.json +0 -0
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/.claude/skills/phase-handoff/SKILL.md +0 -0
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/.claude/skills/stale-check/SKILL.md +0 -0
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/.github/workflows/build.yaml +0 -0
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/.gitignore +0 -0
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/.prettierrc.json +0 -0
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/LICENSE +0 -0
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/Pipfile +0 -0
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/Pipfile.lock +0 -0
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/README.md +0 -0
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/docs/SPEC.md +0 -0
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/package-lock.json +0 -0
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/package.json +0 -0
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/repos.txt +0 -0
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/requirements.txt +0 -0
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/scripts/board/config.mjs +0 -0
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/scripts/board/derive.mjs +0 -0
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/scripts/board/derive.test.mjs +0 -0
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/scripts/board/manifest.yaml +0 -0
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/scripts/board/sync.mjs +0 -0
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/src/gitlogstats/__init__.py +0 -0
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/src/gitlogstats/__main__.py +0 -0
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/src/gitlogstats/clones.py +0 -0
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/src/gitlogstats/git_logs_parser.py +0 -0
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/src/gitlogstats/github.py +0 -0
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/src/gitlogstats/github_stats.py +0 -0
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/src/gitlogstats/identity.py +0 -0
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/tests/fake_gh.py +0 -0
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/tests/fixtures/github/commit_linked.json +0 -0
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/tests/fixtures/github/commit_unlinked.json +0 -0
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/tests/fixtures/github/contributors.json +0 -0
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/tests/fixtures/github/contributors_page2.json +0 -0
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/tests/fixtures/github/pulls_page1.json +0 -0
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/tests/fixtures/github/pulls_page2.json +0 -0
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/tests/fixtures/github/user_full.json +0 -0
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/tests/fixtures/github/user_private.json +0 -0
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/tests/test_clobber.py +0 -0
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/tests/test_git_logs_parser.py +0 -0
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/tests/test_github.py +0 -0
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/tests/test_identity.py +0 -0
- {gitlogstats-1.5.1 → gitlogstats-1.5.2}/tests/test_integration.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: gitlogstats
|
|
3
|
-
Version: 1.5.
|
|
3
|
+
Version: 1.5.2
|
|
4
4
|
Summary: Track developers' contributions to one or more git repositories within a particular time range.
|
|
5
5
|
Project-URL: Homepage, https://github.com/bloombar/gitlogstats
|
|
6
6
|
Project-URL: Repository, https://github.com/bloombar/gitlogstats.git
|
|
@@ -24,7 +24,7 @@ You don't need to install `gitlogstats` yourself: the script installs or upgrade
|
|
|
24
24
|
| `REPO_PREFIX` | The start of the repository names for this assignment | `web-app-exercise-` |
|
|
25
25
|
| `START_DATE` | First day of the period, `mm/dd/yyyy` | `09/01/2029` |
|
|
26
26
|
| `END_DATE` | Last day of the period, `mm/dd/yyyy` (included) | `10/16/2029` |
|
|
27
|
-
| options | Anything after the four arguments is passed to `gitlogstats` unchanged |
|
|
27
|
+
| options | Anything after the four arguments is passed to `gitlogstats` unchanged | `-f markdown` |
|
|
28
28
|
|
|
29
29
|
Run it from any directory. The results are printed to standard output, so redirect them to save them; progress messages go to standard error and stay on screen.
|
|
30
30
|
|
|
@@ -36,10 +36,10 @@ Save a CSV of one assignment's statistics:
|
|
|
36
36
|
./assignment-stats.sh software-students-fall2029 web-app-exercise- 09/01/2029 10/16/2029 > web-app-exercise.csv
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
Print a Markdown table instead:
|
|
40
40
|
|
|
41
41
|
```bash
|
|
42
|
-
./assignment-stats.sh software-students-fall2029 web-app-exercise- 09/01/2029 10/16/2029
|
|
42
|
+
./assignment-stats.sh software-students-fall2029 web-app-exercise- 09/01/2029 10/16/2029 -f markdown
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
Leave out students with no activity in the period, as JSON:
|
|
@@ -57,7 +57,7 @@ See the main [README](../../README.md) for every `gitlogstats` option and what e
|
|
|
57
57
|
1. Checks the arguments and that Python, git and `gh` are installed and `gh` is signed in. If anything is missing it stops with a message saying what.
|
|
58
58
|
2. Installs or upgrades `gitlogstats` in a Python environment of its own, `~/.gitlogstats-venv`, reused by later runs. Set `GITLOGSTATS_VENV` to keep it elsewhere. A separate environment is needed because Homebrew Python and recent Debian and Ubuntu releases refuse a system-wide `pip install`.
|
|
59
59
|
3. Lists the organization's repositories whose names start with `REPO_PREFIX`, into a temporary file that is deleted when the script ends, even after an error. An existing `repos.txt` in your directory is never touched. If no repository matches, it stops with an error.
|
|
60
|
-
4. Runs `gitlogstats` on those repositories with `--clobber
|
|
60
|
+
4. Runs `gitlogstats` on those repositories with `--github` and `--clobber`. `--github` adds the GitHub columns (pull requests, pushes, website commits and emails) and combines each student's git names into one row; `--clobber` deletes the clones it makes in `./repos/` once the results are printed.
|
|
61
61
|
|
|
62
62
|
### Troubleshooting
|
|
63
63
|
|
|
@@ -9,10 +9,11 @@
|
|
|
9
9
|
#
|
|
10
10
|
# Example:
|
|
11
11
|
# ./assignment-stats.sh software-students-fall2029 web-app-exercise- 09/01/2029 10/16/2029 > stats.csv
|
|
12
|
-
# ./assignment-stats.sh software-students-fall2029 web-app-exercise- 09/01/2029 10/16/2029
|
|
12
|
+
# ./assignment-stats.sh software-students-fall2029 web-app-exercise- 09/01/2029 10/16/2029 -f markdown
|
|
13
13
|
#
|
|
14
|
-
# Dates are mm/dd/yyyy and both days are included.
|
|
15
|
-
#
|
|
14
|
+
# Dates are mm/dd/yyyy and both days are included. gitlogstats always runs
|
|
15
|
+
# with --github, so the GitHub columns are included. Any options after the four
|
|
16
|
+
# arguments are passed to gitlogstats unchanged (e.g. -f json, -c).
|
|
16
17
|
# The results go to standard output; progress messages go to standard error.
|
|
17
18
|
#
|
|
18
19
|
# Requires: Python 3, git, and the GitHub CLI (gh), signed in with
|
|
@@ -109,5 +110,8 @@ if [ "$count" -eq 0 ]; then
|
|
|
109
110
|
fi
|
|
110
111
|
echo "Analyzing $count repositories from $START_DATE to $END_DATE..." >&2
|
|
111
112
|
|
|
112
|
-
# --
|
|
113
|
-
|
|
113
|
+
# --github adds the GitHub columns (pull requests, pushes, website commits,
|
|
114
|
+
# emails) and combines each student's git names into one row; --clobber
|
|
115
|
+
# deletes the clones once the results are printed
|
|
116
|
+
"$VENV_PYTHON" -m gitlogstats -rf "$REPOS_FILE" -s "$START_DATE" -e "$END_DATE" \
|
|
117
|
+
--github --clobber "$@"
|
|
@@ -5,7 +5,7 @@ build-backend = "hatchling.build"
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "gitlogstats"
|
|
7
7
|
description = "Track developers' contributions to one or more git repositories within a particular time range."
|
|
8
|
-
version = "1.5.
|
|
8
|
+
version = "1.5.2"
|
|
9
9
|
authors = [
|
|
10
10
|
{ name="Tobody Tothing", email="nobody.nothing@nowhere.com" },
|
|
11
11
|
]
|
|
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
|
|
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
|