chainlib-eth

Ethereum implementation of the chainlib interface
Info | Log | Files | Refs | README | LICENSE

setup.py (974B)


      1 from setuptools import setup
      2 import os
      3 
      4 
      5 requirements = []
      6 f = open('requirements.txt', 'r')
      7 while True:
      8     l = f.readline()
      9     if l == '':
     10         break
     11     requirements.append(l.rstrip())
     12 f.close()
     13 
     14 test_requirements = []
     15 f = open('test_requirements.txt', 'r')
     16 while True:
     17     l = f.readline()
     18     if l == '':
     19         break
     20     test_requirements.append(l.rstrip())
     21 f.close()
     22 
     23 f = open('README.md', 'r')
     24 description = f.read()
     25 f.close()
     26 
     27 man_dir = 'man/build'
     28 mans = [
     29         'eth-balance',
     30         'eth-count',
     31         'eth-decode',
     32         'eth-encode',
     33         'eth-gas',
     34         'eth-get',
     35         'eth-info',
     36         'eth-raw',
     37         'eth-wait',
     38         ]
     39 for i in range(len(mans)):
     40     mans[i] = os.path.join(man_dir, mans[i] + '.1')
     41 
     42 setup(
     43         install_requires=requirements,
     44         tests_require=test_requirements,
     45         data_files=[("man/man1", mans)],
     46         long_description=description,
     47         long_description_content_type='text/markdown',
     48     )