2017-05-21 18:21:55 +08:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# -*- coding: UTF-8 -*-
|
|
|
|
#
|
2021-11-21 04:13:48 +08:00
|
|
|
# yfinance - market data downloader
|
2019-05-26 19:21:08 +08:00
|
|
|
# https://github.com/ranaroussi/yfinance
|
2017-05-21 18:21:55 +08:00
|
|
|
|
2021-11-21 04:13:48 +08:00
|
|
|
"""yfinance - market data downloader"""
|
2017-05-21 18:21:55 +08:00
|
|
|
|
|
|
|
from setuptools import setup, find_packages
|
2019-08-23 17:33:30 +08:00
|
|
|
# from codecs import open
|
2021-12-30 23:27:46 +08:00
|
|
|
import io
|
|
|
|
from os import path
|
2017-05-21 18:21:55 +08:00
|
|
|
|
2021-03-25 07:16:01 +08:00
|
|
|
# --- get version ---
|
|
|
|
version = "unknown"
|
|
|
|
with open("yfinance/version.py") as f:
|
|
|
|
line = f.read().strip()
|
|
|
|
version = line.replace("version = ", "").replace('"', '')
|
|
|
|
# --- /get version ---
|
|
|
|
|
|
|
|
|
2021-12-30 23:27:46 +08:00
|
|
|
here = path.abspath(path.dirname(__file__))
|
2017-05-21 18:21:55 +08:00
|
|
|
|
2021-12-30 23:27:46 +08:00
|
|
|
# Get the long description from the README file
|
|
|
|
with io.open(path.join(here, 'README.md'), encoding='utf-8') as f:
|
|
|
|
long_description = f.read()
|
2017-05-21 18:21:55 +08:00
|
|
|
|
|
|
|
setup(
|
2019-05-26 19:21:08 +08:00
|
|
|
name='yfinance',
|
2021-03-25 07:16:01 +08:00
|
|
|
version=version,
|
2021-11-21 04:13:48 +08:00
|
|
|
description='Download market data from Yahoo! Finance API',
|
2021-12-30 23:27:46 +08:00
|
|
|
long_description=long_description,
|
|
|
|
long_description_content_type='text/markdown',
|
2019-05-26 19:21:08 +08:00
|
|
|
url='https://github.com/ranaroussi/yfinance',
|
2017-05-21 18:21:55 +08:00
|
|
|
author='Ran Aroussi',
|
|
|
|
author_email='ran@aroussi.com',
|
2019-04-17 05:17:09 +08:00
|
|
|
license='Apache',
|
2017-05-21 18:21:55 +08:00
|
|
|
classifiers=[
|
2019-04-17 05:17:09 +08:00
|
|
|
'License :: OSI Approved :: Apache Software License',
|
|
|
|
# 'Development Status :: 3 - Alpha',
|
2022-11-06 20:34:58 +08:00
|
|
|
'Development Status :: 4 - Beta',
|
2023-07-26 10:58:34 +08:00
|
|
|
# 'Development Status :: 5 - Production/Stable',
|
2019-04-17 05:17:09 +08:00
|
|
|
|
2017-05-21 18:21:55 +08:00
|
|
|
|
|
|
|
'Operating System :: OS Independent',
|
|
|
|
'Intended Audience :: Developers',
|
|
|
|
'Topic :: Office/Business :: Financial',
|
|
|
|
'Topic :: Office/Business :: Financial :: Investment',
|
|
|
|
'Topic :: Scientific/Engineering :: Interface Engine/Protocol Translator',
|
|
|
|
'Topic :: Software Development :: Libraries',
|
|
|
|
'Topic :: Software Development :: Libraries :: Python Modules',
|
|
|
|
|
2022-11-06 20:34:58 +08:00
|
|
|
'Programming Language :: Python :: 3.6',
|
2019-04-17 05:17:09 +08:00
|
|
|
'Programming Language :: Python :: 3.7',
|
2021-03-24 19:21:03 +08:00
|
|
|
'Programming Language :: Python :: 3.8',
|
|
|
|
'Programming Language :: Python :: 3.9',
|
2022-11-06 20:34:58 +08:00
|
|
|
'Programming Language :: Python :: 3.10',
|
2017-05-21 18:21:55 +08:00
|
|
|
],
|
2019-10-28 01:31:24 +08:00
|
|
|
platforms=['any'],
|
2017-05-21 18:21:55 +08:00
|
|
|
keywords='pandas, yahoo finance, pandas datareader',
|
|
|
|
packages=find_packages(exclude=['contrib', 'docs', 'tests', 'examples']),
|
2022-12-11 02:16:44 +08:00
|
|
|
install_requires=['pandas>=1.3.0', 'numpy>=1.16.5',
|
2023-07-21 07:17:44 +08:00
|
|
|
'requests>=2.31', 'multitasking>=0.0.7',
|
2022-12-11 02:16:44 +08:00
|
|
|
'lxml>=4.9.1', 'appdirs>=1.4.4', 'pytz>=2022.5',
|
2022-12-19 20:28:51 +08:00
|
|
|
'frozendict>=2.3.4',
|
2022-11-07 03:49:36 +08:00
|
|
|
'beautifulsoup4>=4.11.1', 'html5lib>=1.1'],
|
2023-06-21 21:49:16 +08:00
|
|
|
# Note: Pandas.read_html() needs html5lib & beautifulsoup4
|
2017-05-21 18:21:55 +08:00
|
|
|
entry_points={
|
|
|
|
'console_scripts': [
|
|
|
|
'sample=sample:main',
|
|
|
|
],
|
|
|
|
},
|
2018-06-18 17:53:06 +08:00
|
|
|
)
|
2021-11-21 04:13:48 +08:00
|
|
|
|
|
|
|
print("""
|
|
|
|
NOTE: yfinance is not affiliated, endorsed, or vetted by Yahoo, Inc.
|
|
|
|
|
|
|
|
You should refer to Yahoo!'s terms of use for details on your rights
|
|
|
|
to use the actual data downloaded.""")
|