ImportSYSImportPlatform fromSetuptoolsImportSetup, Find_packagesdefget_test_deps (): Test_deps= [ 'Pylint = = 1.7.2', 'mock = = 2.0.0', 'pytest-xdist' ] ifSys.version_info < (3,): Test_deps.append ('futures = = 3.1.1') returntest_depsdefget_data_files1 ():ifPlatform.system ()! ='Linux': returnNonereturn [ ('/etc/aidfs.aip', ['Readme.txt']), ('/etc/aidfs.aip/config', ['Cfg/aidfs/config/aidfs.yaml'])]test_deps=get_test_deps () Extras= {'Test': Test_deps}install_requires= [ 'Tornado = = 4.5.2', 'Click = = 6.7', 'Pyyaml = = 3.10', 'URLLIB3 = = 1.22', 'ThreadPool = = 1.3.2']entry_points= { 'console_scripts': [ 'Aidfs = src.cmd.aidfs:cli']}setup (Name='Aidfs', Version='1.0.0', Packages=find_packages (), Include_package_data=True, Install_requires=Install_requires, Tests_require=Test_deps, Extras_require=Extras, Data_files=get_data_files1 (), Entry_points=Entry_points, author="ZTE", Author_email="[email protected]", Description="")
Python Packaging Distribution Tool Setuptools