mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
PEP8 for packaging
This commit is contained in:
parent
a1433ef5ec
commit
66b2e4988c
2 changed files with 61 additions and 54 deletions
|
@ -10,4 +10,3 @@ fre.addScript('/usr/bin/salt-minion')
|
|||
fre.use_compression = 0
|
||||
fre.include_py = True
|
||||
fre()
|
||||
|
||||
|
|
24
setup.py
24
setup.py
|
@ -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')
|
||||
|
@ -60,19 +65,21 @@ else:
|
|||
|
||||
libraries = ['ws2_32'] if sys.platform == 'win32' else []
|
||||
|
||||
requirements=''
|
||||
requirements = ''
|
||||
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',
|
||||
|
@ -113,7 +121,7 @@ setup_kwargs = {'name': NAME,
|
|||
('share/man/man7', ['doc/man/salt.7']),
|
||||
],
|
||||
'install_requires': requirements,
|
||||
}
|
||||
}
|
||||
|
||||
if with_setuptools:
|
||||
setup_kwargs['entry_points'] = {
|
||||
|
|
Loading…
Add table
Reference in a new issue