-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·51 lines (39 loc) · 1.32 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
import io
import os
import re
from setuptools import setup, find_packages
def read(filename):
filename = os.path.join(os.path.dirname(__file__), filename)
text_type = type(u"")
with io.open(filename, mode="r", encoding='utf-8') as fd:
return re.sub(text_type(r':[a-z]+:`~?(.*?)`'), text_type(r'``\1``'), fd.read())
setup(
name="etherbank-cli",
version="0.3dev",
url="https://github.com/ideal-money/",
license='BSD 2-Clause License',
author="Siftal",
description="Command line interfaces to work with etherbank, oracles and liquidator smart contracts",
long_description=read("README.md"),
python_requires='>=3.6',
packages=find_packages(),
install_requires=[
"web3 == 4.8.1",
"click == 7.0"
],
entry_points={
'console_scripts': [
'etherbank = etherbank_cli.etherbank:main',
'oracles = etherbank_cli.oracles:main',
'liquidator = etherbank_cli.liquidator:main'
]
},
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
)
if os.path.exists(os.path.expanduser('~/.etherbank.json')):
os.remove(os.path.expanduser('~/.etherbank.json'))