Skip to content

Commit 0b79dc3

Browse files
committed
Bump zlmdb to v25.10.2 and add release fileset validation
Two improvements for cfxdb release process: 1. **Bump zlmdb dependency:** - Updated from >=25.10.1 to >=25.10.2 - Brings in latest zlmdb fixes and improvements 2. **Add release fileset validation:** - Validates exactly 1 universal wheel present - Validates exactly 1 source distribution present - Checks wheel is universal (py2.py3-none-any or py3-none-any) - Fail-fast before GitHub release creation and PyPI upload **Validation ensures:** - Correct number of distribution files - Pure Python universal wheel format - Consistent release artifacts Complements existing CHECKSUMS generation and PyPI cleanup steps.
1 parent 1e4f74b commit 0b79dc3

2 files changed

Lines changed: 53 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,58 @@ jobs:
9090
- name: List artifacts
9191
run: ls -lh dist/
9292

93+
- name: Validate release fileset
94+
run: |
95+
echo "======================================================================"
96+
echo "==> Validating Release Fileset"
97+
echo "======================================================================"
98+
echo ""
99+
100+
# Count wheels and source distributions
101+
WHEEL_COUNT=$(find dist -name "*.whl" -type f | wc -l)
102+
SDIST_COUNT=$(find dist -name "*.tar.gz" -type f | wc -l)
103+
104+
echo "Found:"
105+
echo " - Wheels: $WHEEL_COUNT"
106+
echo " - Source distributions: $SDIST_COUNT"
107+
echo ""
108+
109+
# Validate counts
110+
HAS_ERRORS=0
111+
112+
if [ "$WHEEL_COUNT" -ne 1 ]; then
113+
echo "❌ ERROR: Expected exactly 1 wheel, found $WHEEL_COUNT"
114+
HAS_ERRORS=1
115+
else
116+
WHEEL_FILE=$(find dist -name "*.whl" -type f)
117+
echo "✅ Wheel: $(basename $WHEEL_FILE)"
118+
119+
# Verify it's a universal wheel
120+
if [[ "$WHEEL_FILE" != *"-py2.py3-none-any.whl" ]] && [[ "$WHEEL_FILE" != *"-py3-none-any.whl" ]]; then
121+
echo "⚠️ WARNING: Wheel is not universal (py2.py3-none-any or py3-none-any)"
122+
fi
123+
fi
124+
125+
if [ "$SDIST_COUNT" -ne 1 ]; then
126+
echo "❌ ERROR: Expected exactly 1 source distribution, found $SDIST_COUNT"
127+
HAS_ERRORS=1
128+
else
129+
SDIST_FILE=$(find dist -name "*.tar.gz" -type f ! -name "CHECKSUMS*.sha256")
130+
echo "✅ Source: $(basename $SDIST_FILE)"
131+
fi
132+
133+
echo ""
134+
if [ $HAS_ERRORS -eq 1 ]; then
135+
echo "======================================================================"
136+
echo "❌ VALIDATION FAILED"
137+
echo "======================================================================"
138+
exit 1
139+
else
140+
echo "======================================================================"
141+
echo "✅ VALIDATION PASSED"
142+
echo "======================================================================"
143+
fi
144+
93145
- name: Get version
94146
id: get_version
95147
run: |

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ classifiers = [
4242
dependencies = [
4343
# WAMP ecosystem packages
4444
"autobahn[all]>=25.10.2",
45-
"zlmdb>=25.10.1",
45+
"zlmdb>=25.10.2",
4646

4747
# Ethereum/Web3 stack
4848
"eth-abi>=5.1.0",

0 commit comments

Comments
 (0)