Merge pull request #5031 from freqtrade/pytoml
Switch to pyproject.toml for setup
This commit is contained in:
commit
6224a656c3
29
pyproject.toml
Normal file
29
pyproject.toml
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
[tool.black]
|
||||||
|
line-length = 100
|
||||||
|
exclude = '''
|
||||||
|
(
|
||||||
|
/(
|
||||||
|
\.eggs # exclude a few common directories in the
|
||||||
|
| \.git # root of the project
|
||||||
|
| \.hg
|
||||||
|
| \.mypy_cache
|
||||||
|
| \.tox
|
||||||
|
| \.venv
|
||||||
|
| _build
|
||||||
|
| buck-out
|
||||||
|
| build
|
||||||
|
| dist
|
||||||
|
)/
|
||||||
|
# Exclude vendor directory
|
||||||
|
| vendor
|
||||||
|
)
|
||||||
|
'''
|
||||||
|
|
||||||
|
[tool.isort]
|
||||||
|
line_length = 100
|
||||||
|
multi_line_output=0
|
||||||
|
lines_after_imports=2
|
||||||
|
|
||||||
|
[build-system]
|
||||||
|
requires = ["setuptools >= 46.4.0", "wheel"]
|
||||||
|
build-backend = "setuptools.build_meta"
|
45
setup.cfg
45
setup.cfg
@ -1,3 +1,43 @@
|
|||||||
|
[metadata]
|
||||||
|
name = freqtrade
|
||||||
|
version = attr: freqtrade.__version__
|
||||||
|
author = Freqtrade Team
|
||||||
|
author_email = freqtrade@protonmail.com
|
||||||
|
description = Freqtrade - Crypto Trading Bot
|
||||||
|
long_description = file: README.md
|
||||||
|
long_description_content_type = text/markdown
|
||||||
|
url = https://github.com/freqtrade/freqtrade
|
||||||
|
project_urls =
|
||||||
|
Bug Tracker = https://github.com/freqtrade/freqtrade/issues
|
||||||
|
license = GPLv3
|
||||||
|
classifiers =
|
||||||
|
Environment :: Console
|
||||||
|
Intended Audience :: Science/Research
|
||||||
|
License :: OSI Approved :: GNU General Public License v3 (GPLv3)
|
||||||
|
Programming Language :: Python :: 3.7
|
||||||
|
Programming Language :: Python :: 3.8
|
||||||
|
Programming Language :: Python :: 3.9
|
||||||
|
Operating System :: MacOS
|
||||||
|
Operating System :: Unix
|
||||||
|
Topic :: Office/Business :: Financial :: Investment
|
||||||
|
|
||||||
|
|
||||||
|
[options]
|
||||||
|
zip_safe = False
|
||||||
|
include_package_data = True
|
||||||
|
tests_require =
|
||||||
|
pytest
|
||||||
|
pytest-asyncio
|
||||||
|
pytest-cov
|
||||||
|
pytest-mock
|
||||||
|
|
||||||
|
packages = find:
|
||||||
|
python_requires = >=3.6
|
||||||
|
|
||||||
|
[options.entry_points]
|
||||||
|
console_scripts =
|
||||||
|
freqtrade = freqtrade.main:main
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
#ignore =
|
#ignore =
|
||||||
max-line-length = 100
|
max-line-length = 100
|
||||||
@ -8,11 +48,6 @@ exclude =
|
|||||||
.eggs,
|
.eggs,
|
||||||
user_data,
|
user_data,
|
||||||
|
|
||||||
[isort]
|
|
||||||
line_length=100
|
|
||||||
multi_line_output=0
|
|
||||||
lines_after_imports=2
|
|
||||||
|
|
||||||
[mypy]
|
[mypy]
|
||||||
ignore_missing_imports = True
|
ignore_missing_imports = True
|
||||||
|
|
||||||
|
130
setup.py
130
setup.py
@ -1,25 +1,7 @@
|
|||||||
from sys import version_info
|
|
||||||
|
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
|
|
||||||
if version_info.major == 3 and version_info.minor < 7 or \
|
|
||||||
version_info.major < 3:
|
|
||||||
print('Your Python interpreter must be 3.7 or greater!')
|
|
||||||
exit(1)
|
|
||||||
|
|
||||||
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()
|
|
||||||
|
|
||||||
# Requirements used for submodules
|
# Requirements used for submodules
|
||||||
api = ['fastapi', 'uvicorn', 'pyjwt', 'aiofiles']
|
|
||||||
plot = ['plotly>=4.0']
|
plot = ['plotly>=4.0']
|
||||||
hyperopt = [
|
hyperopt = [
|
||||||
'scipy',
|
'scipy',
|
||||||
@ -51,69 +33,51 @@ jupyter = [
|
|||||||
'nbconvert',
|
'nbconvert',
|
||||||
]
|
]
|
||||||
|
|
||||||
all_extra = api + plot + develop + jupyter + hyperopt
|
all_extra = plot + develop + jupyter + hyperopt
|
||||||
|
|
||||||
setup(name='freqtrade',
|
setup(
|
||||||
version=__version__,
|
tests_require=[
|
||||||
description='Crypto Trading Bot',
|
'pytest',
|
||||||
long_description=readme_long,
|
'pytest-asyncio',
|
||||||
long_description_content_type="text/markdown",
|
'pytest-cov',
|
||||||
url='https://github.com/freqtrade/freqtrade',
|
'pytest-mock',
|
||||||
author='Freqtrade Team',
|
],
|
||||||
author_email='michael.egger@tsn.at',
|
install_requires=[
|
||||||
license='GPLv3',
|
# from requirements.txt
|
||||||
packages=['freqtrade'],
|
'ccxt>=1.50.48',
|
||||||
setup_requires=['pytest-runner', 'numpy'],
|
'SQLAlchemy',
|
||||||
tests_require=['pytest', 'pytest-asyncio', 'pytest-cov', 'pytest-mock', ],
|
'python-telegram-bot>=13.4',
|
||||||
install_requires=[
|
'arrow>=0.17.0',
|
||||||
# from requirements.txt
|
'cachetools',
|
||||||
'ccxt>=1.24.96',
|
'requests',
|
||||||
'SQLAlchemy',
|
'urllib3',
|
||||||
'python-telegram-bot>=13.4',
|
'wrapt',
|
||||||
'arrow>=0.17.0',
|
'jsonschema',
|
||||||
'cachetools',
|
'TA-Lib',
|
||||||
'requests',
|
'technical',
|
||||||
'urllib3',
|
'tabulate',
|
||||||
'wrapt',
|
'pycoingecko',
|
||||||
'jsonschema',
|
'py_find_1st',
|
||||||
'TA-Lib',
|
'python-rapidjson',
|
||||||
'technical',
|
'sdnotify',
|
||||||
'tabulate',
|
'colorama',
|
||||||
'pycoingecko',
|
'jinja2',
|
||||||
'py_find_1st',
|
'questionary',
|
||||||
'python-rapidjson',
|
'prompt-toolkit',
|
||||||
'sdnotify',
|
'numpy',
|
||||||
'colorama',
|
'pandas',
|
||||||
'jinja2',
|
'tables',
|
||||||
'questionary',
|
'blosc',
|
||||||
'prompt-toolkit',
|
'fastapi',
|
||||||
'numpy',
|
'uvicorn',
|
||||||
'pandas',
|
'pyjwt',
|
||||||
'tables',
|
'aiofiles'
|
||||||
'blosc',
|
],
|
||||||
],
|
extras_require={
|
||||||
extras_require={
|
'dev': all_extra,
|
||||||
'api': api,
|
'plot': plot,
|
||||||
'dev': all_extra,
|
'jupyter': jupyter,
|
||||||
'plot': plot,
|
'hyperopt': hyperopt,
|
||||||
'jupyter': jupyter,
|
'all': all_extra,
|
||||||
'hyperopt': hyperopt,
|
},
|
||||||
'all': all_extra,
|
)
|
||||||
},
|
|
||||||
include_package_data=True,
|
|
||||||
zip_safe=False,
|
|
||||||
entry_points={
|
|
||||||
'console_scripts': [
|
|
||||||
'freqtrade = freqtrade.main:main',
|
|
||||||
],
|
|
||||||
},
|
|
||||||
classifiers=[
|
|
||||||
'Environment :: Console',
|
|
||||||
'Intended Audience :: Science/Research',
|
|
||||||
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
|
|
||||||
'Programming Language :: Python :: 3.7',
|
|
||||||
'Programming Language :: Python :: 3.8',
|
|
||||||
'Operating System :: MacOS',
|
|
||||||
'Operating System :: Unix',
|
|
||||||
'Topic :: Office/Business :: Financial :: Investment',
|
|
||||||
])
|
|
||||||
|
Loading…
Reference in New Issue
Block a user