pkgmgr-kunrunic 0.1.1.dev7__tar.gz → 0.1.1.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 (35) hide show
  1. {pkgmgr_kunrunic-0.1.1.dev7/pkgmgr_kunrunic.egg-info → pkgmgr_kunrunic-0.1.1.dev8}/PKG-INFO +1 -1
  2. {pkgmgr_kunrunic-0.1.1.dev7 → pkgmgr_kunrunic-0.1.1.dev8}/pkgmgr/__init__.py +1 -1
  3. {pkgmgr_kunrunic-0.1.1.dev7 → pkgmgr_kunrunic-0.1.1.dev8}/pkgmgr/release.py +39 -0
  4. {pkgmgr_kunrunic-0.1.1.dev7 → pkgmgr_kunrunic-0.1.1.dev8/pkgmgr_kunrunic.egg-info}/PKG-INFO +1 -1
  5. {pkgmgr_kunrunic-0.1.1.dev7 → pkgmgr_kunrunic-0.1.1.dev8}/LICENSE +0 -0
  6. {pkgmgr_kunrunic-0.1.1.dev7 → pkgmgr_kunrunic-0.1.1.dev8}/README.md +0 -0
  7. {pkgmgr_kunrunic-0.1.1.dev7 → pkgmgr_kunrunic-0.1.1.dev8}/pkgmgr/__main__.py +0 -0
  8. {pkgmgr_kunrunic-0.1.1.dev7 → pkgmgr_kunrunic-0.1.1.dev8}/pkgmgr/cli.py +0 -0
  9. {pkgmgr_kunrunic-0.1.1.dev7 → pkgmgr_kunrunic-0.1.1.dev8}/pkgmgr/collectors/__init__.py +0 -0
  10. {pkgmgr_kunrunic-0.1.1.dev7 → pkgmgr_kunrunic-0.1.1.dev8}/pkgmgr/collectors/base.py +0 -0
  11. {pkgmgr_kunrunic-0.1.1.dev7 → pkgmgr_kunrunic-0.1.1.dev8}/pkgmgr/collectors/checksums.py +0 -0
  12. {pkgmgr_kunrunic-0.1.1.dev7 → pkgmgr_kunrunic-0.1.1.dev8}/pkgmgr/config.py +0 -0
  13. {pkgmgr_kunrunic-0.1.1.dev7 → pkgmgr_kunrunic-0.1.1.dev8}/pkgmgr/points.py +0 -0
  14. {pkgmgr_kunrunic-0.1.1.dev7 → pkgmgr_kunrunic-0.1.1.dev8}/pkgmgr/shell_integration.py +0 -0
  15. {pkgmgr_kunrunic-0.1.1.dev7 → pkgmgr_kunrunic-0.1.1.dev8}/pkgmgr/snapshot.py +0 -0
  16. {pkgmgr_kunrunic-0.1.1.dev7 → pkgmgr_kunrunic-0.1.1.dev8}/pkgmgr/templates/pkg.yaml.sample +0 -0
  17. {pkgmgr_kunrunic-0.1.1.dev7 → pkgmgr_kunrunic-0.1.1.dev8}/pkgmgr/templates/pkgmgr.yaml.sample +0 -0
  18. {pkgmgr_kunrunic-0.1.1.dev7 → pkgmgr_kunrunic-0.1.1.dev8}/pkgmgr/watch.py +0 -0
  19. {pkgmgr_kunrunic-0.1.1.dev7 → pkgmgr_kunrunic-0.1.1.dev8}/pkgmgr_kunrunic.egg-info/SOURCES.txt +0 -0
  20. {pkgmgr_kunrunic-0.1.1.dev7 → pkgmgr_kunrunic-0.1.1.dev8}/pkgmgr_kunrunic.egg-info/dependency_links.txt +0 -0
  21. {pkgmgr_kunrunic-0.1.1.dev7 → pkgmgr_kunrunic-0.1.1.dev8}/pkgmgr_kunrunic.egg-info/entry_points.txt +0 -0
  22. {pkgmgr_kunrunic-0.1.1.dev7 → pkgmgr_kunrunic-0.1.1.dev8}/pkgmgr_kunrunic.egg-info/not-zip-safe +0 -0
  23. {pkgmgr_kunrunic-0.1.1.dev7 → pkgmgr_kunrunic-0.1.1.dev8}/pkgmgr_kunrunic.egg-info/requires.txt +0 -0
  24. {pkgmgr_kunrunic-0.1.1.dev7 → pkgmgr_kunrunic-0.1.1.dev8}/pkgmgr_kunrunic.egg-info/top_level.txt +0 -0
  25. {pkgmgr_kunrunic-0.1.1.dev7 → pkgmgr_kunrunic-0.1.1.dev8}/plugin/export_cksum.py +0 -0
  26. {pkgmgr_kunrunic-0.1.1.dev7 → pkgmgr_kunrunic-0.1.1.dev8}/plugin/export_pkgstore.py +0 -0
  27. {pkgmgr_kunrunic-0.1.1.dev7 → pkgmgr_kunrunic-0.1.1.dev8}/plugin/export_source_review.py +0 -0
  28. {pkgmgr_kunrunic-0.1.1.dev7 → pkgmgr_kunrunic-0.1.1.dev8}/pyproject.toml +0 -0
  29. {pkgmgr_kunrunic-0.1.1.dev7 → pkgmgr_kunrunic-0.1.1.dev8}/setup.cfg +0 -0
  30. {pkgmgr_kunrunic-0.1.1.dev7 → pkgmgr_kunrunic-0.1.1.dev8}/tests/test_cli_install.py +0 -0
  31. {pkgmgr_kunrunic-0.1.1.dev7 → pkgmgr_kunrunic-0.1.1.dev8}/tests/test_config.py +0 -0
  32. {pkgmgr_kunrunic-0.1.1.dev7 → pkgmgr_kunrunic-0.1.1.dev8}/tests/test_progress.py +0 -0
  33. {pkgmgr_kunrunic-0.1.1.dev7 → pkgmgr_kunrunic-0.1.1.dev8}/tests/test_release.py +0 -0
  34. {pkgmgr_kunrunic-0.1.1.dev7 → pkgmgr_kunrunic-0.1.1.dev8}/tests/test_snapshot.py +0 -0
  35. {pkgmgr_kunrunic-0.1.1.dev7 → pkgmgr_kunrunic-0.1.1.dev8}/tools/echo_args.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pkgmgr-kunrunic
3
- Version: 0.1.1.dev7
3
+ Version: 0.1.1.dev8
4
4
  Summary: Package management workflow scaffold.
5
5
  Author: pkgmgr maintainers
6
6
  License: MIT License
@@ -13,4 +13,4 @@ __all__ = [
13
13
  "points",
14
14
  ]
15
15
 
16
- __version__ = "0.1.1.dev7"
16
+ __version__ = "0.1.1.dev8"
@@ -602,6 +602,18 @@ _PKG_NOTE_NAME = "PKG_NOTE"
602
602
  _PKG_LIST_NAME = "PKG_LIST"
603
603
 
604
604
 
605
+ def _read_json_path(path):
606
+ try:
607
+ with open(path, "r", encoding="utf-8") as f:
608
+ return json.load(f)
609
+ except Exception:
610
+ try:
611
+ with open(path, "r", encoding="euc-kr", errors="replace") as f:
612
+ return json.load(f)
613
+ except Exception:
614
+ return None
615
+
616
+
605
617
  def _read_note_text(path):
606
618
  try:
607
619
  with open(path, "r", encoding="utf-8") as f:
@@ -614,6 +626,28 @@ def _read_note_text(path):
614
626
  return ""
615
627
 
616
628
 
629
+ def _update_release_history_note(pkg_id, root_name, release_name, note_text):
630
+ rel_dir = _pkg_release_history_dir(pkg_id)
631
+ if not os.path.isdir(rel_dir):
632
+ return False
633
+ filenames = [n for n in os.listdir(rel_dir) if n.startswith("release-") and n.endswith(".json")]
634
+ for name in sorted(filenames, reverse=True):
635
+ path = os.path.join(rel_dir, name)
636
+ payload = _read_json_path(path) or {}
637
+ bundles = payload.get("bundles") or []
638
+ updated = False
639
+ for bundle in bundles:
640
+ if bundle.get("root") == root_name and bundle.get("release_name") == release_name:
641
+ bundle["note"] = note_text
642
+ updated = True
643
+ if updated:
644
+ payload["generated_at"] = _timestamp()
645
+ with open(path, "w") as f:
646
+ json.dump(payload, f, ensure_ascii=False, indent=2, sort_keys=True)
647
+ return True
648
+ return False
649
+
650
+
617
651
  def _list_release_versions(base_dir, include_history=False):
618
652
  """Return list of (major, minor, patch, path) under base_dir (optional HISTORY)."""
619
653
  versions = []
@@ -1007,6 +1041,11 @@ def finalize_pkg_release(cfg, pkg_id):
1007
1041
  continue
1008
1042
  tar_path = _finalize_release_root(root_dir)
1009
1043
  if tar_path:
1044
+ release_name = os.path.basename(tar_path).rsplit(".tar", 1)[0]
1045
+ history_target = os.path.join(root_dir, "HISTORY", release_name)
1046
+ note_path = os.path.join(history_target, _PKG_NOTE_NAME)
1047
+ note_text = _read_note_text(note_path) if os.path.isfile(note_path) else ""
1048
+ _update_release_history_note(pkg_id, name, release_name, note_text)
1010
1049
  _sync_baseline_root(root_dir, grouped.get(name, []))
1011
1050
  finalized.append(tar_path)
1012
1051
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pkgmgr-kunrunic
3
- Version: 0.1.1.dev7
3
+ Version: 0.1.1.dev8
4
4
  Summary: Package management workflow scaffold.
5
5
  Author: pkgmgr maintainers
6
6
  License: MIT License