setup.py (792B)
1 from setuptools import setup 2 import os 3 4 requirements = [] 5 f = open('requirements.txt', 'r') 6 while True: 7 l = f.readline() 8 if l == '': 9 break 10 requirements.append(l.rstrip()) 11 f.close() 12 13 test_requirements = [] 14 f = open('test_requirements.txt', 'r') 15 while True: 16 l = f.readline() 17 if l == '': 18 break 19 test_requirements.append(l.rstrip()) 20 f.close() 21 22 23 man_dir = 'man/build' 24 setup( 25 package_data={ 26 '': [ 27 'data/MintableFactor.bin', 28 ], 29 }, 30 include_package_data=True, 31 install_requires=requirements, 32 tests_require=test_requirements, 33 data_files=[("man/man1", [ 34 os.path.join(man_dir, 'erc20-demurrage-token-publish.1'), 35 ] 36 )], 37 )