chaind-eth

Queue server for ethereum
Info | Log | Files | Refs | README | LICENSE

setup.py (969B)


      1 from setuptools import setup
      2 import configparser
      3 import os
      4 
      5 
      6 requirements = []
      7 f = open('requirements.txt', 'r')
      8 while True:
      9     l = f.readline()
     10     if l == '':
     11         break
     12     requirements.append(l.rstrip())
     13 f.close()
     14 
     15 test_requirements = []
     16 f = open('test_requirements.txt', 'r')
     17 while True:
     18     l = f.readline()
     19     if l == '':
     20         break
     21     test_requirements.append(l.rstrip())
     22 f.close()
     23 
     24 erc20_requirements = []
     25 f = open('erc20_requirements.txt', 'r')
     26 while True:
     27     l = f.readline()
     28     if l == '':
     29         break
     30     erc20_requirements.append(l.rstrip())
     31 f.close()
     32 
     33 
     34 postgres_requirements = [
     35     'psycopg2==2.8.6',
     36         ] + requirements
     37 sqlite_requirements = [
     38         ] + requirements
     39 setup(
     40         install_requires=requirements,
     41         tests_require=test_requirements,
     42         extras_require={
     43             #'postgres': postgres_requirements,
     44             #'sqlite': sqlite_requirements,
     45             'erc20': erc20_requirements,
     46             }
     47     )