forked from Codaone/DEXBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·55 lines (47 loc) · 1.51 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
#!/usr/bin/env python3
from dexbot import VERSION, APP_NAME
from setuptools import setup, find_packages
from distutils.command import build as build_module
cmd_class = {}
console_scripts = ['dexbot-cli = dexbot.cli:main']
install_requires = []
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
cmd_class = {
'build_ui': build_ui,
'build': BuildCommand
}
console_scripts.append('dexbot-gui = dexbot.gui:main')
install_requires.extend(["pyqt-distutils"])
except BaseException as e:
print("GUI not available: {}".format(e))
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=cmd_class,
entry_points={
'console_scripts': console_scripts
},
install_requires=install_requires,
include_package_data=True,
)