1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
#!/usr/bin/env python
"""Nitime release script.
This should only be run at real release time.
"""
from toollib import *
# Find our directory and go one above, regardless of where we were called from
my_dir = os.path.split(os.path.abspath(__file__))[0]
cd(pjoin(my_dir, '..'))
# Load release info
execfile(pjoin('nitime','version.py'))
print
print "Releasing Nitime version %s" % __version__
print
# Build release files
sh('tools/build_release')
# Register with the Python Package Index (PyPI)
print "Registering with PyPI..."
sh('./setup.py register')
# Upload all files
print "Uploading distribution files..."
sh('./setup.py sdist upload')
print "Done!"
|