-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
61 lines (56 loc) · 1.42 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import re
from setuptools import find_packages, setup
VERSION_REX = re.compile(r'VERSION\s*=\s*\((.*?)\)')
def get_package_version():
"""returns package version without importing it"""
base = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(base, 'naumanni/__init__.py')) as fp:
for line in fp:
m = VERSION_REX.match(line.strip())
if not m:
continue
return ".".join(m.groups()[0].split(", "))
setup(
name='naumanni-server',
version=get_package_version(),
packages=find_packages(exclude=['tests']),
install_requires=[
'aioredis<1.0',
'click>=6',
'psutil>=5.2.2',
'pycurl>=7.43.0',
'python-dateutil>=2.6.0',
'tornado>=4.5.1',
'twitter-text-python>=1.1.0',
'Werkzeug>=0.12.2',
],
dependency_links=[
],
entry_points={
'console_scripts': [
'naumanni=naumanni.cli:cli_entry',
],
},
extras_require={
'test': [
'coverage',
'flake8',
'flake8-import-order',
# 'nnpy',
'pytest',
# 'pytest-timeout',
# 'tcptest',
'tox',
],
'doc': [
# 'Sphinx',
# 'sphinx-rtd-theme',
],
'utils': [
'boto>=2.47.0',
]
}
)