Commit 90c91647 authored by tarek's avatar tarek

re-wrote the release.sh script

--HG--
branch : distribute
extra : rebase_source : 4d70b693676a2e6e290e3cc097fde2cca9412d38
parent b2723a86
......@@ -32,10 +32,10 @@ DEFAULT_VERSION = "0.6"
DEFAULT_URL = "http://bitbucket.org/tarek/distribute/downloads/"
md5_data = {
'distribute-0.6-py2.3.egg': '3fddec6a97c601112612f04d1bfdc3c4',
'distribute-0.6-py2.4.egg': '743af8420ff2febad28e8f88b43af642',
'distribute-0.6-py2.5.egg': '8da62077b114327d3c73f00506dc638e',
'distribute-0.6-py2.6.egg': '2eba87b31ae6530604cf09ccc136f62d',
'distribute-0.6-py2.3.egg': '2bf26bffe3d8c910de396d45c0f0a24f',
'distribute-0.6-py2.4.egg': 'c01b1355a5f48344c1c78149f59f68a6',
'distribute-0.6-py2.5.egg': '2ac319d801bce820a370647916eec84c',
'distribute-0.6-py2.6.egg': 'fa7906f9caa2c1f0a56daf486bab1583',
}
def _validate_md5(egg_name, data):
......
#!/bin/sh
# This script is for PJE's working environment only, to upload
# releases to PyPI, telecommunity, eby-sarna SVN, update local
# project checkouts, etc.
#
# If your initials aren't PJE, don't run it. :)
#
export VERSION="0.6"
python2.3 setup.py -q release source --target-version=2.3 upload && \
python2.4 setup.py -q release binary --target-version=2.4 upload && \
python2.5 setup.py -q release binary --target-version=2.5 upload && \
python2.3 ez_setup.py --md5update dist/setuptools-$VERSION*-py2.?.egg && \
cp ez_setup.py virtual-python.py ~/distrib/ && \
cp ez_setup.py ~/projects/ez_setup/__init__.py && \
svn ci -m "Update ez_setup for setuptools $VERSION" \
~/projects/ez_setup/__init__.py #&& \
#svn up ~/projects/*/ez_setup
# creating the releases
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
# updating the md5 hashes
python ez_setup.py --md5update dist/distribute-$VERSION-py2.3.egg
python ez_setup.py --md5update dist/distribute-$VERSION-py2.4.egg
python ez_setup.py --md5update dist/distribute-$VERSION-py2.5.egg
python ez_setup.py --md5update dist/distribute-$VERSION-py2.6.egg
# XXX uploads will be done here
# update wiki pages from EasyInstall.txt, setuptools.txt, &
# pkg_resources.txt
python2.5 setup.py wikiup -c "Released version: $VERSION"
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