setup.py (592B)
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 sql_requirements = [] 16 f = open('sql_requirements.txt', 'r') 17 while True: 18 l = f.readline() 19 if l == '': 20 break 21 sql_requirements.append(l.rstrip()) 22 f.close() 23 24 25 setup( 26 install_requires=requirements, 27 extras_require={ 28 'sql': sql_requirements, 29 'rocksdb': ['shep[rocksdb]~=0.2.2'], 30 'redis': ['shep[redis]~=0.2.2'], 31 } 32 )