aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorGravatar Jon Bernard <jbernard@tuxion.com> 2011-08-27 10:52:28 -0400
committerGravatar Jon Bernard <jbernard@tuxion.com> 2011-08-27 10:52:28 -0400
commit55ae047d065b4b8ac78050d7c7a1cb32a8139f86 (patch)
treed7dbab13d07360d4ecb927ed93b761e0d806ef92 /setup.py
parentdbad463a5aa1c45daabb2f90d84d1626a0c6e658 (diff)
parent37734b9b880c32a9a8b602be7ea0979951e2c27b (diff)
downloaddotfiles-55ae047d065b4b8ac78050d7c7a1cb32a8139f86.tar.gz
dotfiles-55ae047d065b4b8ac78050d7c7a1cb32a8139f86.tar.bz2
dotfiles-55ae047d065b4b8ac78050d7c7a1cb32a8139f86.zip
Merge branch 'release/0.4.0'v0.4.0
Diffstat (limited to 'setup.py')
-rwxr-xr-x[-rw-r--r--]setup.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index f41e668..df99c5a 100644..100755
--- 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',