forked from akfamily/akshare
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
86 lines (80 loc) · 2.17 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# -*- coding:utf-8 -*-
# /usr/bin/env python
"""
Date: 2020/10/11 13:58
Desc: AkShare's pypi info file
"""
import re
import ast
import setuptools
with open("README.md", "r", encoding="utf-8") as f:
long_description = f.read()
def get_version_string():
"""
Get the akshare version number
:return: version number
:rtype: str, e.g. '0.6.24'
"""
with open("akshare/__init__.py", "rb") as _f:
version_line = re.search(
r"__version__\s+=\s+(.*)", _f.read().decode("utf-8")
).group(1)
return str(ast.literal_eval(version_line))
setuptools.setup(
name="akshare",
version=get_version_string(),
author="Albert King",
author_email="[email protected]",
license="MIT",
description="AkShare is an elegant and simple financial data interface library for Python, built for human beings!",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/jindaxiang/akshare",
packages=setuptools.find_packages(),
install_requires=[
"beautifulsoup4>=4.9.1",
"lxml>=4.2.1",
"matplotlib>=3.1.1",
"numpy>=1.15.4",
"pandas>=0.25",
"requests>=2.22.0",
"demjson>=2.2.4",
"pillow>=6.2.0",
"pypinyin>=0.35.0",
"websocket-client>=0.56.0",
"html5lib>=1.0.1",
"xlrd==1.2.0",
"tqdm>=4.43.0",
"openpyxl>=3.0.3",
"jsonpath>=0.82",
"tabulate>=0.8.6",
"decorator>=4.4.2",
"py_mini_racer>=0.4.0",
],
package_data={"": ["*.py", "*.json", "*.pk", "*.js"]},
keywords=[
"stock",
"option",
"futures",
"fund",
"bond",
"index",
"air",
"finance",
"spider",
"quant",
"quantitative",
"investment",
"trading",
"algotrading",
"data",
],
classifiers=[
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires=">=3.7",
)