forked from vmware-archive/salt-testing
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·66 lines (56 loc) · 1.52 KB
/
setup.py
File metadata and controls
executable file
·66 lines (56 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/usr/bin/env python
'''
The setup script for SaltTesting
'''
import os
import sys
from distutils.core import setup
setup_kwargs = {}
USE_SETUPTOOLS = False
if 'USE_SETUPTOOLS' in os.environ:
try:
from setuptools import setup
USE_SETUPTOOLS = True
if sys.version_info < (2, 7):
setup_kwargs['install_requires'] = ['unittest2']
except:
USE_SETUPTOOLS = False
if USE_SETUPTOOLS is False:
from distutils.core import setup
exec(
compile(
open('salttesting/version.py').read(), 'salttesting/version.py', 'exec'
)
)
NAME = 'SaltTesting'
VERSION = __version__
DESCRIPTION = (
'Required testing tools needed in the several Salt Stack projects.'
)
setup(
name=NAME,
version=VERSION,
description=DESCRIPTION,
author='Pedro Algarvio',
author_email='pedro@algarvio.me',
url='http://saltstack.org',
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: Apache Software License',
'Operating System :: POSIX :: Linux',
],
packages=[
'salttesting',
'salttesting/ext',
'salttesting/parser',
'salttesting/pylintplugins'
],
**setup_kwargs
)