Skip to content

Commit 385fefe

Browse files
author
Jahn Zhong
committed
Patch 1.0.3:
fix: Upload source to PyPI fix: Clean build artifacts in GitHub workflow
1 parent 250bd25 commit 385fefe

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.github/workflows/publish-main-branch-trusted.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ jobs:
2727
python3 -m pip install --upgrade pip
2828
pip install build
2929
30+
- name: Clean build artifacts
31+
run: |
32+
# Remove any cached files that might interfere with the build
33+
find . -name "__pycache__" -type d -exec rm -rf {} + || true
34+
find . -name "*.pyc" -type f -delete || true
35+
rm -rf dist/ build/ *.egg-info/ src/*.egg-info/ || true
36+
3037
- name: Verify version for main branch
3138
run: |
3239
# Get current version and package name from __init__.py
@@ -49,6 +56,19 @@ jobs:
4956
- name: Build package
5057
run: python3 -m build
5158

59+
- name: Verify build artifacts
60+
run: |
61+
echo "📦 Build artifacts created:"
62+
ls -la dist/
63+
echo "📋 File sizes:"
64+
du -h dist/*
65+
echo "🔍 Checking file integrity:"
66+
for file in dist/*; do
67+
echo "File: $file"
68+
file "$file"
69+
echo "SHA256: $(sha256sum "$file" | cut -d' ' -f1)"
70+
done
71+
5272
- name: Publish to PyPI (Trusted Publishing)
5373
uses: pypa/gh-action-pypi-publish@release/v1
5474
with:

src/pepe/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import sys
33

44
# Package metadata - single source of truth
5-
__version__ = "1.0.2"
5+
__version__ = "1.0.3"
66
__package_name__ = "pepe-cli"
77
__module_name__ = "pepe"
88
__author__ = "Jahn Zhong"

0 commit comments

Comments
 (0)