clapp-pm 1.0.3__py3-none-any.whl → 1.0.5__py3-none-any.whl
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.
- {clapp_pm-1.0.3.dist-info → clapp_pm-1.0.5.dist-info}/METADATA +1 -1
- {clapp_pm-1.0.3.dist-info → clapp_pm-1.0.5.dist-info}/RECORD +10 -10
- install_command.py +6 -3
- package_registry.py +17 -13
- package_runner.py +3 -1
- {clapp_pm-1.0.3.data → clapp_pm-1.0.5.data}/data/version.json +0 -0
- {clapp_pm-1.0.3.dist-info → clapp_pm-1.0.5.dist-info}/WHEEL +0 -0
- {clapp_pm-1.0.3.dist-info → clapp_pm-1.0.5.dist-info}/entry_points.txt +0 -0
- {clapp_pm-1.0.3.dist-info → clapp_pm-1.0.5.dist-info}/licenses/LICENSE +0 -0
- {clapp_pm-1.0.3.dist-info → clapp_pm-1.0.5.dist-info}/top_level.txt +0 -0
@@ -5,14 +5,14 @@ cli_commands.py,sha256=ffJeRJTeipzHkSXhIUKrGzmymqtuv9bKCCQ2WGMQUD4,12482
|
|
5
5
|
dependency_resolver.py,sha256=slskJhZJ5rRIv0Gcefd-cakHxdYl45bPwE4s_0APpsA,8562
|
6
6
|
doctor_command.py,sha256=jLnvpU9Oglq553bwgF7fhAcUChZTMD2Qle9ZxNHPefc,7680
|
7
7
|
info_command.py,sha256=b74Pl1-x_PSezALx-lS3FkEcVNTF7a9McTKk5XTDhjM,5629
|
8
|
-
install_command.py,sha256=
|
8
|
+
install_command.py,sha256=jnvTjgJjBiohIlcHf-74EW8cxZqx8vcirnZ3k2O-sgw,7907
|
9
9
|
installer.py,sha256=EkQ5Z1Cq_Z5u_Ssv2Nc8hryI5E97x4D1QVjSqEHe0dE,10619
|
10
10
|
list_command.py,sha256=qbeocvrg2eXRklxbYS3audQhYHGXTlMBk_tNh1cMxd0,8391
|
11
11
|
main.py,sha256=aLwnLGv5AOjRsEBCyJKANKFKccpGEEo8PNe2_Mgm7w4,11806
|
12
12
|
manifest_schema.py,sha256=IxfKuYgcIhILJrDMOm5vjSJn2jp7hPpUoxtjPMCPvbE,2201
|
13
13
|
manifest_validator.py,sha256=MTI6c_sYfVakQ6aQUu5_qkukTh4H1FcSrT4uRdE6xIg,7990
|
14
|
-
package_registry.py,sha256=
|
15
|
-
package_runner.py,sha256=
|
14
|
+
package_registry.py,sha256=Rco15cvz-6lpCEDdCzwGZNCKtvVhlFIsEPy-WFAESMM,4233
|
15
|
+
package_runner.py,sha256=jbn9OJDU4p-v63dO66C5EBSbT0dlWQIjtp7x2VE6lU0,2758
|
16
16
|
post_install_hint.py,sha256=wjMPCgRurZiGu6hv_se-XA36KqBCdeYdRCD1q7FrJzQ,4918
|
17
17
|
publish_command.py,sha256=P05AFbu_mxcc1yAiwShN5Yi9PX1o_7TFXD1mowJcqJE,8589
|
18
18
|
remote_registry.py,sha256=rPBIM_ESXUt0br5cARQ4YbzUoTda0G4e1KGzfyYMbpQ,8235
|
@@ -29,16 +29,16 @@ clapp-packages-repo/packages/test-app/main.py,sha256=rN4Zo9u53bIVjcUlul059knx6v-
|
|
29
29
|
clapp-packages-repo/packages/test-app/manifest.json,sha256=kJe4sjYdPRNZD5hEeca80jj3lxeEWBMJoZ59RW7tiKI,118
|
30
30
|
clapp-packages-repo/packages/test-app2/main.py,sha256=lHkbjTmehFY4VuYYF2dYiVBH7W0oqHHeY0I5W85iPTY,35
|
31
31
|
clapp-packages-repo/packages/test-app2/manifest.json,sha256=vshXJrtRxBc_ISM6E8KT5BSmveMbjWszenlgxgSN86w,121
|
32
|
-
clapp_pm-1.0.
|
33
|
-
clapp_pm-1.0.
|
32
|
+
clapp_pm-1.0.5.data/data/version.json,sha256=S7yOmQU4A-UqpUE3AX0vmjehgSS--fxuVEPG1YcIvDo,238
|
33
|
+
clapp_pm-1.0.5.dist-info/licenses/LICENSE,sha256=_hryv9pKR6udRexceUYuoYCJGmYBz7e-vRuFWmm38UY,1075
|
34
34
|
packages/hello-python/main.py,sha256=Dy-Ov-Vumj8oQYI6qKWU6fIKD0gCB8b7KzAJVrGyLMg,1429
|
35
35
|
packages/hello-python/manifest.json,sha256=fJOVJk_2rwpRJ6IeWMPieklJD3gAR279jvuqRH69s90,179
|
36
36
|
packages/test-app/main.py,sha256=rN4Zo9u53bIVjcUlul059knx6v-2Cd1MFftPS57FIRU,33
|
37
37
|
packages/test-app/manifest.json,sha256=kJe4sjYdPRNZD5hEeca80jj3lxeEWBMJoZ59RW7tiKI,118
|
38
38
|
packages/test-app2/main.py,sha256=lHkbjTmehFY4VuYYF2dYiVBH7W0oqHHeY0I5W85iPTY,35
|
39
39
|
packages/test-app2/manifest.json,sha256=vshXJrtRxBc_ISM6E8KT5BSmveMbjWszenlgxgSN86w,121
|
40
|
-
clapp_pm-1.0.
|
41
|
-
clapp_pm-1.0.
|
42
|
-
clapp_pm-1.0.
|
43
|
-
clapp_pm-1.0.
|
44
|
-
clapp_pm-1.0.
|
40
|
+
clapp_pm-1.0.5.dist-info/METADATA,sha256=u980cbIXXy5sU_rMNaDqwF2r__oQc7T-JwbWlqAIOFM,3979
|
41
|
+
clapp_pm-1.0.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
42
|
+
clapp_pm-1.0.5.dist-info/entry_points.txt,sha256=7j-3pQVpQfnaVzUV83g7zlCA30ePlnXkhHLAGGz9xrQ,36
|
43
|
+
clapp_pm-1.0.5.dist-info/top_level.txt,sha256=90PY3qqc7ZdaDsLvwHtQiUG0OZqpsjxw_zkjiTTFY0I,351
|
44
|
+
clapp_pm-1.0.5.dist-info/RECORD,,
|
install_command.py
CHANGED
@@ -82,7 +82,7 @@ def download_app_from_github(app_info: Dict[str, Any], temp_dir: str) -> Tuple[b
|
|
82
82
|
"""
|
83
83
|
try:
|
84
84
|
repo_url = app_info.get('repo_url', 'https://github.com/mburakmmm/clapp-packages')
|
85
|
-
|
85
|
+
app_name = app_info['name']
|
86
86
|
|
87
87
|
# GitHub zip URL'si oluştur
|
88
88
|
if 'github.com' in repo_url:
|
@@ -113,10 +113,13 @@ def download_app_from_github(app_info: Dict[str, Any], temp_dir: str) -> Tuple[b
|
|
113
113
|
return False, "Çıkarılan klasör bulunamadı"
|
114
114
|
|
115
115
|
extracted_folder = extracted_folders[0]
|
116
|
-
|
116
|
+
|
117
|
+
# YENİ: packages/{app_name} klasörünü bul
|
118
|
+
packages_path = os.path.join(temp_dir, extracted_folder, "packages")
|
119
|
+
app_source_path = os.path.join(packages_path, app_name)
|
117
120
|
|
118
121
|
if not os.path.exists(app_source_path):
|
119
|
-
return False, f"Uygulama klasörü bulunamadı: {
|
122
|
+
return False, f"Uygulama klasörü bulunamadı: packages/{app_name}"
|
120
123
|
|
121
124
|
return True, app_source_path
|
122
125
|
|
package_registry.py
CHANGED
@@ -2,6 +2,19 @@ import os
|
|
2
2
|
import json
|
3
3
|
from manifest_schema import validate_manifest
|
4
4
|
|
5
|
+
def get_apps_directory():
|
6
|
+
"""Uygulamaların kurulacağı dizini döndürür"""
|
7
|
+
from pathlib import Path
|
8
|
+
# Kullanıcının home dizininde .clapp klasörü oluştur
|
9
|
+
home_dir = Path.home()
|
10
|
+
clapp_dir = home_dir / ".clapp"
|
11
|
+
apps_dir = clapp_dir / "apps"
|
12
|
+
|
13
|
+
# Klasörleri oluştur
|
14
|
+
apps_dir.mkdir(parents=True, exist_ok=True)
|
15
|
+
|
16
|
+
return str(apps_dir)
|
17
|
+
|
5
18
|
def list_packages():
|
6
19
|
"""
|
7
20
|
Yüklü paketlerin listesini döndürür.
|
@@ -10,12 +23,7 @@ def list_packages():
|
|
10
23
|
list: Yüklü paketlerin listesi (dict formatında)
|
11
24
|
"""
|
12
25
|
packages = []
|
13
|
-
apps_dir =
|
14
|
-
|
15
|
-
# apps dizini yoksa oluştur
|
16
|
-
if not os.path.exists(apps_dir):
|
17
|
-
os.makedirs(apps_dir)
|
18
|
-
return packages
|
26
|
+
apps_dir = get_apps_directory()
|
19
27
|
|
20
28
|
# apps dizinindeki her klasörü kontrol et
|
21
29
|
for app_name in os.listdir(apps_dir):
|
@@ -57,7 +65,8 @@ def get_manifest(app_name):
|
|
57
65
|
Returns:
|
58
66
|
dict or None: Manifest bilgileri veya None (bulunamazsa)
|
59
67
|
"""
|
60
|
-
|
68
|
+
apps_dir = get_apps_directory()
|
69
|
+
app_path = os.path.join(apps_dir, app_name)
|
61
70
|
manifest_path = os.path.join(app_path, "manifest.json")
|
62
71
|
|
63
72
|
if not os.path.exists(manifest_path):
|
@@ -96,12 +105,7 @@ def list_app_names():
|
|
96
105
|
list: Uygulama isimlerinin listesi (string formatında)
|
97
106
|
"""
|
98
107
|
app_names = []
|
99
|
-
apps_dir =
|
100
|
-
|
101
|
-
# apps dizini yoksa oluştur
|
102
|
-
if not os.path.exists(apps_dir):
|
103
|
-
os.makedirs(apps_dir)
|
104
|
-
return app_names
|
108
|
+
apps_dir = get_apps_directory()
|
105
109
|
|
106
110
|
# apps dizinindeki her klasörü kontrol et
|
107
111
|
for app_name in os.listdir(apps_dir):
|
package_runner.py
CHANGED
@@ -21,7 +21,9 @@ def run_app(app_name):
|
|
21
21
|
return False
|
22
22
|
|
23
23
|
# Uygulama dizini ve giriş dosyası
|
24
|
-
|
24
|
+
from package_registry import get_apps_directory
|
25
|
+
apps_dir = get_apps_directory()
|
26
|
+
app_path = os.path.join(apps_dir, app_name)
|
25
27
|
entry_file = manifest['entry']
|
26
28
|
entry_path = os.path.join(app_path, entry_file)
|
27
29
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|