PEP8 for packaging

This commit is contained in:
Intchanter 2012-06-30 14:35:31 -06:00
parent a1433ef5ec
commit 66b2e4988c
2 changed files with 61 additions and 54 deletions

View file

@ -10,4 +10,3 @@ fre.addScript('/usr/bin/salt-minion')
fre.use_compression = 0
fre.include_py = True
fre()

View file

@ -21,14 +21,19 @@ except ImportError:
from distutils.core import setup
with_setuptools = False
exec(compile(open("salt/version.py").read(), "salt/version.py", 'exec'))
class TestCommand(Command):
description = 'Run tests'
user_options = []
def initialize_options(self): pass
def finalize_options(self): pass
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
from subprocess import Popen
self.run_command('build')
@ -65,14 +70,16 @@ with open('requirements.txt') as f:
requirements = f.read()
setup_kwargs = {'name': NAME,
setup_kwargs = {
'name': NAME,
'version': VER,
'description': DESC,
'author': 'Thomas S Hatch',
'author_email': 'thatch45@gmail.com',
'url': 'http://saltstack.org',
'cmdclass': {'test': TestCommand},
'classifiers': ['Programming Language :: Python',
'classifiers': [
'Programming Language :: Python',
'Programming Language :: Cython',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
@ -86,7 +93,8 @@ setup_kwargs = {'name': NAME,
'Topic :: System :: Clustering',
'Topic :: System :: Distributed Computing',
],
'packages': ['salt',
'packages': [
'salt',
'salt.cli',
'salt.ext',
'salt.grains',