Commit 2336aae
contrib: git-stats: drop vendored python2 gitdm, auto-install a python3 gitdm
The git-stats tooling vendored a full copy of gitdm (git.lwn.net) under
contrib/git-stats/gitdm. That copy is python2 and effectively
unmaintained, so it does not survive the python2-to-3 port.
Rather than carry (and port/maintain) a copy of gitdm in this tree,
remove the vendored gitdm and have onie-git-stats obtain a python3 port
of gitdm on demand:
- On first run, onie-git-stats clones a pinned python3 gitdm
(OSSystems/gitdm, which is a straight python3 port of Corbet's
gitdm) into a local, git-ignored cache directory
(contrib/git-stats/.gitdm) and reuses it thereafter. The source and
revision are pinned and overridable via GITDM_REPO / GITDM_REF.
- A user who already has a python3-capable gitdm can set GITDM to point
at it; onie-git-stats then uses it directly and skips the clone
entirely.
- gitdm is now invoked with python3 (was python2), and the pinned
upstream's harmless SyntaxWarnings are silenced.
The ONIE-specific gitdm configuration (gitdm-config/) and the
onie-git-stats wrapper are kept; only the vendored gitdm engine is
removed. README.md documents the auto-install, the pinning/override
knobs, and how to use a pre-existing gitdm.
Signed-off-by: Brad House <bhouse@nexthop.ai>
Signed-off-by: Michael Shych <michaelsh@nvidia.com>1 parent f067a33 commit 2336aae
41 files changed
Lines changed: 91 additions & 4155 deletions
File tree
- contrib/git-stats
- gitdm
- sample-config
- xorg
- tests
- testrepo
- info
- objects
- info
- pack
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
8 | 53 | | |
9 | 54 | | |
10 | 55 | | |
| |||
52 | 97 | | |
53 | 98 | | |
54 | 99 | | |
55 | | - | |
| 100 | + | |
| 101 | + | |
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments