use subprocess instead of os.system, and gpg-sign releases

This commit is contained in:
Micah Lee 2014-05-24 21:36:59 -04:00
parent 1533d490c5
commit 9a75f39bc0

View file

@ -1,8 +1,7 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import os import os, sys, subprocess
import sys
try: try:
from setuptools import setup from setuptools import setup
@ -10,7 +9,7 @@ except ImportError:
from distutils.core import setup from distutils.core import setup
if sys.argv[-1] == 'publish': if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload') subprocess.call('python setup.py sdist upload --sign')
sys.exit() sys.exit()
setup( setup(