代码拉取完成,页面将自动刷新
同步操作将从 谭纳/ShiPanE-Python-SDK 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# -*- coding: utf-8 -*-
import os
import re
import shutil
from codecs import open
from setuptools import setup, find_packages
from setuptools.command.install import install
class CustomInstallCommand(install):
def run(self):
install.run(self)
config_path = os.path.join(os.path.expanduser('~'), '.shipane_sdk', 'config')
ConfigInstantiator.instantiate(config_path)
class ConfigInstantiator:
@staticmethod
def instantiate(path):
for filename in os.listdir(path):
match = re.search("(.*)-template\\.(.*)", filename)
if match is None:
continue
concrete_filename = '{}.{}'.format(match.group(1), match.group(2))
template_file_path = os.path.join(path, filename)
concrete_file_path = os.path.join(path, concrete_filename)
if os.path.isfile(concrete_file_path):
continue
shutil.copyfile(template_file_path, concrete_file_path)
def main():
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='shipane_sdk',
version='1.4.0a3',
description=u'实盘易(ShiPanE)Python SDK,通达信自动化交易 API。',
long_description=long_description,
url='https://github.com/sinall/ShiPanE-Python-SDK',
author='sinall',
author_email='gaoruinan@163.com',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: Financial and Insurance Industry',
'Topic :: Office/Business :: Financial :: Investment',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
keywords='ShiPanE SDK 通达信 TDX Automation',
packages=find_packages(exclude=['contrib', 'docs', 'tests']),
install_requires=['requests', 'six', 'apscheduler', 'lxml', 'cssselect', 'bs4', 'html5lib', 'pandas',
'rqopen-client', 'tushare', 'pyyaml'],
extras_require={
'dev': [],
'test': [],
},
package_data={
},
data_files=[(os.path.join(os.path.expanduser('~'), '.shipane_sdk', 'config'), [
'config/scheduler-template.ini',
'config/logging-template.ini',
])],
scripts=['scripts/shipane-scheduler.py'],
entry_points={
'console_scripts': [
'shipane-scheduler = shipane_sdk.scheduler:start',
],
},
cmdclass={
'install': CustomInstallCommand,
},
)
if __name__ == '__main__':
main()
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。