forked from xeroc/stakemachine
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·64 lines (56 loc) · 1.69 KB
/
Copy pathsetup.py
File metadata and controls
executable file
·64 lines (56 loc) · 1.69 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
#!/usr/bin/env python3
from setuptools import setup, find_packages
from distutils.command import build as build_module
cmdclass = {}
console_scripts = ['dexbot-cli = dexbot.cli:main', 'dexbot-shell = dexbot.cli:shell']
install_requires = [
"bitshares==0.1.16",
"uptick>=0.1.4",
"click",
"sqlalchemy",
"appdirs",
"sdnotify",
"matplotlib",
"ruamel.yaml>=0.15.37"
]
class BuildCommand(build_module.build):
def run(self):
self.run_command('build_ui')
build_module.build.run(self)
try:
from pyqt_distutils.build_ui import build_ui
cmdclass = {
'build_ui': build_ui,
'build': BuildCommand
}
console_scripts.append('dexbot-gui = dexbot.gui:main')
install_requires.append("pyqt-distutils")
except BaseException as e:
print("GUI not available: {}".format(e))
from dexbot import VERSION, APP_NAME
setup(
name=APP_NAME,
version=VERSION,
description='Trading bot for the DEX (BitShares)',
long_description=open('README.md').read(),
author='Codaone Oy',
author_email='[email protected]',
maintainer='Codaone Oy',
maintainer_email='[email protected]',
url='http://www.github.com/codaone/dexbot',
keywords=['DEX', 'bot', 'trading', 'api', 'blockchain'],
packages=find_packages(),
classifiers=[
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
],
cmdclass=cmdclass,
entry_points={
'console_scripts': console_scripts
},
install_requires=install_requires,
include_package_data=True,
)