Browse files

build tasks for release management

  • Loading branch information...
1 parent 3be7cff commit 9a4dd2681edc08c1ff829aea5cc3fc2edf847e79 @rags committed Dec 17, 2012
Showing with 22 additions and 5 deletions.
  1. +8 −0 CHANGES.rst
  2. +13 −4 build.py
  3. +1 −1 setup.py
View
8 CHANGES.rst
@@ -1,6 +1,14 @@
Changes
=======
+0.6.0 - 17/12/2012
+------------------
+
+* Simplified ignoring tasks. ignore a keyword param for task and not a separate decorator. [This change is NOT backward compatible!!!]
+* Added support for listing tasks
+* Improved help
+
+
0.5.0 - 01/12/2012
------------------
View
17 build.py
@@ -2,21 +2,30 @@
import sys
import subprocess
-import pynt
+from pynt import task, build
-@pynt.task()
+@task()
def apidoc():
"""
Generate API documentation using epydoc.
"""
subprocess.call(["epydoc","--config","epydoc.config"])
-@pynt.task()
+@task()
def test(*args):
"""
Run unit tests.
"""
subprocess.call(["py.test"] + list(args))
+
+@task()
+def generate_rst():
+ subprocess.call(['pandoc', '-f', 'markdown', '-t', 'rst', '-o', 'README.rst', 'README.md'])
+
+@task(generate_rst)
+def upload():
+ subprocess.call(['python', 'setup.py', 'bdist', '--formats', 'wininst,gztar', 'upload'])
+
if __name__ == "__main__":
- pynt.build(sys.modules[__name__],sys.argv[1:])
+ build(sys.modules[__name__],sys.argv[1:])
View
2 setup.py
@@ -2,7 +2,7 @@
setup(
name="pynt",
- version="0.5.0",
+ version="0.6.0",
author="Raghunandan Rao",
author_email="r.raghunandan@gmail.com",
url="https://github.com/rags/pynt",

0 comments on commit 9a4dd26

Please sign in to comment.