-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
42 lines (38 loc) · 1.05 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
# coding: utf-8
import re
from setuptools import setup, find_packages
# Get the version
version_regex = r'__version__ = ["\']([^"\']*)["\']'
with open('libra/__init__.py', 'r') as f:
text = f.read()
match = re.search(version_regex, text)
if match:
version = match.group(1)
else:
raise RuntimeError("No version number found!")
setup(
name='libra',
version=version,
author='xuweizheng; ctycheer',
author_email='xuweizheng@sohu-inc.com',
url='http://m.sohu.com/',
packages=find_packages(exclude=["*.pyc"]),
package_data={
'libra': ['conf/*.yaml']
},
install_requires=[
'python-etcd==0.4.4.dev0',
'urllib3==1.14.dev1',
'pyyaml',
'enum34>=1.1.6',
'uritools==2.0.0',
],
extras_require={
'redis': ['redis>=2.10.3'],
'http2': ['http2>=0.2.4'],
'zmq': ['pyzmq==15.2.0'],
'config': ['deepdiff==2.5.1'],
'consistent_statsd': ['hash_ring==1.3.1', 'statsd==3.2.1'],
'cthreading': ['cthreading==0.3'],
},
)