-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathsetup.py
46 lines (43 loc) · 1.38 KB
/
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
46
import setuptools
with open("README.md", "r", encoding='utf-8') as fp:
long_description = fp.read()
version = {}
with open("ta_cn/_version.py", encoding="utf-8") as fp:
exec(fp.read(), version)
setuptools.setup(
name="ta_cn",
version=version['__version__'],
author="wukan",
author_email="[email protected]",
description="Technical Analysis Indicators",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/wukan1986/ta_cn",
packages=setuptools.find_packages(),
install_requires=[
'numpy', # 基础版,希望用户自己能解决talib的安装问题
'loguru',
],
extras_require={
'talib': [
'TA-Lib>=0.4.19', # 有编译条件的用户通过它也能编译安装
],
'cn': [
'numpy>=1.20.0', # 主要是为了sliding_window_view
'pandas',
'bottleneck',
'numba',
# 'TA-Lib>=0.4.19', # 担心talib安装不过导致失败,所以注释此句
],
'parallel': [
'parmap', # 并行库,带进度条
],
},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
'Intended Audience :: Developers',
],
python_requires=">=3.7",
)