forked from waditu/tushare
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
171 additions
and
4,937 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
pandas>=0.18.0 | ||
requests>=2.0.0 | ||
lxml>=3.8.0 | ||
simplejson>=3.16.0 | ||
msgpack>=0.5.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
from setuptools import setup, find_packages | ||
import codecs | ||
import os | ||
import tushare | ||
|
||
|
||
def read(fname): | ||
return codecs.open(os.path.join(os.path.dirname(__file__), fname)).read() | ||
|
@@ -63,21 +63,28 @@ def read(fname): | |
""" | ||
|
||
def read_install_requires(): | ||
with open('requirements.txt', 'r') as f: | ||
res = f.readlines() | ||
res = list(map(lambda s: s.replace('\n', ''), res)) | ||
return res | ||
reqs = [ | ||
'pandas>=0.18.0', | ||
'requests>=2.0.0', | ||
'lxml>=3.8.0', | ||
'simplejson>=3.16.0', | ||
'msgpack>=0.5.6', | ||
'pyzmq>=16.0.0' | ||
] | ||
return reqs | ||
|
||
|
||
setup( | ||
name='tushare', | ||
version=tushare.__version__, | ||
version=read('tushare/VERSION.txt'), | ||
description='A utility for crawling historical and Real-time Quotes data of China stocks', | ||
# long_description=read("READM.rst"), | ||
long_description = long_desc, | ||
author='Jimmy Liu', | ||
author_email='[email protected]', | ||
license='BSD', | ||
url='http://tushare.org', | ||
install_requires=read_install_requires(), | ||
keywords='Global Financial Data', | ||
classifiers=['Development Status :: 4 - Beta', | ||
'Programming Language :: Python :: 2.6', | ||
|
@@ -88,5 +95,6 @@ def read_install_requires(): | |
'Programming Language :: Python :: 3.5', | ||
'License :: OSI Approved :: BSD License'], | ||
packages=find_packages(), | ||
package_data={'': ['*.csv']}, | ||
include_package_data=True, | ||
package_data={'': ['*.csv', '*.txt']}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1.2.12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.