forked from rainx/pytdx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
46 lines (39 loc) · 1016 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/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")
}
else:
cythonkw = {}
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except (IOError, ImportError):
long_description = ''
setup(
name='pytdx',
version='1.34',
description='A Python Interface to TDX protocol',
long_description=long_description,
author='RainX<Jing Xu>',
author_email='[email protected]',
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'
]
},
**cythonkw
)