clapp-pm 1.0.5__py3-none-any.whl → 1.0.7__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.5
3
+ Version: 1.0.7
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ş
@@ -1,7 +1,7 @@
1
1
  check_env.py,sha256=5DJwdALpRe1TLbzF_Zta-zD312J065-pPmsJZ17xRDg,4425
2
2
  clapp_core.py,sha256=5tkzt7J4GKSv7Chv5Zoe9N0dv_sWlYGqYxmIn3dhEPY,1764
3
3
  clean_command.py,sha256=nmzitkdNo0Ovgi-tGPUxa9mkAIFzwEzGNaTm82MUdvw,6806
4
- cli_commands.py,sha256=ffJeRJTeipzHkSXhIUKrGzmymqtuv9bKCCQ2WGMQUD4,12482
4
+ cli_commands.py,sha256=7tXrBE0pPkuaFIbsIGXg3RxH7GwisL-Zz2N2oMGe2GQ,12682
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
@@ -18,7 +18,7 @@ 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.5.data/data/version.json,sha256=S7yOmQU4A-UqpUE3AX0vmjehgSS--fxuVEPG1YcIvDo,238
33
- clapp_pm-1.0.5.dist-info/licenses/LICENSE,sha256=_hryv9pKR6udRexceUYuoYCJGmYBz7e-vRuFWmm38UY,1075
32
+ clapp_pm-1.0.7.data/data/version.json,sha256=S7yOmQU4A-UqpUE3AX0vmjehgSS--fxuVEPG1YcIvDo,238
33
+ clapp_pm-1.0.7.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.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,,
40
+ clapp_pm-1.0.7.dist-info/METADATA,sha256=orUYYkNrisLjX4-JJpwLRqOOjj9WTNt5azXxmKCI57w,3979
41
+ clapp_pm-1.0.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
42
+ clapp_pm-1.0.7.dist-info/entry_points.txt,sha256=7j-3pQVpQfnaVzUV83g7zlCA30ePlnXkhHLAGGz9xrQ,36
43
+ clapp_pm-1.0.7.dist-info/top_level.txt,sha256=90PY3qqc7ZdaDsLvwHtQiUG0OZqpsjxw_zkjiTTFY0I,351
44
+ clapp_pm-1.0.7.dist-info/RECORD,,
cli_commands.py CHANGED
@@ -11,6 +11,7 @@ from publish_command import publish_app
11
11
  from install_command import install_app
12
12
  from uninstall_command import uninstall_app
13
13
  from list_command import list_apps
14
+ from version_command import print_version
14
15
 
15
16
  def install_from_remote(app_name, force=False):
16
17
  """
@@ -385,8 +386,13 @@ def handle_uninstall_command(args):
385
386
 
386
387
  return uninstall_from_local(args.app_name, args.yes)
387
388
 
389
+ def handle_version_command(args):
390
+ """Version komutunu işler"""
391
+ format_type = getattr(args, 'format', 'default')
392
+ return print_version(format_type)
393
+
388
394
  def handle_list_command(args):
389
- """List komutunu işler"""
395
+ """List komutu işler"""
390
396
  format_type = getattr(args, 'format', 'table')
391
397
  language_filter = getattr(args, 'language', None)
392
398
  search_term = getattr(args, 'search', None)
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}"