Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

set up for Cascadenik 0.1.0 release

git-svn-id: https://mapnik-utils.googlecode.com/svn/trunk/serverside/cascadenik@940 dbea3d40-3153-0410-b551-57805770c6e6
  • Loading branch information...
commit dfada6d2996dc80ad8aca86819cfb362f1f440f6 1 parent 6b7917b
dane.springmeyer authored
Showing with 79 additions and 6 deletions.
  1. +4 −5 CHANGELOG.txt
  2. +11 −0 MANIFEST
  3. +3 −1 MANIFEST.in
  4. +61 −0 deploy.py
View
9 CHANGELOG.txt
@@ -1,10 +1,9 @@
-=============================
-cascadenik changelog
-=============================
+Cascadenik Changelog
+--------------------
-Version 0.1.0, ___ Novemeber 2008:
----------------------------------
+Version 0.1.0, May 1, 2010:
+---------------------------
* Initial version.
View
11 MANIFEST
@@ -0,0 +1,11 @@
+AUTHORS.txt
+CHANGELOG.txt
+INSTALL.txt
+LICENSE.txt
+README.txt
+cascadenik-compile.py
+cascadenik-style.py
+setup.py
+cascadenik/__init__.py
+cascadenik/compile.py
+cascadenik/style.py
View
4 MANIFEST.in
@@ -1,3 +1,5 @@
include *.txt
include setup.py
-include ez_setup.py
+include cascadenik-compile.py
+include cascadenik-style.py
+recursive-include cascadenik *.py
View
61 deploy.py
@@ -0,0 +1,61 @@
+#!/usr/bin/env python
+
+"""
+Release Steps
+-------------
+ * create ~./pypirc file with pypi user:pass
+ * Edit CHANGELOG.txt
+ * rebuild MANIFEST 'python setup.py sdist --manifest-only'
+ * Increment '__version__' in main script and 'version' in setup.py
+ * Commit changes to SVN - confirm correct r# in CHANGELOG
+ * Run `deploy.py` to create sdist, upload, and create tag
+ * Commit tag
+ * Update Google Code wiki
+"""
+
+import sys
+import time
+from subprocess import call as subcall
+
+DEBUG = False
+
+app = 'cascadenik'
+version = '0.1.0'
+tag_dir= '../../tags/%s' % app
+
+def call(cmd):
+ if DEBUG:
+ print 'DEBUG: will execute -> %s' % cmd
+ else:
+ try:
+ response = subcall(cmd,shell=True)
+ print
+ time.sleep(1)
+ if response < 0:
+ sys.exit(response)
+ except OSError, E:
+ sys.exit(E)
+
+def cleanup():
+ call('sudo rm -rf *.egg* *.pyc dist/ build/')
+
+def tag():
+ call('svn copy https://mapnik-utils.googlecode.com/svn/trunk/serverside/%s/ https://mapnik-utils.googlecode.com/svn/tags/%s/%s -m "tagging %s %s release"' % (app,app,version,app,version))
+
+def package():
+ call('python setup.py sdist upload')
+ call('cp dist/%s-%s.tar.gz %s' % (app,version,tag_dir))
+ call('svn add %s/%s-%s.tar.gz' % (tag_dir,app,version))
+
+def commit():
+ call('svn ci %s -m "tagging %s %s release"' % (tag_dir,app,version))
+
+def main():
+ cleanup()
+ tag()
+ package()
+ cleanup()
+ #commit()
+
+if __name__ == '__main__':
+ main()
Please sign in to comment.
Something went wrong with that request. Please try again.