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.
Files changed (28) hide show
  1. {pkgmgr_kunrunic-0.1.0.dev5/pkgmgr_kunrunic.egg-info → pkgmgr_kunrunic-0.1.0.dev7}/PKG-INFO +1 -1
  2. {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr/__init__.py +1 -1
  3. {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr/release.py +14 -6
  4. {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7/pkgmgr_kunrunic.egg-info}/PKG-INFO +1 -1
  5. {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/LICENSE +0 -0
  6. {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/README.md +0 -0
  7. {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr/__main__.py +0 -0
  8. {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr/cli.py +0 -0
  9. {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr/collectors/__init__.py +0 -0
  10. {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr/collectors/base.py +0 -0
  11. {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr/collectors/checksums.py +0 -0
  12. {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr/config.py +0 -0
  13. {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr/gitcollect.py +0 -0
  14. {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr/points.py +0 -0
  15. {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr/shell_integration.py +0 -0
  16. {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr/snapshot.py +0 -0
  17. {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr/templates/pkg.yaml.sample +0 -0
  18. {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr/templates/pkgmgr.yaml.sample +0 -0
  19. {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr/watch.py +0 -0
  20. {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr_kunrunic.egg-info/SOURCES.txt +0 -0
  21. {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr_kunrunic.egg-info/dependency_links.txt +0 -0
  22. {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr_kunrunic.egg-info/entry_points.txt +0 -0
  23. {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr_kunrunic.egg-info/not-zip-safe +0 -0
  24. {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr_kunrunic.egg-info/requires.txt +0 -0
  25. {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pkgmgr_kunrunic.egg-info/top_level.txt +0 -0
  26. {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/pyproject.toml +0 -0
  27. {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/setup.cfg +0 -0
  28. {pkgmgr_kunrunic-0.1.0.dev5 → pkgmgr_kunrunic-0.1.0.dev7}/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.dev5
3
+ Version: 0.1.0.dev7
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.dev5"
17
+ __version__ = "0.1.0.dev7"
@@ -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, text=True
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, text=True)
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
- text=True,
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.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.dev5
3
+ Version: 0.1.0.dev7
4
4
  Summary: Package management workflow scaffold.
5
5
  Author: pkgmgr maintainers
6
6
  License: MIT License