from setuptools import setup, find_packages
import atexit
import shutilname = "sdk" def rm_temp ( ) : """删除打包过程中产生的中间文件:return:""" shutil. rmtree( 'build' ) shutil. rmtree( '{}.egg-info' . format ( name) )
atexit. register( rm_temp) setup( name= "{}" . format ( name) , version= "0.0.1" , author= "JHC" , author_email= "JHC000abc@gmail.com" , packages= find_packages( ) , package_data= { 'sdk' : [ 'plugins/*' , 'base/*' , 'temp/*' , 'tools/*' , 'utils/*' ] , } , data_files= [ ( R"Lib\site-packages" , [ "sdk/plugins/unrar.exe" ] ) , ( R"Lib\site-packages" , [ "sdk/plugins/SourceHanSerifSC-Bold.otf" ] ) ] , install_requires= [ 'pycryptodome' , 'bce-python-sdk' , 'cup' , 'unrar' , 'pymysql' , 'pillow' , 'opencv-python' , 'selenium-wire' , 'selenium' , 'lxml==4.9.1' , 'python-dotenv' , 'requests' , 'rarfile' , 'xlsxwriter' , 'xlrd' , 'chardet' , 'numpy' , 'nb-log' , 'urllib3' , 'python-dateutil' , 'zhconv' , 'pypinyin' , 'pydub' , ] , )