Debian Codegraph @

tools/release

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