-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
63 lines (58 loc) · 1.67 KB
/
setup.py
File metadata and controls
63 lines (58 loc) · 1.67 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
#!/usr/bin/env python
import os
import sys
import re
from setuptools import find_packages, setup
sys.path.insert(0, os.path.abspath('src'))
def _get_version():
"""Extract version from package."""
with open('cerastes/__init__.py') as reader:
match = re.search(
r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
reader.read(),
re.MULTILINE
)
if match:
return match.group(1)
else:
raise RuntimeError('Unable to extract version.')
def _get_long_description():
"""Get README contents."""
with open('README.md') as reader:
return reader.read()
setup(
name='cerastes',
version=_get_version(),
description=__doc__,
long_description=_get_long_description(),
author='Yassine Azzouz',
author_email='yassine.azzouz@agmail.com',
url='https://github.com/yassineazzouz/cerastes',
license='GPLv3',
packages=find_packages(),
package_data={'': ['*.proto','*.json']},
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Operating System :: POSIX',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
install_requires=[
'docopt',
'protobuf>2.4.1',
'jsonschema>=2.0',
'python-krbV',
'sasl',
'six',
'enum34'
],
entry_points={'console_scripts':
[ 'cerastes = cerastes.cmdtool:main' ]
},
)