clapp-pm 1.0.4__py3-none-any.whl → 1.0.6__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: clapp-pm
3
- Version: 1.0.4
3
+ Version: 1.0.6
4
4
  Summary: Lightweight cross-language app manager for Python and Lua
5
5
  Home-page: https://github.com/mburakmmm/clapp
6
6
  Author: Melih Burak Memiş
@@ -11,14 +11,14 @@ 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=LVu_IHHFxEvAsx7WxX04MD-jGXhRtwJzGTqDIieN9ao,4043
15
- package_runner.py,sha256=1aKQXTdHqfKFC0jZZ4qv_Io2-JS_WM6fWMwT7iunM2c,2668
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
19
19
  uninstall_command.py,sha256=rQYbZ-XMw8Xxw1fmgGdDaBQmgBGqyJ_rTBZkvEV5HV0,7066
20
20
  validate_command.py,sha256=idaujErzrwuZNT6DYCVTVwZqBDEEi1GTxIXAGBgKMKM,7623
21
- version_command.py,sha256=Zk0EIUc2TAj1bN7EHpTqWmI3m-mH9sUpRz3T828ovvY,4370
21
+ version_command.py,sha256=DZuYWtohSeM5PJNYCflBy36_k0vex3tYV2C8ixEA9ho,4259
22
22
  where_command.py,sha256=TcLoXLGmrPSHQuvlceVuuKBsfeadIwz-E0G_5okH14g,6420
23
23
  clapp-packages-repo/README.md,sha256=stsqg4c5qWcUZxRabvbD0DEwzjJEGDGvxpA4bGbzJqg,1688
24
24
  clapp-packages-repo/index.json,sha256=Z1tF-OZrWxMjue7q-nUMVJy1UhWop9zwh05gDqy5fCM,894
@@ -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.4.data/data/version.json,sha256=S7yOmQU4A-UqpUE3AX0vmjehgSS--fxuVEPG1YcIvDo,238
33
- clapp_pm-1.0.4.dist-info/licenses/LICENSE,sha256=_hryv9pKR6udRexceUYuoYCJGmYBz7e-vRuFWmm38UY,1075
32
+ clapp_pm-1.0.6.data/data/version.json,sha256=S7yOmQU4A-UqpUE3AX0vmjehgSS--fxuVEPG1YcIvDo,238
33
+ clapp_pm-1.0.6.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.4.dist-info/METADATA,sha256=q8ol9jO--HMNHDGJxsIWg32lq_vN6kTOGlUIJz_VVX4,3979
41
- clapp_pm-1.0.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
42
- clapp_pm-1.0.4.dist-info/entry_points.txt,sha256=7j-3pQVpQfnaVzUV83g7zlCA30ePlnXkhHLAGGz9xrQ,36
43
- clapp_pm-1.0.4.dist-info/top_level.txt,sha256=90PY3qqc7ZdaDsLvwHtQiUG0OZqpsjxw_zkjiTTFY0I,351
44
- clapp_pm-1.0.4.dist-info/RECORD,,
40
+ clapp_pm-1.0.6.dist-info/METADATA,sha256=fR3YBXHuGhZGI-gaVl-g7-GIRXW3D2pd783IhGax55M,3979
41
+ clapp_pm-1.0.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
42
+ clapp_pm-1.0.6.dist-info/entry_points.txt,sha256=7j-3pQVpQfnaVzUV83g7zlCA30ePlnXkhHLAGGz9xrQ,36
43
+ clapp_pm-1.0.6.dist-info/top_level.txt,sha256=90PY3qqc7ZdaDsLvwHtQiUG0OZqpsjxw_zkjiTTFY0I,351
44
+ clapp_pm-1.0.6.dist-info/RECORD,,
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 = "apps"
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
- app_path = os.path.join("apps", app_name)
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 = "apps"
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
- app_path = os.path.join("apps", app_name)
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
 
version_command.py CHANGED
@@ -13,26 +13,21 @@ from pathlib import Path
13
13
 
14
14
  def get_version_info():
15
15
  """Sürüm bilgilerini toplar"""
16
- # version.json dosyasından sürüm bilgisini oku
17
- version_file = Path("version.json")
18
-
19
- if version_file.exists():
20
- try:
21
- with open(version_file, 'r', encoding='utf-8') as f:
22
- version_data = json.load(f)
23
-
24
- app_name = version_data.get("name", "clapp")
25
- version = version_data.get("version", "1.0.0")
26
- author = version_data.get("author", "Bilinmiyor")
27
-
28
- except Exception:
29
- app_name = "clapp"
30
- version = "1.0.0"
31
- author = "Bilinmiyor"
32
- else:
16
+ # version.py dosyasından sürüm bilgisini oku
17
+ try:
18
+ from version import __version__, __author__, __email__, __description__
19
+ app_name = "clapp"
20
+ version = __version__
21
+ author = __author__
22
+ email = __email__
23
+ description = __description__
24
+ except ImportError:
25
+ # Fallback değerler
33
26
  app_name = "clapp"
34
- version = "1.0.0"
35
- author = "Bilinmiyor"
27
+ version = "1.0.5"
28
+ author = "Melih Burak Memiş"
29
+ email = "mburakmemiscy@gmail.com"
30
+ description = "Lightweight cross-language app manager for Python and Lua"
36
31
 
37
32
  # Sistem bilgileri
38
33
  python_version = f"{sys.version_info.major}.{sys.version_info.minor}.{sys.version_info.micro}"