forked from Gandi/gandi.cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
65 lines (55 loc) · 1.9 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
#!/usr/bin/python
# -*- coding: utf-8 -*-
import re
import os
import sys
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.md')).read()
CHANGES = open(os.path.join(here, 'CHANGES.rst')).read()
with open(os.path.join(here, 'gandi', 'cli', '__init__.py')) as v_file:
version = re.compile(r".*__version__ = '(.*?)'",
re.S).match(v_file.read()).group(1)
requires = ['setuptools', 'pyyaml', 'click>=3.1', 'requests', 'IPy']
tests_require = ['nose', 'coverage', 'tox']
if sys.version_info < (2, 7):
tests_require += ['unittest2', 'importlib']
if sys.version_info < (3, 3):
tests_require.append('mock')
extras_require = {
'test': tests_require,
}
setup(name='gandi.cli',
namespace_packages=['gandi'],
version=version,
description='Gandi command line interface',
long_description=README + '\n\n' + CHANGES,
author='Gandi',
author_email='[email protected]',
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Terminals',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
],
url='https://github.com/Gandi/gandi.cli',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=requires,
tests_require=tests_require,
test_suite='nose.collector',
extras_require=extras_require,
entry_points={
'console_scripts': [
'gandi = gandi.cli.__main__:main',
],
},
)