setup.py (502B)
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 include_package_data=True, 24 install_requires=requirements, 25 tests_require=test_requirements, 26 )