Skip to content

Commit 996c6f9

Browse files
committed
paver: some more release checks
1 parent b113b94 commit 996c6f9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pavement.py

+7
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,13 @@ def functest():
166166
def release():
167167
"check release before upload to PyPI"
168168
sh("paver bdist_wheel")
169+
wheels = path("dist").files("*.whl")
170+
if not wheels:
171+
error("\n*** ERROR: No release wheel was built!")
172+
sys.exit(1)
173+
if any(".dev" in i for i in wheels):
174+
error("\n*** ERROR: You're still using a 'dev' version!")
175+
sys.exit(1)
169176

170177
# Check that source distribution can be built and is complete
171178
print

0 commit comments

Comments
 (0)