setup.py (503B)
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 25 setup( 26 install_requires=requirements, 27 # tests_require=test_requirements, 28 )