pkgmgr-kunrunic 0.1.0.dev6__tar.gz → 0.1.0.dev8__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 (28) hide show
  1. {pkgmgr_kunrunic-0.1.0.dev6/pkgmgr_kunrunic.egg-info → pkgmgr_kunrunic-0.1.0.dev8}/PKG-INFO +1 -1
  2. {pkgmgr_kunrunic-0.1.0.dev6 → pkgmgr_kunrunic-0.1.0.dev8}/pkgmgr/__init__.py +1 -1
  3. {pkgmgr_kunrunic-0.1.0.dev6 → pkgmgr_kunrunic-0.1.0.dev8}/pkgmgr/release.py +12 -4
  4. {pkgmgr_kunrunic-0.1.0.dev6 → pkgmgr_kunrunic-0.1.0.dev8/pkgmgr_kunrunic.egg-info}/PKG-INFO +1 -1
  5. {pkgmgr_kunrunic-0.1.0.dev6 → pkgmgr_kunrunic-0.1.0.dev8}/LICENSE +0 -0
  6. {pkgmgr_kunrunic-0.1.0.dev6 → pkgmgr_kunrunic-0.1.0.dev8}/README.md +0 -0
  7. {pkgmgr_kunrunic-0.1.0.dev6 → pkgmgr_kunrunic-0.1.0.dev8}/pkgmgr/__main__.py +0 -0
  8. {pkgmgr_kunrunic-0.1.0.dev6 → pkgmgr_kunrunic-0.1.0.dev8}/pkgmgr/cli.py +0 -0
  9. {pkgmgr_kunrunic-0.1.0.dev6 → pkgmgr_kunrunic-0.1.0.dev8}/pkgmgr/collectors/__init__.py +0 -0
  10. {pkgmgr_kunrunic-0.1.0.dev6 → pkgmgr_kunrunic-0.1.0.dev8}/pkgmgr/collectors/base.py +0 -0
  11. {pkgmgr_kunrunic-0.1.0.dev6 → pkgmgr_kunrunic-0.1.0.dev8}/pkgmgr/collectors/checksums.py +0 -0
  12. {pkgmgr_kunrunic-0.1.0.dev6 → pkgmgr_kunrunic-0.1.0.dev8}/pkgmgr/config.py +0 -0
  13. {pkgmgr_kunrunic-0.1.0.dev6 → pkgmgr_kunrunic-0.1.0.dev8}/pkgmgr/gitcollect.py +0 -0
  14. {pkgmgr_kunrunic-0.1.0.dev6 → pkgmgr_kunrunic-0.1.0.dev8}/pkgmgr/points.py +0 -0
  15. {pkgmgr_kunrunic-0.1.0.dev6 → pkgmgr_kunrunic-0.1.0.dev8}/pkgmgr/shell_integration.py +0 -0
  16. {pkgmgr_kunrunic-0.1.0.dev6 → pkgmgr_kunrunic-0.1.0.dev8}/pkgmgr/snapshot.py +0 -0
  17. {pkgmgr_kunrunic-0.1.0.dev6 → pkgmgr_kunrunic-0.1.0.dev8}/pkgmgr/templates/pkg.yaml.sample +0 -0
  18. {pkgmgr_kunrunic-0.1.0.dev6 → pkgmgr_kunrunic-0.1.0.dev8}/pkgmgr/templates/pkgmgr.yaml.sample +0 -0
  19. {pkgmgr_kunrunic-0.1.0.dev6 → pkgmgr_kunrunic-0.1.0.dev8}/pkgmgr/watch.py +0 -0
  20. {pkgmgr_kunrunic-0.1.0.dev6 → pkgmgr_kunrunic-0.1.0.dev8}/pkgmgr_kunrunic.egg-info/SOURCES.txt +0 -0
  21. {pkgmgr_kunrunic-0.1.0.dev6 → pkgmgr_kunrunic-0.1.0.dev8}/pkgmgr_kunrunic.egg-info/dependency_links.txt +0 -0
  22. {pkgmgr_kunrunic-0.1.0.dev6 → pkgmgr_kunrunic-0.1.0.dev8}/pkgmgr_kunrunic.egg-info/entry_points.txt +0 -0
  23. {pkgmgr_kunrunic-0.1.0.dev6 → pkgmgr_kunrunic-0.1.0.dev8}/pkgmgr_kunrunic.egg-info/not-zip-safe +0 -0
  24. {pkgmgr_kunrunic-0.1.0.dev6 → pkgmgr_kunrunic-0.1.0.dev8}/pkgmgr_kunrunic.egg-info/requires.txt +0 -0
  25. {pkgmgr_kunrunic-0.1.0.dev6 → pkgmgr_kunrunic-0.1.0.dev8}/pkgmgr_kunrunic.egg-info/top_level.txt +0 -0
  26. {pkgmgr_kunrunic-0.1.0.dev6 → pkgmgr_kunrunic-0.1.0.dev8}/pyproject.toml +0 -0
  27. {pkgmgr_kunrunic-0.1.0.dev6 → pkgmgr_kunrunic-0.1.0.dev8}/setup.cfg +0 -0
  28. {pkgmgr_kunrunic-0.1.0.dev6 → pkgmgr_kunrunic-0.1.0.dev8}/tests/test_config.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pkgmgr-kunrunic
3
- Version: 0.1.0.dev6
3
+ Version: 0.1.0.dev8
4
4
  Summary: Package management workflow scaffold.
5
5
  Author: pkgmgr maintainers
6
6
  License: MIT License
@@ -14,4 +14,4 @@ __all__ = [
14
14
  "points",
15
15
  ]
16
16
 
17
- __version__ = "0.1.0.dev6"
17
+ __version__ = "0.1.0.dev8"
@@ -280,10 +280,10 @@ 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)
@@ -314,10 +314,12 @@ 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
- ["git", "show", "-s", "--format=%an\t%ae\t%ad%n%B", c["hash"]],
322
+ ["git", "show", "-s", "--format=%an\t%ae\t%ad%n%s%n%b", c["hash"]],
321
323
  cwd=repo_root,
322
324
  stderr=subprocess.STDOUT,
323
325
  universal_newlines=True,
@@ -327,10 +329,16 @@ def _collect_git_hits(pkg_cfg, pkg_root):
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.strip()
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pkgmgr-kunrunic
3
- Version: 0.1.0.dev6
3
+ Version: 0.1.0.dev8
4
4
  Summary: Package management workflow scaffold.
5
5
  Author: pkgmgr maintainers
6
6
  License: MIT License