2017-11-05 16:44:58 +00:00
|
|
|
from sys import version_info
|
2017-09-28 21:26:56 +00:00
|
|
|
from setuptools import setup
|
|
|
|
|
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
|
|
|
|
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
|
|
|
|
2019-07-29 18:53:26 +00:00
|
|
|
# Requirements used for submodules
|
|
|
|
api = ['flask']
|
|
|
|
plot = ['plotly>=4.0']
|
2019-09-24 13:03:40 +00:00
|
|
|
hyperopt = [
|
|
|
|
'scipy',
|
|
|
|
'scikit-learn',
|
|
|
|
'scikit-optimize',
|
|
|
|
'filelock',
|
|
|
|
'joblib',
|
|
|
|
]
|
2019-07-29 18:53:26 +00:00
|
|
|
|
|
|
|
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',
|
2019-09-21 08:27:43 +00:00
|
|
|
'nbconvert',
|
2019-08-09 02:09:15 +00:00
|
|
|
]
|
|
|
|
|
2019-09-24 13:03:40 +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',
|
2019-09-18 09:36:16 +00:00
|
|
|
author='Freqtrade Team',
|
2017-09-28 21:26:56 +00:00
|
|
|
author_email='michael.egger@tsn.at',
|
|
|
|
license='GPLv3',
|
|
|
|
packages=['freqtrade'],
|
2018-07-29 12:01:50 +00:00
|
|
|
setup_requires=['pytest-runner', 'numpy'],
|
2017-10-02 16:17:54 +00:00
|
|
|
tests_require=['pytest', 'pytest-mock', 'pytest-cov'],
|
2017-09-29 18:07:50 +00:00
|
|
|
install_requires=[
|
2019-07-29 18:53:26 +00:00
|
|
|
# from requirements-common.txt
|
2019-08-25 08:43:37 +00:00
|
|
|
'ccxt>=1.18.1080',
|
2017-11-08 23:33:22 +00:00
|
|
|
'SQLAlchemy',
|
|
|
|
'python-telegram-bot',
|
|
|
|
'arrow',
|
2019-11-09 18:45:09 +00:00
|
|
|
'cachetools',
|
2017-11-08 23:33:22 +00:00
|
|
|
'requests',
|
|
|
|
'urllib3',
|
|
|
|
'wrapt',
|
|
|
|
'jsonschema',
|
|
|
|
'TA-Lib',
|
|
|
|
'tabulate',
|
2018-03-17 23:42:24 +00:00
|
|
|
'coinmarketcap',
|
2019-07-29 18:53:26 +00:00
|
|
|
'py_find_1st',
|
2018-12-28 09:01:16 +00:00
|
|
|
'python-rapidjson',
|
2019-07-29 18:53:26 +00:00
|
|
|
'sdnotify',
|
2019-08-13 16:47:38 +00:00
|
|
|
'colorama',
|
2019-07-29 18:53:26 +00:00
|
|
|
# from requirements.txt
|
|
|
|
'numpy',
|
|
|
|
'pandas',
|
2017-09-29 18:07:50 +00:00
|
|
|
],
|
2019-07-29 18:53:26 +00:00
|
|
|
extras_require={
|
|
|
|
'api': api,
|
2019-07-29 18:54:35 +00:00
|
|
|
'dev': all_extra,
|
2019-07-29 18:53:26 +00:00
|
|
|
'plot': plot,
|
2019-08-09 02:09:15 +00:00
|
|
|
'jupyter': jupyter,
|
2019-09-24 13:03:40 +00:00
|
|
|
'hyperopt': hyperopt,
|
|
|
|
'all': all_extra,
|
2019-07-29 18:53:26 +00:00
|
|
|
},
|
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=[
|
|
|
|
'Programming Language :: Python :: 3.6',
|
|
|
|
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
|
|
|
|
'Topic :: Office/Business :: Financial :: Investment',
|
|
|
|
'Intended Audience :: Science/Research',
|
|
|
|
])
|