-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsetup.py
More file actions
106 lines (94 loc) · 3.1 KB
/
setup.py
File metadata and controls
106 lines (94 loc) · 3.1 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
"""A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
import os
from glob import glob
from os.path import basename, dirname, join, splitext, abspath
from codecs import open as copen
from setuptools import find_packages, setup
here = abspath(dirname(__file__))
with copen(join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
# let's generate docs...
if os.environ.get("READTHEDOCS") and not os.path.isdir(".doc"):
os.mkdir(".doc")
os.system("make")
os.system("make html")
else:
setup(
name='babao',
version='0.2.0',
license='BeerWare',
description='A bitcoin trading machine - '
'"I\'ve got 99 problems But A Bot Ain\'t One".',
long_description=long_description,
author='JeanMax',
author_email='max.canal@student.42.fr',
url='https://github.com/JeanMax/babao',
packages=find_packages('src'),
package_dir={'': 'src'},
py_modules=[splitext(basename(path))[0] for path in glob('src/*.py')],
include_package_data=True,
zip_safe=False,
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Topic :: Software Development :: Crazy Bot',
'License :: OSI Approved :: MIT License',
'Operating System :: Unix',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: Implementation :: CPython',
],
keywords='bitcoin bot',
python_requires='>=3.5',
install_requires=[
# machine learning
'keras>=2.1.2',
# 'tensorflow', # >=1.8.0', readthedocs prefers tensorflow-1.9.0rc1
'theano>=1.0.2',
'scipy>=1.1.0',
'scikit-learn>=0.19.1',
'joblib>=0.11', # just for saving scikit models...
# data handling
'numpy>=1.14.5',
'pandas>=0.23.1',
'tables>=3.4.2',
# reader-writer lock
'prwlock>=0.4.0',
# parsing
'configparser>=3.5.0',
'argparse>=1.4.0',
# api
'krakenex>=2.1.0',
],
# requires=[s.split(">")[0].replace("-", ".") for s in REQ],
extras_require={
'graph': ['matplotlib'],
'test': [
'pytest-runner',
'pytest',
'pylint',
'flake8',
'flake8-bugbear',
'coveralls',
'sphinx',
'pyre-check',
'mypy'
],
},
setup_requires=['pytest-runner'],
test_suite='pytest',
package_data={
# 'babao': ['package_data.dat'],
},
entry_points={
'console_scripts': [
'babao = babao.babao:main',
],
},
)