-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
74 lines (63 loc) · 2.35 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
66
67
68
69
70
71
72
73
import subprocess
from os import path
from setuptools import setup
from setuptools.command.install import install
here = path.abspath(path.dirname(__file__))
with open('README.rst') as f:
readme = f.read()
class MyInstall(install):
def run(self):
try:
subprocess.call(['/bin/sh', 'prepare_pip.sh'], cwd=here)
subprocess.call(['python', 'prepare_pip.py'], cwd=here)
except Exception as e:
print(e)
print("Error compiling openssl.")
exit(1)
else:
install.run(self)
bbc_simple_requires = [
'pyOpenSSL>=16.2.0',
'jinja2>=2.8.1',
'requests>=2.12.4',
'gevent>=1.2.1',
'greenlet',
'cryptography',
'pytest<=3.2.*,>=3.0.5',
'msgpack-python',
'mysql-connector-python==8.0.5',
'dictproxyhack==1.1',
'fluent-logger==0.9.0',
'PyYAML==3.12',
'bson',
'Flask==1.0.2',
'Flask-Cors==3.0.4',
'aiohttp',
'aiohttp-cors',
'redis'
]
bbc_simple_packages = ['bbc_simple', 'bbc_simple.core', 'bbc_simple.app', 'bbc_simple.logger']
bbc_simple_commands = [
'bbc_simple/core/bbc_core.py',
'bbc_simple/app/bbc_app_rest.py',
'utils/performance_tester.py']
bbc_simple_classifiers = [
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development']
setup(
name='bbc_simple',
version='0.0.1.beta2',
description='Simplified Beyond Block-chain One',
long_description=readme,
url='https://github.com/quvox/bbc-simple',
author='Takeshi Kubo',
author_email='[email protected]',
license='Apache License 2.0',
classifiers=bbc_simple_classifiers,
cmdclass={'install': MyInstall},
packages=bbc_simple_packages,
scripts=bbc_simple_commands,
install_requires=bbc_simple_requires,
zip_safe=False)