forked from yutiansut/QUANTAXIS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
76 lines (57 loc) · 1.64 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
#coding:utf-8
import codecs
import os
import sys
try:
from setuptools import setup
except:
from distutils.core import setup
"""
打包的用的setup必须引入,
"""
def read(fname):
return codecs.open(os.path.join(os.path.dirname(__file__), fname)).read()
NAME = "quantaxis"
"""
名字,一般放你包的名字即可
"""
PACKAGES = ["QUANTAXIS", "QUANTAXIS.QAFetch","QUANTAXIS.QACmd", "QUANTAXIS.QAMarket", "QUANTAXIS.QABacktest", "QUANTAXIS.QATask", "QUANTAXIS.QASpider","QUANTAXIS.QASU","QUANTAXIS.QAUtil","QUANTAXIS.QAARP","QUANTAXIS.QASignal"]
"""
包含的包,可以多个,这是一个列表
"""
DESCRIPTION = "QUANTAXIS:Quantitative Financial Strategy Framework"
LONG_DESCRIPTION = read("README.rst")
"""
参见read方法说明
"""
KEYWORDS = ["quantaxis","quant","finance"]
"""
关于当前包的一些关键字,方便PyPI进行分类。
"""
AUTHOR = "yutiansut"
AUTHOR_EMAIL = "[email protected]"
URL = "http://www.yutiansut.com"
VERSION = "0.3.8rc3"
LICENSE = "MIT"
setup(
name = NAME,
version = VERSION,
description = DESCRIPTION,
long_description = LONG_DESCRIPTION,
classifiers = [
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
],
install_requires = ['tushare==0.7.4','pymongo>=3.4','celery>=4.0.0'],
keywords = KEYWORDS,
author = AUTHOR,
author_email = AUTHOR_EMAIL,
url = URL,
license = LICENSE,
packages = PACKAGES,
include_package_data=True,
zip_safe=True,
)
## 把上面的变量填入了一个setup()中即可。