-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsetup.py
83 lines (76 loc) · 1.99 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
__updated__ = "2023-07-14 15:12:11"
from setuptools import setup
import setuptools
import re
import os
import sys
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
def get_version(package):
"""Return package version as listed in `__version__` in `init.py`."""
init_py = open(os.path.join(package, "__init__.py")).read()
return re.search("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)
install_requires = [
# "numpy",
"pandas<=1.5.3",
"scipy",
"statsmodels",
"plotly",
# "matplotlib",
"pyarrow",
"loguru",
"knockknock",
"dcube",
"tenacity",
"pickledb",
"pymysql",
"sqlalchemy",
"requests",
"bs4",
"wrapt_timeout_decorator",
"pyfinance",
"texttable",
"numpy_ext",
"xpinyin",
"cufflinks",
"clickhouse_sqlalchemy",
"tradetime",
"deprecation",
"questdb==1.1.0",
"mpire",
"py7zr",
"unrar",
"rarfile",
# "zipfile",
"chardet",
"cachier",
"polars",
"polars_ols",
"python_docx",
]
if sys.platform.startswith("win"):
install_requires = install_requires + ["psycopg2"]
else:
install_requires = install_requires + ["psycopg2-binary"]
setup(
name="pure_ocean_breeze",
version=get_version("pure_ocean_breeze"),
description="stock factor test",
# long_description="详见homepage\nhttps://github.com/chen-001/pure_ocean_breeze.git",
long_description=long_description,
long_description_content_type="text/markdown",
author="chenzongwei",
author_email="winterwinter999@163.com",
url="https://github.com/chen-001/pure_ocean_breeze.git",
project_urls={"Documentation": "https://chen-001.github.io/pure_ocean_breeze/"},
install_requires=install_requires,
python_requires=">=3",
license="MIT",
packages=setuptools.find_packages(),
requires=[],
extras_require={
"windows": ["psycopg2"],
"macos": ["psycopg2-binary"],
"linux": ["psycopg2-binary"],
},
)