Commit df21ba23 authored by tarek's avatar tarek

simplified the release process

--HG--
branch : distribute
extra : rebase_source : 4126164528a5ebbea66de779cc30c5f4b5e5c7d0
parent 7c686d24
......@@ -34,10 +34,10 @@ DEFAULT_VERSION = "0.6"
DEFAULT_URL = "http://pypi.python.org/packages/%s/d/distribute/" % sys.version[:3]
md5_data = {
'distribute-0.6-py2.3.egg': '71c3b220419b3772c4522eca622ff091',
'distribute-0.6-py2.4.egg': '845c9837845d1e50d64e2a978bf60b0f',
'distribute-0.6-py2.5.egg': 'ebaa166a2b20d56ac236b16ef597aa2c',
'distribute-0.6-py2.6.egg': 'd95c2a32b82d7f7b545434f7e322a83d',
'distribute-0.6-py2.3.egg': 'd41d8cd98f00b204e9800998ecf8427e',
'distribute-0.6-py2.4.egg': 'd41d8cd98f00b204e9800998ecf8427e',
'distribute-0.6-py2.5.egg': 'd41d8cd98f00b204e9800998ecf8427e',
'distribute-0.6-py2.6.egg': 'd41d8cd98f00b204e9800998ecf8427e',
}
def _validate_md5(egg_name, data):
......@@ -400,6 +400,7 @@ def update_md5(filenames):
for name in filenames:
base = os.path.basename(name)
f = open(name,'rb')
print 'hash for %s: %s' % (name, md5(f.read()).hexdigest())
md5_data[base] = md5(f.read()).hexdigest()
f.close()
......
......@@ -6,17 +6,17 @@ export VERSION="0.6"
rm -rf dist
# eggs
python2.3 setup.py -q egg_info -RDb '' bdist_egg
python2.4 setup.py -q egg_info -RDb '' bdist_egg
python2.5 setup.py -q egg_info -RDb '' bdist_egg
python2.6 setup.py -q egg_info -RDb '' bdist_egg
# source
python2.6 setup.py -q egg_info -RDb '' sdist
python2.3 setup.py -q egg_info -RDb '' bdist_egg # manual upload
python2.4 setup.py -q egg_info -RDb '' bdist_egg # manual upload
python2.5 setup.py -q egg_info -RDb '' bdist_egg register upload
python2.6 setup.py -q egg_info -RDb '' bdist_egg register upload
# updating the md5 hashes
python distribute_setup.py --md5update dist/distribute-$VERSION-py2.3.egg
python distribute_setup.py --md5update dist/distribute-$VERSION-py2.4.egg
python distribute_setup.py --md5update dist/distribute-$VERSION-py2.5.egg
python distribute_setup.py --md5update dist/distribute-$VERSION-py2.6.egg
python2.6 distribute_setup.py --md5update dist/distribute-$VERSION-py2.3.egg \
dist/distribute-$VERSION-py2.4.egg \
dist/distribute-$VERSION-py2.5.egg \
dist/distribute-$VERSION-py2.6.egg
# now preparing the source release
python2.6 setup.py -q egg_info -RDb '' sdist register upload
# upload for 2.5 and 2.6
# 2.3 and 2.4 are manual
python2.5 setup.py egg_info -RDb '' bdist_egg register upload
python2.6 setup.py egg_info -RDb '' bdist_egg sdist register upload
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment