clapp-pm 1.0.35__py3-none-any.whl → 1.0.37__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.37",
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.37
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=SnOlaviyTq_zLHRfnt6VZ82ZJ6tdUFJ8P2XIqByXgDA,15143
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=z20U0N3QzgR2-ECsQo4_pk2yjjJ2GFrs1NjmTBJDLqA,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.37.data/data/version.json,sha256=W5APykptrSDekx3Zgz5aXXHtmheryZFPp6_oZmTG4ok,239
71
+ clapp_pm-1.0.37.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.37.dist-info/METADATA,sha256=aUauxfbpLQAi8cr0vzyk7VwC5iWzqTVGBQxPpiV_fdM,3983
116
+ clapp_pm-1.0.37.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
117
+ clapp_pm-1.0.37.dist-info/entry_points.txt,sha256=7j-3pQVpQfnaVzUV83g7zlCA30ePlnXkhHLAGGz9xrQ,36
118
+ clapp_pm-1.0.37.dist-info/top_level.txt,sha256=-nbfxZD1zt1LMxzElOZyNhKpdwHhZD-d5ZWrwIArCtE,495
119
+ clapp_pm-1.0.37.dist-info/RECORD,,
publish_command.py CHANGED
@@ -134,34 +134,74 @@ 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
+ 1. which clapp konumundan arama
138
+ 2. pyenv which clapp konumundan arama
139
+ 3. Kesin konum kontrolü
140
+ 4. Fallback olarak mevcut çalışma dizininden arama
138
141
  Returns: (clapp_root, build_index_path) veya (None, None)
139
142
  """
140
143
  import os
144
+ import subprocess
141
145
 
142
146
  # Debug bilgisi
143
147
  print(f"🔍 Mevcut çalışma dizini: {os.getcwd()}")
144
148
  print(f"🔍 publish_command.py konumu: {os.path.dirname(os.path.abspath(__file__))}")
145
149
 
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
- ]
150
+ # 1. which clapp konumundan arama
151
+ try:
152
+ result = subprocess.run(['which', 'clapp'], capture_output=True, text=True)
153
+ if result.returncode == 0:
154
+ clapp_path = result.stdout.strip()
155
+ print(f"🔍 1. which clapp sonucu: {clapp_path}")
156
+
157
+ # clapp komutunun bulunduğu dizinden başlayarak yukarı çık
158
+ clapp_dir = os.path.dirname(clapp_path)
159
+ search_dir = clapp_dir
160
+
161
+ print(f"🔍 1. Arama: {clapp_dir} dizininden başlıyor...")
162
+ while search_dir != os.path.dirname(search_dir): # Root'a ulaşana kadar
163
+ build_index_path = os.path.join(search_dir, "build_index.py")
164
+ print(f" Kontrol ediliyor: {build_index_path}")
165
+ if os.path.exists(build_index_path):
166
+ print(f"✅ build_index.py which clapp yanında bulundu: {build_index_path}")
167
+ return search_dir, build_index_path
168
+ search_dir = os.path.dirname(search_dir)
169
+ except Exception as e:
170
+ print(f"⚠️ which clapp hatası: {e}")
154
171
 
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
172
+ # 2. pyenv which clapp konumundan arama
173
+ try:
174
+ result = subprocess.run(['pyenv', 'which', 'clapp'], capture_output=True, text=True)
175
+ if result.returncode == 0:
176
+ clapp_path = result.stdout.strip()
177
+ print(f"🔍 2. pyenv which clapp sonucu: {clapp_path}")
178
+
179
+ # clapp komutunun bulunduğu dizinden başlayarak yukarı çık
180
+ clapp_dir = os.path.dirname(clapp_path)
181
+ search_dir = clapp_dir
182
+
183
+ print(f"🔍 2. Arama: {clapp_dir} dizininden başlıyor...")
184
+ while search_dir != os.path.dirname(search_dir): # Root'a ulaşana kadar
185
+ build_index_path = os.path.join(search_dir, "build_index.py")
186
+ print(f" Kontrol ediliyor: {build_index_path}")
187
+ if os.path.exists(build_index_path):
188
+ print(f"✅ build_index.py pyenv which clapp yanında bulundu: {build_index_path}")
189
+ return search_dir, build_index_path
190
+ search_dir = os.path.dirname(search_dir)
191
+ except Exception as e:
192
+ print(f"⚠️ pyenv which clapp hatası: {e}")
193
+
194
+ # 3. Kesin konum kontrolü
195
+ clapp_home = "/Users/melihburakmemis/Desktop/clapp"
196
+ build_index_path = os.path.join(clapp_home, "build_index.py")
197
+ print(f"🔍 3. Kesin konum kontrolü: {build_index_path}")
198
+ if os.path.exists(build_index_path):
199
+ print(f"✅ build_index.py kesin konumda bulundu: {build_index_path}")
200
+ return clapp_home, build_index_path
161
201
 
162
- # 2. Mevcut çalışma dizininden başlayarak yukarı çık
202
+ # 4. Fallback: Mevcut çalışma dizininden başlayarak yukarı çık
163
203
  search_dir = os.getcwd()
164
- print(f"🔍 2. Arama: {search_dir} dizininden başlıyor...")
204
+ print(f"🔍 4. Fallback arama: {search_dir} dizininden başlıyor...")
165
205
  while search_dir != os.path.dirname(search_dir): # Root'a ulaşana kadar
166
206
  build_index_path = os.path.join(search_dir, "build_index.py")
167
207
  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.37"
6
6
  __author__ = "Melih Burak Memiş"
7
7
  __email__ = "mburakmemiscy@gmail.com"
8
8
  __description__ = "Lightweight cross-language app manager for Python and Lua"