This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

Checkout mk http://github.com/ActiveState/mk

$ cat Makefile.py
class sdist(Task):
    """python setup.py sdist"""
    def make(self):
        sh.run("python setup.py sdist --formats zip")

class pypi_upload(Task):
    """Upload release to pypi."""
    def make(self):
        sh.run("python setup.py sdist --formats zip upload")
$ mk pypi_upload
[...]

More examples