-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
48 lines (42 loc) · 974 Bytes
/
setup.py
File metadata and controls
48 lines (42 loc) · 974 Bytes
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
from setuptools import setup
import os
requirements = []
f = open('requirements.txt', 'r')
while True:
l = f.readline()
if l == '':
break
requirements.append(l.rstrip())
f.close()
test_requirements = []
f = open('test_requirements.txt', 'r')
while True:
l = f.readline()
if l == '':
break
test_requirements.append(l.rstrip())
f.close()
f = open('README.md', 'r')
description = f.read()
f.close()
man_dir = 'man/build'
mans = [
'eth-balance',
'eth-count',
'eth-decode',
'eth-encode',
'eth-gas',
'eth-get',
'eth-info',
'eth-raw',
'eth-wait',
]
for i in range(len(mans)):
mans[i] = os.path.join(man_dir, mans[i] + '.1')
setup(
install_requires=requirements,
tests_require=test_requirements,
data_files=[("man/man1", mans)],
long_description=description,
long_description_content_type='text/markdown',
)