同步操作将从 SleepySoft/StockAnalysisSystem 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
import osimport shutilfrom setuptools import setup, find_packagesroot_path = os.path.dirname(__file__)def pack_files(directory) -> [str]:paths = []for (path, directories, filenames) in os.walk(directory):if '__pycache__' in path:continuefor filename in filenames:paths.append(os.path.join('.', path, filename))return pathsdef pack_plugin() -> list:shutil.rmtree(os.path.join(root_path, 'plugin', 'Analyzer', '__pycache__'), ignore_errors=True)shutil.rmtree(os.path.join(root_path, 'plugin', 'Collector', '__pycache__'), ignore_errors=True)shutil.rmtree(os.path.join(root_path, 'plugin', 'Extension', '__pycache__'), ignore_errors=True)shutil.rmtree(os.path.join(root_path, 'plugin', 'Factor', '__pycache__'), ignore_errors=True)return pack_files('plugin')# return {# 'plugin/Analyzer', pack_files('plugin/')# 'plugin/Collector', pack_files('plugin')# 'plugin/Extension', pack_files('plugin')# 'plugin/Factor', pack_files('plugin')# }def pack_params(**kwargs) -> dict:return kwargsif __name__ == "__main__":# extra_files = pack_plugin()setup_params = pack_params(name='StockAnalysisSystem',version='0.0.8',license='Apache License',keywords='stock analysis system sas',description='Stock Analysis System',long_description='A framework for stock analysis',author='Sleepy',author_email='sleepysoft@gmail.com',maintainer='Sleepy',maintainer_email='sleepysoft@gmail.com',url='https://gitee.com/SleepySoft/StockAnalysisSystem',packages=find_packages(exclude=["Test", 'test', "*.tests", "*.tests.*"]),# packages=find_packages(where='StockAnalysisSystem', exclude=["Test", 'test', "*.tests", "*.tests.*"]),# package_dir={'': 'StockAnalysisSystem'},platforms='any',install_requires=['pyqt5','pyqtwebengine','bs4','lxml','requests','pandas','pymongo','openpyxl','tushare','matplotlib','requests_html','PyExecJS',],# data_files=[# ('StockAnalysisSystem/plugin', extra_files),# ],)setup(**setup_params)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。