pkgmgr-kunrunic 0.1.0.dev1__tar.gz → 0.1.0.dev2__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.dev1 → pkgmgr_kunrunic-0.1.0.dev2}/PKG-INFO +2 -2
- {pkgmgr_kunrunic-0.1.0.dev1 → pkgmgr_kunrunic-0.1.0.dev2}/README.md +1 -1
- {pkgmgr_kunrunic-0.1.0.dev1 → pkgmgr_kunrunic-0.1.0.dev2}/pkgmgr/__init__.py +1 -1
- {pkgmgr_kunrunic-0.1.0.dev1 → pkgmgr_kunrunic-0.1.0.dev2}/pkgmgr/cli.py +19 -7
- {pkgmgr_kunrunic-0.1.0.dev1 → pkgmgr_kunrunic-0.1.0.dev2}/pkgmgr/config.py +12 -2
- {pkgmgr_kunrunic-0.1.0.dev1 → pkgmgr_kunrunic-0.1.0.dev2}/pkgmgr_kunrunic.egg-info/PKG-INFO +2 -2
- {pkgmgr_kunrunic-0.1.0.dev1 → pkgmgr_kunrunic-0.1.0.dev2}/LICENSE +0 -0
- {pkgmgr_kunrunic-0.1.0.dev1 → pkgmgr_kunrunic-0.1.0.dev2}/pkgmgr/__main__.py +0 -0
- {pkgmgr_kunrunic-0.1.0.dev1 → pkgmgr_kunrunic-0.1.0.dev2}/pkgmgr/collectors/__init__.py +0 -0
- {pkgmgr_kunrunic-0.1.0.dev1 → pkgmgr_kunrunic-0.1.0.dev2}/pkgmgr/collectors/base.py +0 -0
- {pkgmgr_kunrunic-0.1.0.dev1 → pkgmgr_kunrunic-0.1.0.dev2}/pkgmgr/collectors/checksums.py +0 -0
- {pkgmgr_kunrunic-0.1.0.dev1 → pkgmgr_kunrunic-0.1.0.dev2}/pkgmgr/gitcollect.py +0 -0
- {pkgmgr_kunrunic-0.1.0.dev1 → pkgmgr_kunrunic-0.1.0.dev2}/pkgmgr/release.py +0 -0
- {pkgmgr_kunrunic-0.1.0.dev1 → pkgmgr_kunrunic-0.1.0.dev2}/pkgmgr/shell_integration.py +0 -0
- {pkgmgr_kunrunic-0.1.0.dev1 → pkgmgr_kunrunic-0.1.0.dev2}/pkgmgr/snapshot.py +0 -0
- {pkgmgr_kunrunic-0.1.0.dev1 → pkgmgr_kunrunic-0.1.0.dev2}/pkgmgr/templates/pkg.yaml.sample +0 -0
- {pkgmgr_kunrunic-0.1.0.dev1 → pkgmgr_kunrunic-0.1.0.dev2}/pkgmgr/templates/pkgmgr.yaml.sample +0 -0
- {pkgmgr_kunrunic-0.1.0.dev1 → pkgmgr_kunrunic-0.1.0.dev2}/pkgmgr/watch.py +0 -0
- {pkgmgr_kunrunic-0.1.0.dev1 → pkgmgr_kunrunic-0.1.0.dev2}/pkgmgr_kunrunic.egg-info/SOURCES.txt +0 -0
- {pkgmgr_kunrunic-0.1.0.dev1 → pkgmgr_kunrunic-0.1.0.dev2}/pkgmgr_kunrunic.egg-info/dependency_links.txt +0 -0
- {pkgmgr_kunrunic-0.1.0.dev1 → pkgmgr_kunrunic-0.1.0.dev2}/pkgmgr_kunrunic.egg-info/entry_points.txt +0 -0
- {pkgmgr_kunrunic-0.1.0.dev1 → pkgmgr_kunrunic-0.1.0.dev2}/pkgmgr_kunrunic.egg-info/not-zip-safe +0 -0
- {pkgmgr_kunrunic-0.1.0.dev1 → pkgmgr_kunrunic-0.1.0.dev2}/pkgmgr_kunrunic.egg-info/requires.txt +0 -0
- {pkgmgr_kunrunic-0.1.0.dev1 → pkgmgr_kunrunic-0.1.0.dev2}/pkgmgr_kunrunic.egg-info/top_level.txt +0 -0
- {pkgmgr_kunrunic-0.1.0.dev1 → pkgmgr_kunrunic-0.1.0.dev2}/pyproject.toml +0 -0
- {pkgmgr_kunrunic-0.1.0.dev1 → pkgmgr_kunrunic-0.1.0.dev2}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pkgmgr-kunrunic
|
|
3
|
-
Version: 0.1.0.
|
|
3
|
+
Version: 0.1.0.dev2
|
|
4
4
|
Summary: Package management workflow scaffold.
|
|
5
5
|
Author: pkgmgr maintainers
|
|
6
6
|
License: MIT License
|
|
@@ -68,7 +68,7 @@ Dynamic: license-file
|
|
|
68
68
|
```
|
|
69
69
|
python -m pkgmgr.cli make-config -o pkgmgr.yaml
|
|
70
70
|
```
|
|
71
|
-
`pkgmgr.yaml`에서 소스 경로, 설치 타깃(bin/lib/data 등), release 루트, Git 키워드, 감시 주기, 기본 컬렉터 목록 등을 편집합니다.
|
|
71
|
+
`pkgmgr.yaml`에서 소스 경로, 설치 타깃(bin/lib/data 등), release 루트, Git 키워드, 감시 주기, 기본 컬렉터 목록 등을 편집합니다. 기본 생성 위치는 `~/pkmgr/config/pkgmgr.yaml`이며, `--config`로 다른 경로를 지정할 수 있습니다. 상태/캐시 데이터는 추후 `~/pkmgr/local/state`, `~/pkmgr/cache`에 둘 예정입니다.
|
|
72
72
|
|
|
73
73
|
2) 환경 준비
|
|
74
74
|
```
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
```
|
|
21
21
|
python -m pkgmgr.cli make-config -o pkgmgr.yaml
|
|
22
22
|
```
|
|
23
|
-
`pkgmgr.yaml`에서 소스 경로, 설치 타깃(bin/lib/data 등), release 루트, Git 키워드, 감시 주기, 기본 컬렉터 목록 등을 편집합니다.
|
|
23
|
+
`pkgmgr.yaml`에서 소스 경로, 설치 타깃(bin/lib/data 등), release 루트, Git 키워드, 감시 주기, 기본 컬렉터 목록 등을 편집합니다. 기본 생성 위치는 `~/pkmgr/config/pkgmgr.yaml`이며, `--config`로 다른 경로를 지정할 수 있습니다. 상태/캐시 데이터는 추후 `~/pkmgr/local/state`, `~/pkmgr/cache`에 둘 예정입니다.
|
|
24
24
|
|
|
25
25
|
2) 환경 준비
|
|
26
26
|
```
|
|
@@ -16,7 +16,7 @@ def _add_make_config(sub):
|
|
|
16
16
|
p.add_argument(
|
|
17
17
|
"-o",
|
|
18
18
|
"--output",
|
|
19
|
-
default=
|
|
19
|
+
default=config.DEFAULT_MAIN_CONFIG,
|
|
20
20
|
help="path to write the main config (default: %(default)s)",
|
|
21
21
|
)
|
|
22
22
|
p.set_defaults(func=_handle_make_config)
|
|
@@ -31,27 +31,35 @@ def _add_init_snap(sub):
|
|
|
31
31
|
p = sub.add_parser(
|
|
32
32
|
"init-snap", help="take initial baseline snapshot for sources/install/pkg root"
|
|
33
33
|
)
|
|
34
|
-
p.add_argument(
|
|
34
|
+
p.add_argument(
|
|
35
|
+
"--config", default=config.DEFAULT_MAIN_CONFIG, help="config file path"
|
|
36
|
+
)
|
|
35
37
|
p.set_defaults(func=_handle_init_snap)
|
|
36
38
|
|
|
37
39
|
|
|
38
40
|
def _add_create_pkg(sub):
|
|
39
41
|
p = sub.add_parser("create-pkg", help="create a pkg folder and template")
|
|
40
42
|
p.add_argument("pkg_id", help="package identifier (e.g. 20240601)")
|
|
41
|
-
p.add_argument(
|
|
43
|
+
p.add_argument(
|
|
44
|
+
"--config", default=config.DEFAULT_MAIN_CONFIG, help="config file path"
|
|
45
|
+
)
|
|
42
46
|
p.set_defaults(func=_handle_create_pkg)
|
|
43
47
|
|
|
44
48
|
|
|
45
49
|
def _add_close_pkg(sub):
|
|
46
50
|
p = sub.add_parser("close-pkg", help="mark a pkg as closed and stop watching")
|
|
47
51
|
p.add_argument("pkg_id", help="package identifier to close")
|
|
48
|
-
p.add_argument(
|
|
52
|
+
p.add_argument(
|
|
53
|
+
"--config", default=config.DEFAULT_MAIN_CONFIG, help="config file path"
|
|
54
|
+
)
|
|
49
55
|
p.set_defaults(func=_handle_close_pkg)
|
|
50
56
|
|
|
51
57
|
|
|
52
58
|
def _add_watch(sub):
|
|
53
59
|
p = sub.add_parser("watch", help="start watcher/daemon to monitor pkgs")
|
|
54
|
-
p.add_argument(
|
|
60
|
+
p.add_argument(
|
|
61
|
+
"--config", default=config.DEFAULT_MAIN_CONFIG, help="config file path"
|
|
62
|
+
)
|
|
55
63
|
p.add_argument(
|
|
56
64
|
"--once",
|
|
57
65
|
action="store_true",
|
|
@@ -69,7 +77,9 @@ def _add_collect(sub):
|
|
|
69
77
|
dest="collectors",
|
|
70
78
|
help="specific collectors to run (default: all enabled)",
|
|
71
79
|
)
|
|
72
|
-
p.add_argument(
|
|
80
|
+
p.add_argument(
|
|
81
|
+
"--config", default=config.DEFAULT_MAIN_CONFIG, help="config file path"
|
|
82
|
+
)
|
|
73
83
|
p.set_defaults(func=_handle_collect)
|
|
74
84
|
|
|
75
85
|
|
|
@@ -77,7 +87,9 @@ def _add_export(sub):
|
|
|
77
87
|
p = sub.add_parser("export", help="export pkg data (excel/word/etc)")
|
|
78
88
|
p.add_argument("--pkg", required=True, help="package identifier")
|
|
79
89
|
p.add_argument("--format", choices=["excel", "word", "json"], required=True)
|
|
80
|
-
p.add_argument(
|
|
90
|
+
p.add_argument(
|
|
91
|
+
"--config", default=config.DEFAULT_MAIN_CONFIG, help="config file path"
|
|
92
|
+
)
|
|
81
93
|
p.set_defaults(func=_handle_export)
|
|
82
94
|
|
|
83
95
|
|
|
@@ -4,6 +4,14 @@ from __future__ import print_function
|
|
|
4
4
|
import os
|
|
5
5
|
import textwrap
|
|
6
6
|
|
|
7
|
+
# Default locations under the user's home directory.
|
|
8
|
+
BASE_DIR = os.path.expanduser("~/pkmgr")
|
|
9
|
+
DEFAULT_CONFIG_DIR = os.path.join(BASE_DIR, "config")
|
|
10
|
+
DEFAULT_STATE_DIR = os.path.join(BASE_DIR, "local", "state")
|
|
11
|
+
DEFAULT_CACHE_DIR = os.path.join(BASE_DIR, "cache")
|
|
12
|
+
DEFAULT_MAIN_CONFIG = os.path.join(DEFAULT_CONFIG_DIR, "pkgmgr.yaml")
|
|
13
|
+
|
|
14
|
+
|
|
7
15
|
try:
|
|
8
16
|
import yaml # type: ignore
|
|
9
17
|
except Exception:
|
|
@@ -53,8 +61,9 @@ collectors:
|
|
|
53
61
|
"""
|
|
54
62
|
|
|
55
63
|
|
|
56
|
-
def write_template(path):
|
|
64
|
+
def write_template(path=None):
|
|
57
65
|
"""Write the main pkgmgr.yaml template."""
|
|
66
|
+
path = path or DEFAULT_MAIN_CONFIG
|
|
58
67
|
target = os.path.abspath(path)
|
|
59
68
|
parent = os.path.dirname(target)
|
|
60
69
|
if parent and not os.path.exists(parent):
|
|
@@ -75,11 +84,12 @@ def write_pkg_template(path):
|
|
|
75
84
|
print("[create-pkg] wrote pkg template to %s" % target)
|
|
76
85
|
|
|
77
86
|
|
|
78
|
-
def load_main(path):
|
|
87
|
+
def load_main(path=None):
|
|
79
88
|
"""
|
|
80
89
|
Load main config YAML. For now this is a thin wrapper; will grow validation.
|
|
81
90
|
If PyYAML is missing, raise a clear error so installation can add it.
|
|
82
91
|
"""
|
|
92
|
+
path = path or DEFAULT_MAIN_CONFIG
|
|
83
93
|
if yaml is None:
|
|
84
94
|
raise RuntimeError(
|
|
85
95
|
"PyYAML not installed; install it or keep using templates manually"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pkgmgr-kunrunic
|
|
3
|
-
Version: 0.1.0.
|
|
3
|
+
Version: 0.1.0.dev2
|
|
4
4
|
Summary: Package management workflow scaffold.
|
|
5
5
|
Author: pkgmgr maintainers
|
|
6
6
|
License: MIT License
|
|
@@ -68,7 +68,7 @@ Dynamic: license-file
|
|
|
68
68
|
```
|
|
69
69
|
python -m pkgmgr.cli make-config -o pkgmgr.yaml
|
|
70
70
|
```
|
|
71
|
-
`pkgmgr.yaml`에서 소스 경로, 설치 타깃(bin/lib/data 등), release 루트, Git 키워드, 감시 주기, 기본 컬렉터 목록 등을 편집합니다.
|
|
71
|
+
`pkgmgr.yaml`에서 소스 경로, 설치 타깃(bin/lib/data 등), release 루트, Git 키워드, 감시 주기, 기본 컬렉터 목록 등을 편집합니다. 기본 생성 위치는 `~/pkmgr/config/pkgmgr.yaml`이며, `--config`로 다른 경로를 지정할 수 있습니다. 상태/캐시 데이터는 추후 `~/pkmgr/local/state`, `~/pkmgr/cache`에 둘 예정입니다.
|
|
72
72
|
|
|
73
73
|
2) 환경 준비
|
|
74
74
|
```
|
|
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.dev1 → pkgmgr_kunrunic-0.1.0.dev2}/pkgmgr/templates/pkgmgr.yaml.sample
RENAMED
|
File without changes
|
|
File without changes
|
{pkgmgr_kunrunic-0.1.0.dev1 → pkgmgr_kunrunic-0.1.0.dev2}/pkgmgr_kunrunic.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{pkgmgr_kunrunic-0.1.0.dev1 → pkgmgr_kunrunic-0.1.0.dev2}/pkgmgr_kunrunic.egg-info/entry_points.txt
RENAMED
|
File without changes
|
{pkgmgr_kunrunic-0.1.0.dev1 → pkgmgr_kunrunic-0.1.0.dev2}/pkgmgr_kunrunic.egg-info/not-zip-safe
RENAMED
|
File without changes
|
{pkgmgr_kunrunic-0.1.0.dev1 → pkgmgr_kunrunic-0.1.0.dev2}/pkgmgr_kunrunic.egg-info/requires.txt
RENAMED
|
File without changes
|
{pkgmgr_kunrunic-0.1.0.dev1 → pkgmgr_kunrunic-0.1.0.dev2}/pkgmgr_kunrunic.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|