Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 20 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"""yfinance - market data downloader"""

from setuptools import setup, find_packages
from setuptools.command.install import install
# from codecs import open
import io
from os import path
Expand All @@ -25,6 +26,18 @@
with io.open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()

WARNINGS:'dict[str,str]' = {}

class Install(install):
def run(self):
if message := WARNINGS.get(version, None):
print(message)
install.run(self)





setup(
name='yfinance',
version=version,
Expand Down Expand Up @@ -55,15 +68,19 @@
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',

],
platforms=['any'],
keywords='pandas, yahoo finance, pandas datareader',
packages=find_packages(exclude=['contrib', 'docs', 'tests', 'examples']),
install_requires=['pandas>=1.3.0', 'numpy>=1.16.5',
install_requires=['pandas[html]>=1.3.0', 'numpy>=1.16.5',
'requests>=2.31', 'multitasking>=0.0.7',
'lxml>=4.9.1', 'platformdirs>=2.0.0', 'pytz>=2022.5',
'platformdirs>=2.0.0', 'pytz>=2022.5',
'frozendict>=2.3.4', 'peewee>=3.16.2',
'beautifulsoup4>=4.11.1', 'html5lib>=1.1'],
],
extras_require={
'nospam': ['requests_cache>=1.0', 'requests_ratelimiter>=0.3.1'],
'repair': ['scipy>=1.6.3'],
Expand All @@ -75,9 +92,3 @@
],
},
)

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.""")
Loading