clapp-pm 1.0.35__py3-none-any.whl → 1.0.36__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.35",
3
+ "version": "1.0.36",
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.35
3
+ Version: 1.0.36
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=rN5Bt242SpB3uufhHturzDEMGLe-SnbV1f_fnkuhgXo,13147
21
+ publish_command.py,sha256=V_ijq3SClBVlm3vKDBNob4D7G_Lq4vPFw9qjRmSGzIc,14350
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=ihyValjEutMTnQFrSqyewYcqxgdGNyQdEoZBBzbvPYs,224
26
+ version.py,sha256=jUUg7GGr7aTJkggXL5OuUgLM-ZDfqRxBTWWjEIceD4A,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.35.data/data/version.json,sha256=ollSKlk0cszNWgASZplBpHmwRzyHNVcxtphvYCrh9-I,239
71
- clapp_pm-1.0.35.dist-info/licenses/LICENSE,sha256=_hryv9pKR6udRexceUYuoYCJGmYBz7e-vRuFWmm38UY,1075
70
+ clapp_pm-1.0.36.data/data/version.json,sha256=qYtZqMA2TzF5nSwSfJHIdXjZj1Gg9NeGfy8qnDw9-r0,239
71
+ clapp_pm-1.0.36.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
@@ -112,8 +112,8 @@ test-app/packages/test-app/manifest.json,sha256=_oJaNcbc7RINIQZ8ivzp3I75hUU2pth1
112
112
  test-app-2/README.md,sha256=AqVgCZ-cwXBuDHFoJdYkAHAuB6SjSjqXQrjhLu0q7cc,964
113
113
  test-app-2/main.py,sha256=24IEuyHSuPWJp2-xYhInUNEWqeueGxAO3NBgHkEgLdQ,1562
114
114
  test-app-2/manifest.json,sha256=dzxPwC-GebvxX9DodLAtdRB0WsZBm204uGGsHbpGhyY,286
115
- clapp_pm-1.0.35.dist-info/METADATA,sha256=cloGZiSNL3WjmHCUM_ALEjS8QSRTn350h0AQHrRgrEw,3983
116
- clapp_pm-1.0.35.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
117
- clapp_pm-1.0.35.dist-info/entry_points.txt,sha256=7j-3pQVpQfnaVzUV83g7zlCA30ePlnXkhHLAGGz9xrQ,36
118
- clapp_pm-1.0.35.dist-info/top_level.txt,sha256=-nbfxZD1zt1LMxzElOZyNhKpdwHhZD-d5ZWrwIArCtE,495
119
- clapp_pm-1.0.35.dist-info/RECORD,,
115
+ clapp_pm-1.0.36.dist-info/METADATA,sha256=XlaVLecjnJ8CSVv2VwoMXKyf04pytW71znasqS1AUM4,3983
116
+ clapp_pm-1.0.36.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
117
+ clapp_pm-1.0.36.dist-info/entry_points.txt,sha256=7j-3pQVpQfnaVzUV83g7zlCA30ePlnXkhHLAGGz9xrQ,36
118
+ clapp_pm-1.0.36.dist-info/top_level.txt,sha256=-nbfxZD1zt1LMxzElOZyNhKpdwHhZD-d5ZWrwIArCtE,495
119
+ clapp_pm-1.0.36.dist-info/RECORD,,
publish_command.py CHANGED
@@ -134,34 +134,58 @@ def copy_app_to_packages(source_folder: str, app_name: str) -> Tuple[bool, str]:
134
134
  def find_clapp_root_with_build_index():
135
135
  """
136
136
  Ana clapp dizinini ve build_index.py'yi bulur.
137
- Önce bilinen ana clapp dizinlerini kontrol eder, sonra mevcut çalışma dizininden arar.
137
+ clapp komutunun çalıştırıldığı path'den başlayarak arar.
138
138
  Returns: (clapp_root, build_index_path) veya (None, None)
139
139
  """
140
140
  import os
141
+ import subprocess
141
142
 
142
143
  # Debug bilgisi
143
144
  print(f"🔍 Mevcut çalışma dizini: {os.getcwd()}")
144
145
  print(f"🔍 publish_command.py konumu: {os.path.dirname(os.path.abspath(__file__))}")
145
146
 
146
- # 1. Bilinen ana clapp dizinlerini kontrol et
147
- known_paths = [
148
- "/Users/melihburakmemis/Desktop/clapp", # macOS
149
- "/home/melihburakmemis/Desktop/clapp", # Linux
150
- "C:\\Users\\melihburakmemis\\Desktop\\clapp", # Windows
151
- os.path.expanduser("~/Desktop/clapp"), # Kullanıcının Desktop'ı
152
- os.path.expanduser("~/clapp"), # Kullanıcının home dizini
153
- ]
154
-
155
- for clapp_home in known_paths:
156
- build_index_path = os.path.join(clapp_home, "build_index.py")
157
- print(f"🔍 1. Kontrol ediliyor: {build_index_path}")
158
- if os.path.exists(build_index_path):
159
- print(f"✅ build_index.py bilinen yolda bulundu: {build_index_path}")
160
- return clapp_home, build_index_path
147
+ # 1. clapp komutunun konumunu bul ve oradan arama yap
148
+ try:
149
+ # clapp komutunun tam yolunu bul
150
+ if os.name == 'nt': # Windows
151
+ clapp_cmd = 'clapp.exe'
152
+ else: # Unix/Linux/macOS
153
+ clapp_cmd = 'clapp'
154
+
155
+ # Önce which clapp dene
156
+ result = subprocess.run(['which', clapp_cmd], capture_output=True, text=True)
157
+ if result.returncode == 0:
158
+ clapp_path = result.stdout.strip()
159
+ print(f"🔍 1. clapp komutu bulundu: {clapp_path}")
160
+
161
+ # Eğer pyenv shim ise, gerçek yolu bul
162
+ if 'pyenv/shims' in clapp_path:
163
+ print("🔍 pyenv shim tespit edildi, gerçek yolu arıyor...")
164
+ pyenv_result = subprocess.run(['pyenv', 'which', clapp_cmd], capture_output=True, text=True)
165
+ if pyenv_result.returncode == 0:
166
+ clapp_path = pyenv_result.stdout.strip()
167
+ print(f"🔍 Gerçek clapp yolu: {clapp_path}")
168
+
169
+ # clapp komutunun bulunduğu dizinden başlayarak yukarı çık
170
+ clapp_dir = os.path.dirname(clapp_path)
171
+ search_dir = clapp_dir
172
+
173
+ print(f"🔍 1. Arama: {clapp_dir} dizininden başlıyor...")
174
+ while search_dir != os.path.dirname(search_dir): # Root'a ulaşana kadar
175
+ build_index_path = os.path.join(search_dir, "build_index.py")
176
+ print(f" Kontrol ediliyor: {build_index_path}")
177
+ if os.path.exists(build_index_path):
178
+ print(f"✅ build_index.py clapp komutu yanında bulundu: {build_index_path}")
179
+ return search_dir, build_index_path
180
+ search_dir = os.path.dirname(search_dir)
181
+ else:
182
+ print(f"⚠️ clapp komutu bulunamadı (which {clapp_cmd} başarısız)")
183
+ except Exception as e:
184
+ print(f"⚠️ clapp komutu aranırken hata: {e}")
161
185
 
162
- # 2. Mevcut çalışma dizininden başlayarak yukarı çık
186
+ # 2. Fallback: Mevcut çalışma dizininden başlayarak yukarı çık
163
187
  search_dir = os.getcwd()
164
- print(f"🔍 2. Arama: {search_dir} dizininden başlıyor...")
188
+ print(f"🔍 2. Fallback arama: {search_dir} dizininden başlıyor...")
165
189
  while search_dir != os.path.dirname(search_dir): # Root'a ulaşana kadar
166
190
  build_index_path = os.path.join(search_dir, "build_index.py")
167
191
  print(f" Kontrol ediliyor: {build_index_path}")
version.py CHANGED
@@ -2,7 +2,7 @@
2
2
  Version information for clapp-pm package.
3
3
  """
4
4
 
5
- __version__ = "1.0.35"
5
+ __version__ = "1.0.36"
6
6
  __author__ = "Melih Burak Memiş"
7
7
  __email__ = "mburakmemiscy@gmail.com"
8
8
  __description__ = "Lightweight cross-language app manager for Python and Lua"