File: release

package info (click to toggle)
nitime 0.9-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 12,404 kB
  • sloc: python: 10,224; makefile: 110; sh: 34
file content (31 lines) | stat: -rwxr-xr-x 665 bytes parent folder | download
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 python3
"""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!"