Skip to content

Commit 18058d8

Browse files
committed
fix: remove emoji characters from Python print statements in workflows
- Removed emoji from TestAndDeployForPypi.yml python commands - Removed emojis from publish-to-pypi.yml test commands - Fixes UnicodeEncodeError on Windows with cp1252 encoding - Emojis in markdown/release notes are preserved (not executed by Python)
1 parent 7ff8bba commit 18058d8

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/TestAndDeployForPypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
4040
- name: Verify no external crypto dependencies
4141
run: |
42-
python -c "import sys; import libcrypto; assert 'ecdsa' not in sys.modules, 'ecdsa should not be loaded'; assert 'Crypto' not in sys.modules, 'pycryptodome should not be loaded'; print('No external crypto dependencies')"
42+
python -c "import sys; import libcrypto; assert 'ecdsa' not in sys.modules, 'ecdsa should not be loaded'; assert 'Crypto' not in sys.modules, 'pycryptodome should not be loaded'; print('No external crypto dependencies')"
4343
4444
- name: Run pytest with coverage
4545
run: |

.github/workflows/publish-to-pypi.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,12 +212,12 @@ jobs:
212212
213213
- name: Test import
214214
run: |
215-
python -c "import libcrypto; print('LibCrypto version:', libcrypto.__version__)"
215+
python -c "import libcrypto; print('LibCrypto version:', libcrypto.__version__)"
216216
217217
- name: Verify no external crypto dependencies
218218
run: |
219-
python -c "import sys; import libcrypto; assert 'ecdsa' not in sys.modules; assert 'Crypto' not in sys.modules; print('No external crypto dependencies')"
219+
python -c "import sys; import libcrypto; assert 'ecdsa' not in sys.modules; assert 'Crypto' not in sys.modules; print('No external crypto dependencies')"
220220
221221
- name: Test basic functionality
222222
run: |
223-
python -c "from libcrypto import PrivateKey, Wallet, generate_mnemonic; pk = PrivateKey(1); print('Public key:', pk.get_public_key().hex[:32]); print('All tests passed')"
223+
python -c "from libcrypto import PrivateKey, Wallet, generate_mnemonic; pk = PrivateKey(1); print('Public key:', pk.get_public_key().hex[:32]); print('All tests passed')"

0 commit comments

Comments
 (0)