[Python-checkins] release: remove bzip2 tarballs
benjamin.peterson
python-checkins at python.org
Sun Oct 27 19:13:35 CET 2013
http://hg.python.org/release/rev/1f49b5c5f6c9
changeset: 64:1f49b5c5f6c9
user: Benjamin Peterson <benjamin at python.org>
date: Sun Oct 27 14:13:30 2013 -0400
summary:
remove bzip2 tarballs
files:
release.py | 11 -----------
1 files changed, 0 insertions(+), 11 deletions(-)
diff --git a/release.py b/release.py
--- a/release.py
+++ b/release.py
@@ -217,33 +217,23 @@
print('Making .tgz')
base = os.path.basename(source)
tgz = base + '.tgz'
- bz = base + '.tar.bz2'
xz = base + '.tar.xz'
run_cmd(['tar cf - %s | gzip -9 > %s' % (source, tgz)])
- print("Making .tar.bz2")
- run_cmd(['tar cf - %s | bzip2 -9 > %s' % (source, bz)])
print("Making .tar.xz")
run_cmd(['tar cf - %s | xz > %s' % (source, xz)])
print('Calculating md5 sums')
checksum_tgz = hashlib.md5()
with open(tgz, 'rb') as data:
checksum_tgz.update(data.read())
- checksum_bz2 = hashlib.md5()
- with open(bz, 'rb') as data:
- checksum_bz2.update(data.read())
checksum_xz = hashlib.md5()
with open(xz, 'rb') as data:
checksum_xz.update(data.read())
print(' %s %8s %s' % (
checksum_tgz.hexdigest(), int(os.path.getsize(tgz)), tgz))
print(' %s %8s %s' % (
- checksum_bz2.hexdigest(), int(os.path.getsize(bz)), bz))
- print(' %s %8s %s' % (
checksum_xz.hexdigest(), int(os.path.getsize(xz)), xz))
with open(tgz + '.md5', 'w', encoding="ascii") as fp:
fp.write(checksum_tgz.hexdigest())
- with open(bz + '.md5', 'w', encoding="ascii") as fp:
- fp.write(checksum_bz2.hexdigest())
with open(xz + '.md5', 'w', encoding="ascii") as fp:
fp.write(checksum_xz.hexdigest())
@@ -252,7 +242,6 @@
run_cmd(['gpg -K | grep -A 1 "^sec"'])
uid = input('Please enter key ID to use for signing: ')
os.system('gpg -bas -u ' + uid + ' ' + tgz)
- os.system('gpg -bas -u ' + uid + ' ' + bz)
os.system('gpg -bas -u ' + uid + ' ' + xz)
--
Repository URL: http://hg.python.org/release
More information about the Python-checkins
mailing list