forked from Gandi/gandi.cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
45 lines (37 loc) · 1.3 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
#!/usr/bin/python
# -*- coding: utf-8 -*-
import re
import os
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 = ['pyyaml', 'click<=3.1']
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 :: 3',
'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,
entry_points="""\
[console_scripts]
gandi = gandi.cli.__main__:main
""",
)