pkgmgr-kunrunic 0.1.0.dev5__tar.gz → 0.1.0.dev7__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.
- {pkgmgr_kunrunic-0.1.0.dev5/pkgmgr_kunrunic.egg-info → pkgmgr_kunrunic-0.1.0.dev7}/PKG-INFO +1 -1
- {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr/__init__.py +1 -1
- {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr/release.py +14 -6
- {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7/pkgmgr_kunrunic.egg-info}/PKG-INFO +1 -1
- {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/LICENSE +0 -0
- {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/README.md +0 -0
- {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr/__main__.py +0 -0
- {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr/cli.py +0 -0
- {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr/collectors/__init__.py +0 -0
- {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr/collectors/base.py +0 -0
- {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr/collectors/checksums.py +0 -0
- {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr/config.py +0 -0
- {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr/gitcollect.py +0 -0
- {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr/points.py +0 -0
- {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr/shell_integration.py +0 -0
- {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr/snapshot.py +0 -0
- {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr/templates/pkg.yaml.sample +0 -0
- {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr/templates/pkgmgr.yaml.sample +0 -0
- {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr/watch.py +0 -0
- {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr_kunrunic.egg-info/SOURCES.txt +0 -0
- {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr_kunrunic.egg-info/dependency_links.txt +0 -0
- {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr_kunrunic.egg-info/entry_points.txt +0 -0
- {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr_kunrunic.egg-info/not-zip-safe +0 -0
- {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr_kunrunic.egg-info/requires.txt +0 -0
- {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr_kunrunic.egg-info/top_level.txt +0 -0
- {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pyproject.toml +0 -0
- {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/setup.cfg +0 -0
- {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/tests/test_config.py +0 -0
|
@@ -248,7 +248,7 @@ def _git_repo_root(pkg_root, git_cfg):
|
|
|
248
248
|
print("[git] repo_root %s not found; falling back to git rev-parse" % repo_root)
|
|
249
249
|
try:
|
|
250
250
|
out = subprocess.check_output(
|
|
251
|
-
["git", "rev-parse", "--show-toplevel"], stderr=subprocess.STDOUT,
|
|
251
|
+
["git", "rev-parse", "--show-toplevel"], stderr=subprocess.STDOUT, universal_newlines=True
|
|
252
252
|
)
|
|
253
253
|
return out.strip()
|
|
254
254
|
except Exception:
|
|
@@ -280,17 +280,17 @@ def _collect_git_hits(pkg_cfg, pkg_root):
|
|
|
280
280
|
"log",
|
|
281
281
|
"--name-only",
|
|
282
282
|
"--pretty=format:%H\t%s",
|
|
283
|
-
"--grep",
|
|
284
|
-
kw,
|
|
283
|
+
"--grep=%s" % kw,
|
|
285
284
|
"--regexp-ignore-case",
|
|
286
285
|
"--all",
|
|
286
|
+
"--",
|
|
287
287
|
]
|
|
288
288
|
if since:
|
|
289
289
|
cmd.append("--since=%s" % since)
|
|
290
290
|
if until:
|
|
291
291
|
cmd.append("--until=%s" % until)
|
|
292
292
|
try:
|
|
293
|
-
out = subprocess.check_output(cmd, cwd=repo_root, stderr=subprocess.STDOUT,
|
|
293
|
+
out = subprocess.check_output(cmd, cwd=repo_root, stderr=subprocess.STDOUT, universal_newlines=True)
|
|
294
294
|
except Exception as e:
|
|
295
295
|
print("[git] log failed for keyword %s: %s" % (kw, str(e)))
|
|
296
296
|
continue
|
|
@@ -314,23 +314,31 @@ def _collect_git_hits(pkg_cfg, pkg_root):
|
|
|
314
314
|
for c in commits.values():
|
|
315
315
|
c["files"] = sorted(c["files"])
|
|
316
316
|
c["keywords"] = sorted(c["keywords"])
|
|
317
|
+
# Provide stable, user-facing aliases.
|
|
318
|
+
c["commit"] = c.get("hash")
|
|
317
319
|
# fetch author and full commit message body for richer context
|
|
318
320
|
try:
|
|
319
321
|
info = subprocess.check_output(
|
|
320
322
|
["git", "show", "-s", "--format=%an\t%ae\t%ad%n%B", c["hash"]],
|
|
321
323
|
cwd=repo_root,
|
|
322
324
|
stderr=subprocess.STDOUT,
|
|
323
|
-
|
|
325
|
+
universal_newlines=True,
|
|
324
326
|
)
|
|
325
327
|
header, _, body = info.partition("\n")
|
|
326
328
|
parts = header.split("\t")
|
|
327
329
|
c["author_name"] = parts[0] if len(parts) > 0 else ""
|
|
328
330
|
c["author_email"] = parts[1] if len(parts) > 1 else ""
|
|
329
331
|
c["authored_at"] = parts[2] if len(parts) > 2 else ""
|
|
330
|
-
c["message"] = body.
|
|
332
|
+
c["message"] = body.rstrip("\n")
|
|
331
333
|
except Exception as e:
|
|
332
334
|
print("[git] show failed for %s: %s" % (c["hash"], str(e)))
|
|
333
335
|
c["message"] = c.get("subject", "")
|
|
336
|
+
if c.get("author_name") or c.get("author_email"):
|
|
337
|
+
if c.get("author_email"):
|
|
338
|
+
c["author"] = "%s <%s>" % (c.get("author_name", ""), c.get("author_email", ""))
|
|
339
|
+
else:
|
|
340
|
+
c["author"] = c.get("author_name", "")
|
|
341
|
+
c["date"] = c.get("authored_at", "")
|
|
334
342
|
result["commits"].append(c)
|
|
335
343
|
result["commits"] = sorted(result["commits"], key=lambda c: c["hash"])
|
|
336
344
|
return result, files
|
|
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
|
{pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr/templates/pkgmgr.yaml.sample
RENAMED
|
File without changes
|
|
File without changes
|
{pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr_kunrunic.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr_kunrunic.egg-info/entry_points.txt
RENAMED
|
File without changes
|
{pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr_kunrunic.egg-info/not-zip-safe
RENAMED
|
File without changes
|
{pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr_kunrunic.egg-info/requires.txt
RENAMED
|
File without changes
|
{pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr_kunrunic.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|