clapp-pm 1.0.30__py3-none-any.whl → 1.0.32__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
  {
2
2
  "app_name": "clapp",
3
- "version": "1.0.30",
3
+ "version": "1.0.32",
4
4
  "author": "Melih Burak Memiş",
5
5
  "description": "Basit ve güçlü paket yöneticisi",
6
6
  "source": "https://github.com/melihburak/clapp",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: clapp-pm
3
- Version: 1.0.30
3
+ Version: 1.0.32
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ş
@@ -18,12 +18,12 @@ package_runner.py,sha256=yTWIlIXRBQq-FiuoS2qifnJHLajgDOnMv2wPPFL1HtI,5787
18
18
  package_signing.py,sha256=ModMAzLk08rkI6zd8QKhyCH5BFbB-7dy8pwqKYatFQo,4579
19
19
  post_install_hint.py,sha256=wjMPCgRurZiGu6hv_se-XA36KqBCdeYdRCD1q7FrJzQ,4918
20
20
  progress_utils.py,sha256=ZH73QNLd5mI4h-JU0hSFR2OU8lesr2XteSZdmFD0bFA,5995
21
- publish_command.py,sha256=SWSRkxog8IbBo00eKiRXu27hquMiWYVYL-WeLOj7wf8,10954
21
+ publish_command.py,sha256=q_jSLws3TWvnUdEjB-ZFaC652DpCz25n6OsjKALGSD0,11983
22
22
  remote_registry.py,sha256=rPBIM_ESXUt0br5cARQ4YbzUoTda0G4e1KGzfyYMbpQ,8235
23
23
  smart_search.py,sha256=R5O5CDXqlQc-N-6R6D5k36_-arCB-wnKfmWr5zMYWUI,15741
24
24
  uninstall_command.py,sha256=rQYbZ-XMw8Xxw1fmgGdDaBQmgBGqyJ_rTBZkvEV5HV0,7066
25
25
  validate_command.py,sha256=idaujErzrwuZNT6DYCVTVwZqBDEEi1GTxIXAGBgKMKM,7623
26
- version.py,sha256=P-ts_IRURjXmZfTghaZvYOGKJyUFXZKknLxGPqk9hpQ,224
26
+ version.py,sha256=l_nM5Lgj15JaiQumxiU0jhH92i2L9akHBLSbaK6O1Bs,224
27
27
  version_command.py,sha256=DZuYWtohSeM5PJNYCflBy36_k0vex3tYV2C8ixEA9ho,4259
28
28
  version_manager.py,sha256=fpC7jxhIW1wZhJ9IkVwyqkgJN4mhBjUUbaLefXLDMiM,11423
29
29
  where_command.py,sha256=TcLoXLGmrPSHQuvlceVuuKBsfeadIwz-E0G_5okH14g,6420
@@ -67,8 +67,8 @@ clapp-packages-repo/packages/cloud-web-browser/requirements.txt,sha256=fJMjUewTq
67
67
  clapp-packages-repo/packages/test-app-2/README.md,sha256=AqVgCZ-cwXBuDHFoJdYkAHAuB6SjSjqXQrjhLu0q7cc,964
68
68
  clapp-packages-repo/packages/test-app-2/main.py,sha256=24IEuyHSuPWJp2-xYhInUNEWqeueGxAO3NBgHkEgLdQ,1562
69
69
  clapp-packages-repo/packages/test-app-2/manifest.json,sha256=dzxPwC-GebvxX9DodLAtdRB0WsZBm204uGGsHbpGhyY,286
70
- clapp_pm-1.0.30.data/data/version.json,sha256=7CkHBB4980KFaejsIyOvgD1Tp8PM6owbM5ns9q3mQaI,239
71
- clapp_pm-1.0.30.dist-info/licenses/LICENSE,sha256=_hryv9pKR6udRexceUYuoYCJGmYBz7e-vRuFWmm38UY,1075
70
+ clapp_pm-1.0.32.data/data/version.json,sha256=0E0Gq4wY638ruK5tRUyzmTH5uLwpOs56c8lCYOjXGDg,239
71
+ clapp_pm-1.0.32.dist-info/licenses/LICENSE,sha256=_hryv9pKR6udRexceUYuoYCJGmYBz7e-vRuFWmm38UY,1075
72
72
  docs/developer_guide.md,sha256=B-S141TSNy7e8T9KaV6Fr-ZAFhYqqgcwqWijjX0C2Xc,7336
73
73
  packages/cloud-finder/README.md,sha256=3W5VWCpv1HG9qIube4ytUVK8tpXbk1pB_rSEQU3auQw,5868
74
74
  packages/cloud-finder/main.py,sha256=ivPzRbL3Qlu10mSarpwff9s7kOyxqa7L3jPCaDbdLEg,39106
@@ -92,8 +92,8 @@ test-app/manifest.json,sha256=MM1nl5Bljrnsik3fwsrgFBchfgwIb2REoBwwzNpFHQU,284
92
92
  test-app-2/README.md,sha256=AqVgCZ-cwXBuDHFoJdYkAHAuB6SjSjqXQrjhLu0q7cc,964
93
93
  test-app-2/main.py,sha256=24IEuyHSuPWJp2-xYhInUNEWqeueGxAO3NBgHkEgLdQ,1562
94
94
  test-app-2/manifest.json,sha256=dzxPwC-GebvxX9DodLAtdRB0WsZBm204uGGsHbpGhyY,286
95
- clapp_pm-1.0.30.dist-info/METADATA,sha256=YyZ6Z3l2QGutTyEG1NnbECoeYWZldPAK48XUx0HLuRk,3983
96
- clapp_pm-1.0.30.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
97
- clapp_pm-1.0.30.dist-info/entry_points.txt,sha256=7j-3pQVpQfnaVzUV83g7zlCA30ePlnXkhHLAGGz9xrQ,36
98
- clapp_pm-1.0.30.dist-info/top_level.txt,sha256=-nbfxZD1zt1LMxzElOZyNhKpdwHhZD-d5ZWrwIArCtE,495
99
- clapp_pm-1.0.30.dist-info/RECORD,,
95
+ clapp_pm-1.0.32.dist-info/METADATA,sha256=imR8QaDNlZOiy1LV8oPRg_cwTGcrbNkSzT2pEpmT08U,3983
96
+ clapp_pm-1.0.32.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
97
+ clapp_pm-1.0.32.dist-info/entry_points.txt,sha256=7j-3pQVpQfnaVzUV83g7zlCA30ePlnXkhHLAGGz9xrQ,36
98
+ clapp_pm-1.0.32.dist-info/top_level.txt,sha256=-nbfxZD1zt1LMxzElOZyNhKpdwHhZD-d5ZWrwIArCtE,495
99
+ clapp_pm-1.0.32.dist-info/RECORD,,
publish_command.py CHANGED
@@ -131,24 +131,43 @@ def copy_app_to_packages(source_folder: str, app_name: str) -> Tuple[bool, str]:
131
131
  except Exception as e:
132
132
  return False, f"Kopyalama hatası: {e}"
133
133
 
134
+ def find_clapp_root_with_build_index():
135
+ """
136
+ Mevcut dizinden başlayarak yukarıya doğru build_index.py ve ana clapp dizinini bulur.
137
+ Returns: (clapp_root, build_index_path) veya (None, None)
138
+ """
139
+ import os
140
+ search_dir = os.getcwd()
141
+ while search_dir != os.path.dirname(search_dir): # Root'a ulaşana kadar
142
+ build_index_path = os.path.join(search_dir, "build_index.py")
143
+ if os.path.exists(build_index_path):
144
+ return search_dir, build_index_path
145
+ search_dir = os.path.dirname(search_dir)
146
+ return None, None
147
+
148
+
134
149
  def update_index() -> Tuple[bool, str]:
135
150
  """
136
151
  build_index.py script'ini çalıştırarak index.json'u günceller
137
-
138
- Returns:
139
- (success, message)
152
+ Returns: (success, message)
140
153
  """
141
154
  try:
142
- # build_index.py'yi çalıştır
143
- result = subprocess.run([
144
- sys.executable, "build_index.py"
145
- ], capture_output=True, text=True, cwd=".")
155
+ clapp_root, build_index_path = find_clapp_root_with_build_index()
156
+ if not clapp_root or not build_index_path:
157
+ return False, "Ana clapp dizini veya build_index.py bulunamadı. Lütfen komutu ana dizinden veya bir alt klasörden çalıştırın."
158
+
159
+ # Debug bilgisi
160
+ print(f"🔍 Bulunan clapp_root: {clapp_root}")
161
+ print(f"🔍 Bulunan build_index_path: {build_index_path}")
146
162
 
163
+ # build_index.py'yi ana dizinde çalıştır
164
+ result = subprocess.run([
165
+ sys.executable, build_index_path
166
+ ], capture_output=True, text=True, cwd=clapp_root)
147
167
  if result.returncode == 0:
148
168
  return True, "Index başarıyla güncellendi"
149
169
  else:
150
- return False, f"Index güncelleme hatası: {result.stderr}"
151
-
170
+ return False, f"Index güncelleme hatası: {result.stderr}\nÇalıştırılan dizin: {clapp_root}"
152
171
  except Exception as e:
153
172
  return False, f"Index script çalıştırılamadı: {e}"
154
173
 
version.py CHANGED
@@ -2,7 +2,7 @@
2
2
  Version information for clapp-pm package.
3
3
  """
4
4
 
5
- __version__ = "1.0.30"
5
+ __version__ = "1.0.32"
6
6
  __author__ = "Melih Burak Memiş"
7
7
  __email__ = "mburakmemiscy@gmail.com"
8
8
  __description__ = "Lightweight cross-language app manager for Python and Lua"