You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
2.4 KiB
Python
67 lines
2.4 KiB
Python
#!/usr/bin/env python3
|
|
|
|
from setuptools import setup, find_packages
|
|
import os
|
|
|
|
# Read the README file
|
|
def read_readme():
|
|
with open("README.md", "r", encoding="utf-8") as fh:
|
|
return fh.read()
|
|
|
|
# Read requirements
|
|
def read_requirements():
|
|
with open("requirements.txt", "r", encoding="utf-8") as fh:
|
|
return [line.strip() for line in fh if line.strip() and not line.startswith("#")]
|
|
|
|
setup(
|
|
name="yfinance-plus",
|
|
version="1.0.0",
|
|
author="YFinance Plus Team",
|
|
author_email="example@example.com",
|
|
description="Enhanced yfinance wrapper with improved rate limit handling and intelligent caching",
|
|
long_description=read_readme(),
|
|
long_description_content_type="text/markdown",
|
|
url="https://gitea.yirugi.synology.me/yirugi/yfinance_plus.git",
|
|
py_modules=["yfinance_enhanced", "yfinance_enhanced_cli"],
|
|
classifiers=[
|
|
"Development Status :: 4 - Beta",
|
|
"Intended Audience :: Developers",
|
|
"Intended Audience :: Financial and Insurance Industry",
|
|
"License :: OSI Approved :: MIT License",
|
|
"Operating System :: OS Independent",
|
|
"Programming Language :: Python :: 3",
|
|
"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",
|
|
"Topic :: Office/Business :: Financial",
|
|
"Topic :: Office/Business :: Financial :: Investment",
|
|
"Topic :: Scientific/Engineering :: Information Analysis",
|
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
],
|
|
python_requires=">=3.8",
|
|
install_requires=read_requirements(),
|
|
extras_require={
|
|
"dev": [
|
|
"pytest>=6.0",
|
|
"pytest-cov",
|
|
"black",
|
|
"flake8",
|
|
"mypy",
|
|
],
|
|
},
|
|
entry_points={
|
|
"console_scripts": [
|
|
"yfp=yfinance_enhanced_cli:main",
|
|
],
|
|
},
|
|
keywords="finance, yfinance, yahoo finance, stocks, market data, plus, rate limit, caching",
|
|
project_urls={
|
|
"Bug Reports": "https://gitea.yirugi.synology.me/yirugi/yfinance_plus/issues",
|
|
"Source": "https://gitea.yirugi.synology.me/yirugi/yfinance_plus.git",
|
|
"Documentation": "https://gitea.yirugi.synology.me/yirugi/yfinance_plus/src/branch/main/README.md",
|
|
},
|
|
include_package_data=True,
|
|
zip_safe=False,
|
|
) |