|
Revision 393, 1.1 kB
(checked in by johnbywater, 4 months ago)
|
Added external dist folder.
|
- Property svn:executable set to
*
|
| Line | |
|---|
| 1 |
#!/usr/bin/env python |
|---|
| 2 |
import os |
|---|
| 3 |
|
|---|
| 4 |
# Increase version number. |
|---|
| 5 |
|
|---|
| 6 |
# Build and upload provide scripts for new version. |
|---|
| 7 |
|
|---|
| 8 |
# Make list of changes. |
|---|
| 9 |
|
|---|
| 10 |
# Pass developer tests. |
|---|
| 11 |
|
|---|
| 12 |
# Commit changes. |
|---|
| 13 |
|
|---|
| 14 |
# Update changes. |
|---|
| 15 |
|
|---|
| 16 |
# Pass developer tests. |
|---|
| 17 |
|
|---|
| 18 |
# Pass integration tests. |
|---|
| 19 |
|
|---|
| 20 |
# Create distribution. |
|---|
| 21 |
os.system("rm -fv `find . -name '*.pyc'`") |
|---|
| 22 |
os.system("rm -fv MANIFEST") |
|---|
| 23 |
os.system("python setup.py sdist") |
|---|
| 24 |
|
|---|
| 25 |
print "Copying distribution to download location..." |
|---|
| 26 |
import sys |
|---|
| 27 |
sys.path.append('./src') |
|---|
| 28 |
from dm import __version__ |
|---|
| 29 |
cmd = "scp dist/domainmodel-%s.tar.gz appropriatesoftware.net:awf/system/domains/AppropriateSoftwareFoundation.org/provide/docs" % __version__ |
|---|
| 30 |
print cmd |
|---|
| 31 |
os.system(cmd) |
|---|
| 32 |
|
|---|
| 33 |
print "Committing release product..." |
|---|
| 34 |
cmd = "svn add dist dist/domainmodel-%s.tar.gz" % __version__ |
|---|
| 35 |
print cmd |
|---|
| 36 |
if os.system(cmd): |
|---|
| 37 |
sys.exit(1) |
|---|
| 38 |
cmd = "svn ci dist/domainmodel-%s.tar.gz -m\"Created new distribution for domainmodel %s\"" % (__version__, __version__) |
|---|
| 39 |
print cmd |
|---|
| 40 |
if os.system(cmd): |
|---|
| 41 |
sys.exit(1) |
|---|
| 42 |
|
|---|
| 43 |
|
|---|
| 44 |
# Further manual steps. |
|---|
| 45 |
print "Update domainmodel website to state and point to new release." |
|---|
| 46 |
print "Update cheeseshop." |
|---|
| 47 |
print "Post notices (where?)." |
|---|
| 48 |
print "Increase version number." |
|---|
| 49 |
|
|---|
| 50 |
|
|---|