-
Notifications
You must be signed in to change notification settings - Fork 57
/
setup.py
executable file
·51 lines (39 loc) · 1.09 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
#!/usr/bin/env python
NAME = 'chinesestockapi'
VERSION = '1.4'
DESCRIPTION = 'Python API to get Chinese stock price'
LONG_DESCRIPTION = """\
Library to get Chinese stock price
Supported Engines:
- Hexun API
- Sina Finance API
- Yahoo Finance API
Usage:
from cstock.request import Requests
from cstock.hexun_engine import HexunEngine
engine = HexunEngine()
requester = Requester(engine)
stock = requester.request('000626')
print stock.as_dict()
Github Site: https://github.com/godsarmy/chinese-stock-api.
"""
AUTHOR = 'Walt Chen'
AUTHOR_EMAIL = '[email protected]'
URL = 'https://pypi.python.org/pypi/chinesestockapi'
PLATFORM = 'any'
LICENSE = 'Apache Software License'
from setuptools import setup, find_packages
if __name__ == '__main__':
setup(
name=NAME,
version=VERSION,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
url=URL,
packages=find_packages(exclude=["test"]),
platforms=PLATFORM ,
license=LICENSE,
test_suite = 'nose.collector'
)