Skip to content

Commit a5dfc3b

Browse files
authored
Merge pull request #666 from Carreau/triple-zero-check
2 parents 34204b1 + c32a7a3 commit a5dfc3b

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/releases.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,19 @@ jobs:
2121

2222
- name: Install PyBuild
2323
run: |
24-
python -m pip install build
24+
python -m pip install 'build!=0.1' setuptools-scm
2525
2626
- name: Build wheel and sdist
2727
run: |
2828
python -m build
29+
git describe
30+
pwd
31+
if [ -f dist/zarr-0.0.0.tar.gz ]; then
32+
echo "WRONG VERSION NUMBER"
33+
exit 1
34+
else
35+
echo "All seem good"
36+
fi
2937
- uses: actions/upload-artifact@v1
3038
with:
3139
name: releases

zarr/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@
1616
TempStore, ZipStore)
1717
from zarr.sync import ProcessSynchronizer, ThreadSynchronizer
1818
from zarr.version import version as __version__
19+
20+
# in case setuptools scm screw up and find version to be 0.0.0
21+
assert not __version__.startswith("0.0.0")

0 commit comments

Comments
 (0)