Preface
tushare is an utility for crawling historical and Real-time Quotes data of
China stocks. It’s great but not setting install dependences correctly. We will
found only tushare installed but without any dependences installed if we try
install tushare in a virtualenv environment by pip in python3.6 on Ubuntu 18.04.
That’s so annoying to install those libraries manually.
Yes, fix this problem in tushare is more simple than just create a new library,
but there have some PRs (#452, #264) related not been pay attention for a long
time …
Usage
Just place ‘tushare-deps’ to your install_requires list in setup(), and remove
‘tushare’ depends, see sample below
from setuptools import setup, find_packages
install_requires = [
'tushare-deps',
]
setup(
name='testlib',
version='0.0.1',
description="Just for test",
long_description=long_description,
author="Hong-She Liang",
author_email='starofrainnight@gmail.com',
url='https://github.com/starofrainnight/testlib',
packages=find_packages(),
include_package_data=True,
install_requires=install_requires,
license="Apache Software License",
zip_safe=False,
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
)