def install(): """installs the latest built module""" tarballs = sorted(path("dist").listdir("*.tar.gz")) if not tarballs: build() tarballs = sorted(path("dist").listdir("*.tar.gz")) latest = tarballs[-1] shell("easy_install --upgrade %s" % latest)
def build(): """builds everything into a source distribution""" shell("python setup.py sdist")
def release(): """releases this code + documentation to pypi""" shell("python setup.py register") shell("python setup.py sdist upload")