setup.py (467B)
1 from setuptools import setup 2 3 requirements = [] 4 f = open('requirements.txt', 'r') 5 while True: 6 l = f.readline() 7 if l == '': 8 break 9 requirements.append(l.rstrip()) 10 f.close() 11 12 test_requirements = [] 13 f = open('test_requirements.txt', 'r') 14 while True: 15 l = f.readline() 16 if l == '': 17 break 18 test_requirements.append(l.rstrip()) 19 f.close() 20 21 22 setup( 23 install_requires=requirements, 24 tests_require=test_requirements, 25 )