[Python-checkins] r74416 - sandbox/trunk/release/release.py
benjamin.peterson
python-checkins at python.org
Thu Aug 13 17:19:25 CEST 2009
Author: benjamin.peterson
Date: Thu Aug 13 17:19:25 2009
New Revision: 74416
Log:
only build docs if doing a final release
Modified:
sandbox/trunk/release/release.py
Modified: sandbox/trunk/release/release.py
==============================================================================
--- sandbox/trunk/release/release.py (original)
+++ sandbox/trunk/release/release.py Thu Aug 13 17:19:25 2009
@@ -269,8 +269,10 @@
for name in touchables:
os.utime(name, None)
- docdist = build_docs()
- shutil.copytree(docdist, 'docs')
+ if tag.is_final:
+ docdist = build_docs()
+ if tag.is_final:
+ shutil.copytree(docdist, 'docs')
with changed_dir(os.path.join(archivename, 'Doc')):
print('Removing doc build artifacts')
@@ -320,9 +322,12 @@
if result is None:
error('tag %s is not valid' % tag)
data = list(result.groups())
- # fix None level
if data[3] is None:
+ # A final release.
+ self.is_final = True
data[3] = "f"
+ else:
+ self.is_final = False
# For everything else, None means 0.
for i, thing in enumerate(data):
if thing is None:
More information about the Python-checkins
mailing list