setup.py (875B)
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 f = open('README.md', 'r') 16 description = f.read() 17 f.close() 18 19 setup( 20 install_requires=requirements, 21 extras_require={ 22 'xdg': "pyxdg~=0.27", 23 }, 24 license_files= ('LICENSE',), 25 python_requires = '>=3.7', 26 include_package_data = True, 27 packages = [ 28 'chainlib', 29 'chainlib.cli', 30 'chainlib.runnable', 31 ], 32 scripts = [ 33 'scripts/chainlib-man.py', 34 ], 35 data_files=[("man/man1", ['man/build/chainlib-gen.1'],)], 36 long_description=description, 37 long_description_content_type='text/markdown', 38 )