forked from fabtools/fabtools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
84 lines (72 loc) · 2.44 KB
/
setup.py
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
import os
import sys
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
def read(filename):
path = os.path.join(os.path.dirname(__file__), filename)
return open(path).read()
class Tox(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import tox
errno = tox.cmdline(self.test_args)
sys.exit(errno)
fabric_package = 'fabric>=1.7.0'
if sys.version_info >= (3, 0): # substitute fabric3 for python 3 environments
fabric_package = 'fabric3>=1.13.1.post1'
setup(
name='fabtools',
version='0.21.0.dev0',
description='Tools for writing awesome Fabric files',
long_description=read('README.rst') + '\n' + read('docs/CHANGELOG.rst'),
author='Ronan Amicel',
author_email='[email protected]',
url='http://fabtools.readthedocs.org/',
license='BSD',
install_requires=[
fabric_package,
"six",
],
setup_requires=[],
tests_require=[
'tox',
],
cmdclass={
'test': Tox,
},
packages=find_packages(exclude=['ez_setup', 'tests']),
include_package_data=True,
zip_safe=False,
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: BSD License',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Unix',
'Operating System :: POSIX',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development',
'Topic :: Software Development :: Build Tools',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Software Distribution',
'Topic :: System :: Systems Administration',
],
)