[go: up one dir, main page]

File: release

package info (click to toggle)
dipy 1.3.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 14,828 kB
  • sloc: python: 63,790; makefile: 258; pascal: 167; sh: 131; ansic: 106
file content (54 lines) | stat: -rwxr-xr-x 1,273 bytes parent folder | download | duplicates (4)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/usr/bin/env python
"""dipy release script.

This should only be run at real release time.
"""

from os.path import join as pjoin
from toollib import get_dipydir, cd, c

# Get main dipy dir, this will raise if it doesn't pass some checks
dipydir = get_dipydir()
tooldir = pjoin(dipydir,'tools')
distdir = pjoin(dipydir,'dist')
#### Where I keep static backups of each release
###nibbackupdir = os.path.expanduser('~/dipy/backup')

# Start in main dipy dir
cd(dipydir)

# Load release info
execfile(pjoin('dipy','info.py'))

print
print "Releasing dipy"
print "================="
print
print 'Source dipy directory:', dipydir
print

# Perform local backup, go to tools dir to run it.
cd(tooldir)
# c('./make_tarball.py')
# c('mv dipy-*.tgz %s' % nibbackupdir)

# Build release files
c('./build_release %s' % dipydir)

# Register with the Python Package Index (PyPI)
print "Registering with PyPI..."
cd(dipydir)
c('./setup.py register')

# Upload all files
c('./setup.py sdist --formats=gztar,zip upload')
c('./setup.py bdist_egg upload')
cd(distdir)
#print "Uploading distribution files..."
#c('scp * dipy@dipy.scipy.org:www/dist/')

# print "Uploading backup files..."
# cd(nibbackupdir)
# c('scp `ls -1tr *tgz | tail -1` dipy@dipy.scipy.org:www/backup/')

print "Done!"