Skip to content

Commit 7bdbb1d

Browse files
committed
Fix unicode character errors on Windows
1 parent 908cd65 commit 7bdbb1d

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

.github/scripts/test_wheel_import.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ def main():
1616

1717
try:
1818
import pyhelios
19-
print(f' PyHelios {pyhelios.__version__} imported successfully')
19+
print(f'[OK] PyHelios {pyhelios.__version__} imported successfully')
2020

2121
# Test native library loading
2222
from pyhelios.plugins import get_plugin_info
2323
info = get_plugin_info()
24-
print(f' Platform: {info["platform"]}')
25-
print(f' Mock mode: {info["is_mock"]}')
24+
print(f'[OK] Platform: {info["platform"]}')
25+
print(f'[OK] Mock mode: {info["is_mock"]}')
2626

2727
if info['is_mock']:
28-
print('ERROR: Wheel is in mock mode - native libraries not found!')
28+
print('[ERROR] Wheel is in mock mode - native libraries not found!')
2929
print(f' Plugin directory: {info.get("plugin_dir", "Not set")}')
3030
available = info.get("available_files", [])
3131
print(f' Available files: {available}')
@@ -34,12 +34,12 @@ def main():
3434
raise RuntimeError('Native libraries not working in installed wheel')
3535
else:
3636
lib_path = info.get('library_path', 'Unknown')
37-
print(f'SUCCESS: Native library loaded from: {lib_path}')
37+
print(f'[SUCCESS] Native library loaded from: {lib_path}')
3838

39-
print(' Wheel functionality test completed successfully')
39+
print('[OK] Wheel functionality test completed successfully')
4040

4141
except Exception as e:
42-
print(f'FAILED: {e}')
42+
print(f'[FAILED] {e}')
4343
import traceback
4444
traceback.print_exc()
4545
return False

.github/scripts/validate_wheel.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,19 @@ def validate_wheel(wheel_path):
2525
print(f' Native libraries: {len(native_files)} (needed: 1+)')
2626

2727
if not py_files:
28-
print(' ERROR: No Python plugins module found in wheel')
28+
print(' [ERROR] No Python plugins module found in wheel')
2929
return False
3030
if not native_files:
31-
print(' ERROR: No native libraries found in wheel (pure Python wheel)')
31+
print(' [ERROR] No native libraries found in wheel (pure Python wheel)')
3232
print(' This means prepare_wheel.py failed to copy native libraries')
3333
return False
3434

35-
print(' Wheel contains both Python modules and native libraries')
35+
print(' [OK] Wheel contains both Python modules and native libraries')
3636
print(f' Total files: {len(files)}')
3737
return True
3838

3939
except Exception as e:
40-
print(f' ERROR: Cannot validate wheel: {e}')
40+
print(f' [ERROR] Cannot validate wheel: {e}')
4141
return False
4242

4343
def main():

0 commit comments

Comments
 (0)