Allow installing via submodules

freqtrade can be installed using `pip install -e .[all]` to include all
dependencies
This commit is contained in:
Matthias 2019-07-29 20:53:26 +02:00
parent 8dd8addd3a
commit 7bea0007c7

View File

@ -8,6 +8,24 @@ if version_info.major == 3 and version_info.minor < 6 or \
from freqtrade import __version__ from freqtrade import __version__
# Requirements used for submodules
api = ['flask']
plot = ['plotly>=4.0']
develop = [
'coveralls',
'flake8',
'flake8-type-annotations',
'flake8-tidy-imports',
'mypy',
'pytest',
'pytest-asyncio',
'pytest-cov',
'pytest-mock',
'pytest-random-order',
]
all_extra = api + plot + develop
setup(name='freqtrade', setup(name='freqtrade',
version=__version__, version=__version__,
@ -20,26 +38,37 @@ setup(name='freqtrade',
setup_requires=['pytest-runner', 'numpy'], setup_requires=['pytest-runner', 'numpy'],
tests_require=['pytest', 'pytest-mock', 'pytest-cov'], tests_require=['pytest', 'pytest-mock', 'pytest-cov'],
install_requires=[ install_requires=[
'ccxt', # from requirements-common.txt
'ccxt>=1.18',
'SQLAlchemy', 'SQLAlchemy',
'python-telegram-bot', 'python-telegram-bot',
'arrow', 'arrow',
'cachetools',
'requests', 'requests',
'urllib3', 'urllib3',
'wrapt', 'wrapt',
'pandas',
'scikit-learn', 'scikit-learn',
'scipy',
'joblib', 'joblib',
'jsonschema', 'jsonschema',
'TA-Lib', 'TA-Lib',
'tabulate', 'tabulate',
'cachetools',
'coinmarketcap', 'coinmarketcap',
'scikit-optimize', 'scikit-optimize',
'filelock',
'py_find_1st',
'python-rapidjson', 'python-rapidjson',
'py_find_1st' 'sdnotify',
# from requirements.txt
'numpy',
'pandas',
'scipy',
], ],
extras_require={
'api': api,
'dev': develop,
'plot': plot,
'all': all_extra,
},
include_package_data=True, include_package_data=True,
zip_safe=False, zip_safe=False,
entry_points={ entry_points={