代码拉取完成,页面将自动刷新
同步操作将从 wanderknight/pytdx 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/usr/bin/env python
from setuptools import setup, find_packages
import os
PYTDX_CYTHON = os.getenv("PYTDX_CYTHON", None)
if PYTDX_CYTHON:
from Cython.Build import cythonize
cythonkw = {
"ext_modules": cythonize(
["pytdx/reader/c_gbbq_reader.pyx",
'pytdx/parser/get_security_quotes.py',
'pytdx/parser/base.py',
'pytdx/helper.py',
'pytdx/hq.py',
'pytdx/base_socket_client.py',
])
}
else:
cythonkw = {}
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except (IOError, ImportError):
print(30 * "*")
print("Notice, NEED TO INSTALL *pypandoc* TO get full description of package")
print(30 * "*")
long_description = ''
# try get current branch
cur_branch = 'master'
try:
from git import Repo
cur_path = os.path.abspath(os.path.dirname(__file__))
repo = Repo(cur_path)
cur_branch = repo.active_branch.name
except Exception as e:
print(30 * "*")
print("Notice, NEED TO INSTALL *GitPython* TO setup package with branch name")
print(30 * "*")
pkg_name = 'pytdx'
if cur_branch != 'master':
pkg_name = 'pytdx-' + cur_branch
print(30 * '-')
print("Current Branch is {}, so package name is {}".format(cur_branch, pkg_name))
print(30 * '-')
setup(
name=pkg_name,
version='1.67',
description='A Python Interface to TDX protocol',
long_description=long_description,
author='RainX<Jing Xu>',
author_email='i@rainx.cc',
url='https://github.com/rainx/pytdx',
packages=find_packages(),
install_requires=[
'click',
'pandas',
'six',
'cryptography',
],
entry_points={
'console_scripts': [
'hqget=pytdx.bin.hqget:main',
'hqreader=pytdx.bin.hqreader:main',
'get_tts=pytdx.bin.get_tdx_trader_server:main',
'hqbenchmark=pytdx.bin.hqbenchmark:main',
]
},
**cythonkw
)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。