[Python-checkins] release (merge default -> default): Merge.
larry.hastings
python-checkins at python.org
Sun Nov 24 21:39:42 CET 2013
http://hg.python.org/release/rev/bd34f111a4e0
changeset: 66:bd34f111a4e0
parent: 65:2b3d34c79b36
parent: 64:1f49b5c5f6c9
user: Larry Hastings <larry at hastings.org>
date: Sun Nov 24 12:38:56 2013 -0800
summary:
Merge.
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