sideload 1.4.0__py3-none-any.whl → 1.5.0__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.
Potentially problematic release.
This version of sideload might be problematic. Click here for more details.
- sideload/cli.py +22 -6
- {sideload-1.4.0.dist-info → sideload-1.5.0.dist-info}/METADATA +1 -1
- {sideload-1.4.0.dist-info → sideload-1.5.0.dist-info}/RECORD +5 -5
- {sideload-1.4.0.dist-info → sideload-1.5.0.dist-info}/WHEEL +0 -0
- {sideload-1.4.0.dist-info → sideload-1.5.0.dist-info}/entry_points.txt +0 -0
sideload/cli.py
CHANGED
|
@@ -174,12 +174,18 @@ class SideloadClient:
|
|
|
174
174
|
check=True,
|
|
175
175
|
)
|
|
176
176
|
|
|
177
|
-
# Find the downloaded wheel file
|
|
178
|
-
|
|
177
|
+
# Find the downloaded wheel file (case-insensitive)
|
|
178
|
+
package_name_lower = package_name.lower()
|
|
179
|
+
wheel_files = [
|
|
180
|
+
f for f in output_dir.glob("*.whl")
|
|
181
|
+
if f.name.lower().startswith(package_name_lower)
|
|
182
|
+
]
|
|
179
183
|
if wheel_files:
|
|
180
184
|
downloaded_files.append(wheel_files[0])
|
|
181
185
|
if debug:
|
|
182
186
|
console.print(f"[green]✓ Downloaded: {wheel_files[0].name}[/green]")
|
|
187
|
+
elif debug:
|
|
188
|
+
console.print(f"[yellow]⚠ No wheel file found for {package_name}[/yellow]")
|
|
183
189
|
|
|
184
190
|
except subprocess.CalledProcessError as e:
|
|
185
191
|
error_msg = e.stderr if hasattr(e, 'stderr') and e.stderr else str(e)
|
|
@@ -250,17 +256,23 @@ class SideloadClient:
|
|
|
250
256
|
console.print(f"[dim] {name}[/dim]")
|
|
251
257
|
zip_ref.extractall(temp_path)
|
|
252
258
|
|
|
253
|
-
# Find the part file using the exact package name
|
|
259
|
+
# Find the part file using the exact package name (case-insensitive)
|
|
254
260
|
# Pattern: pkgname-version.data/data/share/pkgname/pkgname
|
|
255
261
|
# Need to find the .data directory that starts with package_name
|
|
262
|
+
package_name_lower = package_name.lower()
|
|
256
263
|
data_dir = None
|
|
264
|
+
actual_package_name = None
|
|
265
|
+
|
|
257
266
|
for d in temp_path.iterdir():
|
|
258
|
-
if d.is_dir() and d.name.startswith(f"{
|
|
267
|
+
if d.is_dir() and d.name.lower().startswith(f"{package_name_lower}-") and d.name.endswith(".data"):
|
|
259
268
|
data_dir = d
|
|
269
|
+
# Extract the actual package name from the directory name (before -version)
|
|
270
|
+
actual_package_name = d.name.split('-')[0]
|
|
260
271
|
break
|
|
261
272
|
|
|
262
|
-
if data_dir:
|
|
263
|
-
|
|
273
|
+
if data_dir and actual_package_name:
|
|
274
|
+
# Use actual package name as it appears in the filesystem
|
|
275
|
+
part_file_path = data_dir / "data" / "share" / actual_package_name / actual_package_name
|
|
264
276
|
if debug:
|
|
265
277
|
console.print(f"[dim]Looking for: {part_file_path}[/dim]")
|
|
266
278
|
console.print(f"[dim]Exists: {part_file_path.exists()}, Is file: {part_file_path.is_file() if part_file_path.exists() else 'N/A'}[/dim]")
|
|
@@ -268,9 +280,13 @@ class SideloadClient:
|
|
|
268
280
|
part_files.append(part_file_path)
|
|
269
281
|
if debug:
|
|
270
282
|
console.print(f"[green]✓ Found part file: {part_file_path.name} (size: {part_file_path.stat().st_size:,} bytes)[/green]")
|
|
283
|
+
else:
|
|
284
|
+
if debug:
|
|
285
|
+
console.print(f"[yellow]⚠ Part file not found at expected path[/yellow]")
|
|
271
286
|
else:
|
|
272
287
|
if debug:
|
|
273
288
|
console.print(f"[yellow]⚠ Could not find .data directory for {package_name}[/yellow]")
|
|
289
|
+
console.print(f"[dim]Available directories: {[d.name for d in temp_path.iterdir() if d.is_dir()]}[/dim]")
|
|
274
290
|
|
|
275
291
|
progress.update(
|
|
276
292
|
extract_task,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
sideload/__init__.py,sha256=Y3rHLtR7n0sjLXrn-BEcrbIHx-9uE1tPZkooavo7xcA,222
|
|
2
|
-
sideload/cli.py,sha256=
|
|
2
|
+
sideload/cli.py,sha256=_bvcZGikzoNFaOWPWxSmlxDHOZFQTm708wHwRcd2-9c,23006
|
|
3
3
|
sideload/jsonbin.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
sideload/jsonbin_connector.py,sha256=IS7YdSBZeZMoTwOyA1I0T7aw36-KERYNnD324dRRI5A,2305
|
|
5
5
|
sideload/jsonbin_old.py,sha256=Rs657F3dTtdoxVYolByuyINABCIQx_VLxwxgdne1mws,8865
|
|
6
6
|
sideload/main.py,sha256=_YE0b93jhDFN8PcBfHLKbZp1EPQGfWq3wIYyX7nT7Qo,7600
|
|
7
7
|
sideload/scripts/cleanup_pypi.py,sha256=YPzYVsutFVsRoCi4qG6vZo8x5YiLzpAfJ7xKxZiZWgI,15264
|
|
8
|
-
sideload-1.
|
|
9
|
-
sideload-1.
|
|
10
|
-
sideload-1.
|
|
11
|
-
sideload-1.
|
|
8
|
+
sideload-1.5.0.dist-info/WHEEL,sha256=-neZj6nU9KAMg2CnCY6T3w8J53nx1kFGw_9HfoSzM60,79
|
|
9
|
+
sideload-1.5.0.dist-info/entry_points.txt,sha256=7ULrIjaVhrxMhuddTeoPjeIrqmIvVc9cSU3lZU2_YqE,44
|
|
10
|
+
sideload-1.5.0.dist-info/METADATA,sha256=LomGs8ccyjYMbE9AmQZDmbKt0vsjy-3_C4UUGHEiTp4,4309
|
|
11
|
+
sideload-1.5.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|