clapp-pm 1.0.36__py3-none-any.whl → 1.0.38__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.
- {clapp_pm-1.0.36.data → clapp_pm-1.0.38.data}/data/version.json +1 -1
- {clapp_pm-1.0.36.dist-info → clapp_pm-1.0.38.dist-info}/METADATA +1 -1
- {clapp_pm-1.0.36.dist-info → clapp_pm-1.0.38.dist-info}/RECORD +9 -9
- publish_command.py +51 -26
- version.py +1 -1
- {clapp_pm-1.0.36.dist-info → clapp_pm-1.0.38.dist-info}/WHEEL +0 -0
- {clapp_pm-1.0.36.dist-info → clapp_pm-1.0.38.dist-info}/entry_points.txt +0 -0
- {clapp_pm-1.0.36.dist-info → clapp_pm-1.0.38.dist-info}/licenses/LICENSE +0 -0
- {clapp_pm-1.0.36.dist-info → clapp_pm-1.0.38.dist-info}/top_level.txt +0 -0
@@ -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=
|
21
|
+
publish_command.py,sha256=83uzYtwA1Cbl9P9JPg0nNuanhVlnAybOQCfMFs3X070,15572
|
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=
|
26
|
+
version.py,sha256=n-FoQ3uEUNjyHd6Fu9tuVUriTpYdpqoA9Y_5jzBT3Ic,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.
|
71
|
-
clapp_pm-1.0.
|
70
|
+
clapp_pm-1.0.38.data/data/version.json,sha256=AffaC2y3eyppT1gpgQG_UGNUbMmz9ZpiJHUSRTYH1QE,239
|
71
|
+
clapp_pm-1.0.38.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.
|
116
|
-
clapp_pm-1.0.
|
117
|
-
clapp_pm-1.0.
|
118
|
-
clapp_pm-1.0.
|
119
|
-
clapp_pm-1.0.
|
115
|
+
clapp_pm-1.0.38.dist-info/METADATA,sha256=SHJzgA5nyWJv9cl7Mreq3lVRM-Tyiu3fMLeo5xEWztA,3983
|
116
|
+
clapp_pm-1.0.38.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
117
|
+
clapp_pm-1.0.38.dist-info/entry_points.txt,sha256=7j-3pQVpQfnaVzUV83g7zlCA30ePlnXkhHLAGGz9xrQ,36
|
118
|
+
clapp_pm-1.0.38.dist-info/top_level.txt,sha256=-nbfxZD1zt1LMxzElOZyNhKpdwHhZD-d5ZWrwIArCtE,495
|
119
|
+
clapp_pm-1.0.38.dist-info/RECORD,,
|
publish_command.py
CHANGED
@@ -134,7 +134,10 @@ 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
|
-
|
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,27 +147,12 @@ def find_clapp_root_with_build_index():
|
|
144
147
|
print(f"🔍 Mevcut çalışma dizini: {os.getcwd()}")
|
145
148
|
print(f"🔍 publish_command.py konumu: {os.path.dirname(os.path.abspath(__file__))}")
|
146
149
|
|
147
|
-
# 1. clapp
|
150
|
+
# 1. which clapp konumundan arama
|
148
151
|
try:
|
149
|
-
|
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)
|
152
|
+
result = subprocess.run(['which', 'clapp'], capture_output=True, text=True)
|
157
153
|
if result.returncode == 0:
|
158
154
|
clapp_path = result.stdout.strip()
|
159
|
-
print(f"🔍 1. clapp
|
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}")
|
155
|
+
print(f"🔍 1. which clapp sonucu: {clapp_path}")
|
168
156
|
|
169
157
|
# clapp komutunun bulunduğu dizinden başlayarak yukarı çık
|
170
158
|
clapp_dir = os.path.dirname(clapp_path)
|
@@ -175,17 +163,45 @@ def find_clapp_root_with_build_index():
|
|
175
163
|
build_index_path = os.path.join(search_dir, "build_index.py")
|
176
164
|
print(f" Kontrol ediliyor: {build_index_path}")
|
177
165
|
if os.path.exists(build_index_path):
|
178
|
-
print(f"✅ build_index.py clapp
|
166
|
+
print(f"✅ build_index.py which clapp yanında bulundu: {build_index_path}")
|
179
167
|
return search_dir, build_index_path
|
180
168
|
search_dir = os.path.dirname(search_dir)
|
181
|
-
else:
|
182
|
-
print(f"⚠️ clapp komutu bulunamadı (which {clapp_cmd} başarısız)")
|
183
169
|
except Exception as e:
|
184
|
-
print(f"⚠️ clapp
|
170
|
+
print(f"⚠️ which clapp hatası: {e}")
|
185
171
|
|
186
|
-
# 2.
|
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
|
201
|
+
|
202
|
+
# 4. Fallback: Mevcut çalışma dizininden başlayarak yukarı çık
|
187
203
|
search_dir = os.getcwd()
|
188
|
-
print(f"🔍
|
204
|
+
print(f"🔍 4. Fallback arama: {search_dir} dizininden başlıyor...")
|
189
205
|
while search_dir != os.path.dirname(search_dir): # Root'a ulaşana kadar
|
190
206
|
build_index_path = os.path.join(search_dir, "build_index.py")
|
191
207
|
print(f" Kontrol ediliyor: {build_index_path}")
|
@@ -281,7 +297,16 @@ def push_to_clapp_packages_repo(app_name: str, app_version: str) -> Tuple[bool,
|
|
281
297
|
subprocess.run(['git', 'commit', '-m', commit_message], check=True)
|
282
298
|
|
283
299
|
# Push et
|
284
|
-
|
300
|
+
try:
|
301
|
+
# Önce pull yap
|
302
|
+
print("📥 Remote değişiklikleri çekiliyor...")
|
303
|
+
subprocess.run(['git', 'pull', 'origin', 'main'], check=True)
|
304
|
+
except subprocess.CalledProcessError:
|
305
|
+
print("⚠️ Pull başarısız, force push yapılıyor...")
|
306
|
+
subprocess.run(['git', 'push', 'origin', 'main', '--force'], check=True)
|
307
|
+
else:
|
308
|
+
# Normal push
|
309
|
+
subprocess.run(['git', 'push', 'origin', 'main'], check=True)
|
285
310
|
|
286
311
|
# Ana dizine geri dön
|
287
312
|
os.chdir("..")
|
version.py
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|