Commits

Anonymous committed 05fe6dc

simplified the release process

  • Participants
  • Parent commits 8f9438b

Comments (0)

Files changed (3)

distribute_setup.py

 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):
     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()
 
 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.sh

-# 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
-
-