From 37734b9b880c32a9a8b602be7ea0979951e2c27b Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Sat, 27 Aug 2011 10:51:28 -0400 Subject: Add publish and test routines to setup.py --- setup.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) mode change 100644 => 100755 setup.py diff --git a/setup.py b/setup.py old mode 100644 new mode 100755 index f41e668..df99c5a --- a/setup.py +++ b/setup.py @@ -1,6 +1,9 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +import os +import sys + try: from setuptools import setup except ImportError: @@ -9,6 +12,16 @@ except ImportError: from dotfiles.core import __version__ +if sys.argv[-1] == "publish": + os.system("python setup.py sdist upload") + sys.exit() + + +if sys.argv[-1] == "test": + os.system("python test_dotfiles.py") + sys.exit() + + setup(name='dotfiles', version=__version__, description='Easily manage your dotfiles', -- cgit v1.2.3