Skip to content

Commit

Permalink
Adds publish option to setup.py.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarp committed Jun 23, 2014
1 parent c9ba2de commit 7eb8cbd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-

import os
import re
import sys
from setuptools import setup, find_packages
Expand All @@ -13,6 +14,11 @@
]


if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()


class PyTest(TestCommand):

def finalize_options(self):
Expand Down

0 comments on commit 7eb8cbd

Please sign in to comment.