stable/setup.py

118 lines
2.9 KiB
Python
Raw Normal View History

2017-11-05 16:44:58 +00:00
from sys import version_info
2020-09-28 17:43:32 +00:00
2017-09-28 21:26:56 +00:00
from setuptools import setup
2020-09-28 17:43:32 +00:00
2017-11-05 16:44:58 +00:00
if version_info.major == 3 and version_info.minor < 6 or \
version_info.major < 3:
print('Your Python interpreter must be 3.6 or greater!')
exit(1)
2018-12-13 18:28:20 +00:00
from pathlib import Path # noqa: E402
2020-09-28 17:43:32 +00:00
2018-12-13 18:28:20 +00:00
from freqtrade import __version__ # noqa: E402
readme_file = Path(__file__).parent / "README.md"
readme_long = "Crypto Trading Bot"
if readme_file.is_file():
readme_long = (Path(__file__).parent / "README.md").read_text()
2017-09-28 21:26:56 +00:00
# Requirements used for submodules
2020-05-16 05:07:24 +00:00
api = ['flask', 'flask-jwt-extended', 'flask-cors']
plot = ['plotly>=4.0']
hyperopt = [
'scipy',
'scikit-learn',
'scikit-optimize>=0.7.0',
'filelock',
'joblib',
'progressbar2',
]
develop = [
'coveralls',
'flake8',
'flake8-type-annotations',
'flake8-tidy-imports',
'mypy',
'pytest',
'pytest-asyncio',
'pytest-cov',
'pytest-mock',
'pytest-random-order',
]
2019-08-09 02:09:15 +00:00
jupyter = [
'jupyter',
'nbstripout',
'ipykernel',
'nbconvert',
2019-08-09 02:09:15 +00:00
]
all_extra = api + plot + develop + jupyter + hyperopt
2017-09-28 21:26:56 +00:00
setup(name='freqtrade',
version=__version__,
2019-01-03 13:38:38 +00:00
description='Crypto Trading Bot',
2018-12-13 18:28:20 +00:00
long_description=readme_long,
long_description_content_type="text/markdown",
2018-06-05 10:27:24 +00:00
url='https://github.com/freqtrade/freqtrade',
author='Freqtrade Team',
2017-09-28 21:26:56 +00:00
author_email='michael.egger@tsn.at',
license='GPLv3',
packages=['freqtrade'],
setup_requires=['pytest-runner', 'numpy'],
2019-10-05 11:41:54 +00:00
tests_require=['pytest', 'pytest-asyncio', 'pytest-cov', 'pytest-mock', ],
install_requires=[
# from requirements.txt
'ccxt>=1.24.96',
2017-11-08 23:33:22 +00:00
'SQLAlchemy',
'python-telegram-bot',
'arrow',
'cachetools',
2017-11-08 23:33:22 +00:00
'requests',
'urllib3',
'wrapt',
'jsonschema',
'TA-Lib',
'tabulate',
2020-03-07 10:52:02 +00:00
'pycoingecko',
'py_find_1st',
2018-12-28 09:01:16 +00:00
'python-rapidjson',
'sdnotify',
2019-08-13 16:47:38 +00:00
'colorama',
2019-11-01 15:09:30 +00:00
'jinja2',
2020-01-29 20:21:38 +00:00
'questionary',
'prompt-toolkit',
'numpy',
'pandas',
2020-07-12 18:06:59 +00:00
'tables',
2020-07-24 15:44:29 +00:00
'blosc',
],
extras_require={
'api': api,
2019-07-29 18:54:35 +00:00
'dev': all_extra,
'plot': plot,
2019-08-09 02:09:15 +00:00
'jupyter': jupyter,
'hyperopt': hyperopt,
'all': all_extra,
},
2017-09-28 21:53:19 +00:00
include_package_data=True,
2017-09-29 18:15:54 +00:00
zip_safe=False,
2019-05-25 13:08:35 +00:00
entry_points={
'console_scripts': [
'freqtrade = freqtrade.main:main',
],
},
2017-09-29 18:15:54 +00:00
classifiers=[
2019-10-23 04:43:22 +00:00
'Environment :: Console',
'Intended Audience :: Science/Research',
2017-09-29 18:15:54 +00:00
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
2019-10-23 04:43:22 +00:00
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Operating System :: MacOS',
'Operating System :: Unix',
2017-09-29 18:15:54 +00:00
'Topic :: Office/Business :: Financial :: Investment',
])