Skip to content

Commit 3a848e7

Browse files
committed
git action remove old package
1 parent 7f3951c commit 3a848e7

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ jobs:
100100
101101
- name: Build package
102102
run: |
103+
# Clean any previous builds
104+
rm -rf dist/ build/ *.egg-info/
105+
103106
# Double-check we're using the correct version before building
104107
python -c "
105108
import re
@@ -108,6 +111,16 @@ jobs:
108111
version = re.search(r'VERSION = \"([^\"]+)\"', content).group(1)
109112
print(f'Building package with version: {version}')
110113
"
114+
115+
# Verify setup.py reads the correct version
116+
python -c "
117+
import sys
118+
sys.path.insert(0, '.')
119+
from setup import get_version
120+
version = get_version()
121+
print(f'setup.py get_version() returns: {version}')
122+
"
123+
111124
python -m build
112125
113126
- name: Verify built package version
@@ -134,6 +147,7 @@ jobs:
134147
if pkg_info_files:
135148
pkg_info = tar.extractfile(pkg_info_files[0])
136149
content = pkg_info.read().decode('utf-8')
150+
print(f'PKG-INFO content:\\n{content}')
137151
version_match = re.search(r'Version: (.+)', content)
138152
if version_match:
139153
package_version = version_match.group(1)

0 commit comments

Comments
 (0)