From d48f00aa9dae839682ce080b75fcd8d043e2ed23 Mon Sep 17 00:00:00 2001 From: Kevin Johnson Date: Fri, 25 Sep 2020 09:38:02 -0700 Subject: [PATCH] BUG #135 version moved to setup for containers --- pandas_ta/__init__.py | 5 ++++- setup.py | 44 +++++++++++++++++++++---------------------- 2 files changed, 26 insertions(+), 23 deletions(-) diff --git a/pandas_ta/__init__.py b/pandas_ta/__init__.py index 5ef3d95..03f06b7 100644 --- a/pandas_ta/__init__.py +++ b/pandas_ta/__init__.py @@ -22,8 +22,11 @@ from importlib.util import find_spec Imports = { "scipy": find_spec("scipy") is not None, "sklearn": find_spec("sklearn") is not None, + "statsmodels": find_spec("statsmodels") is not None, + "mplfinance": find_spec("mplfinance") is not None, "alphaVantage-api ": find_spec("alphaVantageAPI") is not None, - "yfinance": find_spec("yfinance") is not None + "yfinance": find_spec("yfinance") is not None, + "talib": find_spec("talib") is not None } # Not ideal and not dynamic but it works. diff --git a/setup.py b/setup.py index 37d267b..60a31cb 100644 --- a/setup.py +++ b/setup.py @@ -5,8 +5,8 @@ long_description = "An easy to use Python 3 Pandas Extension with 115+ Technical setup( name ="pandas_ta", - packages =['pandas_ta', 'pandas_ta.candles', 'pandas_ta.momentum', 'pandas_ta.overlap', 'pandas_ta.performance', 'pandas_ta.statistics', 'pandas_ta.trend', 'pandas_ta.volatility', 'pandas_ta.volume'], - version =".".join(("0", "2", "02b")), + packages =["pandas_ta", "pandas_ta.candles", "pandas_ta.momentum", "pandas_ta.overlap", "pandas_ta.performance", "pandas_ta.statistics", "pandas_ta.trend", "pandas_ta.volatility", "pandas_ta.volume"], + version =".".join(("0", "2", "13b")), description =long_description, long_description =long_description, author ="Kevin Johnson", @@ -14,36 +14,36 @@ setup( url ="https://github.com/twopirllc/pandas-ta", maintainer ="Kevin Johnson", maintainer_email ="appliedmathkj@gmail.com", - # install_requires=['pandas'], + # install_requires=["pandas"], download_url ="https://github.com/twopirllc/pandas-ta.git", - keywords =['technical analysis', 'trading', 'python3', 'pandas'], + keywords =["technical analysis", "trading", "python3", "pandas"], license ="The MIT License (MIT)", classifiers =[ - 'Development Status :: 4 - Beta', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Operating System :: OS Independent', - 'License :: OSI Approved :: MIT License', - 'Natural Language :: English', - 'Intended Audience :: Developers', - 'Intended Audience :: Financial and Insurance Industry', - 'Intended Audience :: Science/Research', - 'Topic :: Office/Business :: Financial', - 'Topic :: Office/Business :: Financial :: Investment', - 'Topic :: Scientific/Engineering', - 'Topic :: Scientific/Engineering :: Information Analysis', + "Development Status :: 4 - Beta", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Operating System :: OS Independent", + "License :: OSI Approved :: MIT License", + "Natural Language :: English", + "Intended Audience :: Developers", + "Intended Audience :: Financial and Insurance Industry", + "Intended Audience :: Science/Research", + "Topic :: Office/Business :: Financial", + "Topic :: Office/Business :: Financial :: Investment", + "Topic :: Scientific/Engineering", + "Topic :: Scientific/Engineering :: Information Analysis", ], package_data={ - 'data': ['data/*.csv'], + "data": ["data/*.csv"], }, - install_requires =['pandas'], + install_requires =["pandas"], # List additional groups of dependencies here (e.g. development dependencies). # You can install these using the following syntax, for example: # $ pip install -e .[dev,test] extras_require = { - 'dev': ['ta-lib', 'jupyterlab'], - 'test': ['ta-lib'], + "dev": ["ta-lib", "jupyterlab", "sklearn", "statsmodels"], + "test": ["ta-lib"], }, )