Skip to content

Commit

Permalink
PEP8 for packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
intchanter committed Jun 30, 2012
1 parent a1433ef commit 66b2e49
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 54 deletions.
1 change: 0 additions & 1 deletion pkg/freeze/freeze.py
Expand Up @@ -10,4 +10,3 @@
fre.use_compression = 0
fre.include_py = True
fre()

114 changes: 61 additions & 53 deletions setup.py
Expand Up @@ -21,14 +21,19 @@
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')
Expand Down Expand Up @@ -60,60 +65,63 @@ def run(self):

libraries = ['ws2_32'] if sys.platform == 'win32' else []

requirements=''
requirements = ''
with open('requirements.txt') as f:
requirements = f.read()


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',
'Programming Language :: Cython',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: Apache Software License',
'Operating System :: POSIX :: Linux',
'Topic :: System :: Clustering',
'Topic :: System :: Distributed Computing',
],
'packages': ['salt',
'salt.cli',
'salt.ext',
'salt.grains',
'salt.modules',
'salt.renderers',
'salt.returners',
'salt.runners',
'salt.states',
'salt.utils',
],
'package_data': {
'salt.modules': ['rh_ip/*.jinja'],
},
'data_files': [('share/man/man1',
['doc/man/salt-master.1',
'doc/man/salt-key.1',
'doc/man/salt.1',
'doc/man/salt-cp.1',
'doc/man/salt-call.1',
'doc/man/salt-syndic.1',
'doc/man/salt-run.1',
'doc/man/salt-minion.1',
]),
('share/man/man7', ['doc/man/salt.7']),
],
'install_requires': requirements,
}
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',
'Programming Language :: Cython',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: Apache Software License',
'Operating System :: POSIX :: Linux',
'Topic :: System :: Clustering',
'Topic :: System :: Distributed Computing',
],
'packages': [
'salt',
'salt.cli',
'salt.ext',
'salt.grains',
'salt.modules',
'salt.renderers',
'salt.returners',
'salt.runners',
'salt.states',
'salt.utils',
],
'package_data': {
'salt.modules': ['rh_ip/*.jinja'],
},
'data_files': [('share/man/man1',
['doc/man/salt-master.1',
'doc/man/salt-key.1',
'doc/man/salt.1',
'doc/man/salt-cp.1',
'doc/man/salt-call.1',
'doc/man/salt-syndic.1',
'doc/man/salt-run.1',
'doc/man/salt-minion.1',
]),
('share/man/man7', ['doc/man/salt.7']),
],
'install_requires': requirements,
}

if with_setuptools:
setup_kwargs['entry_points'] = {
Expand Down

0 comments on commit 66b2e49

Please sign in to comment.