mirror of
https://github.com/kernc/backtesting.py.git
synced 2024-01-28 15:29:30 +03:00
134 lines
3.8 KiB
Python
134 lines
3.8 KiB
Python
import os
|
|
import sys
|
|
|
|
if sys.version_info < (3, 6):
|
|
sys.exit('ERROR: Backtesting.py requires Python 3.6+')
|
|
|
|
|
|
if __name__ == '__main__':
|
|
from setuptools import setup, find_packages
|
|
|
|
setup(
|
|
name='Backtesting',
|
|
description="Backtest trading strategies in Python",
|
|
license='AGPL-3.0',
|
|
url='https://kernc.github.io/backtesting.py/',
|
|
project_urls={
|
|
'Documentation': 'https://kernc.github.io/backtesting.py/doc/backtesting/',
|
|
'Source': 'https://github.com/kernc/backtesting.py/',
|
|
'Tracker': 'https://github.com/kernc/backtesting.py/issues',
|
|
},
|
|
long_description=open(os.path.join(os.path.dirname(__file__), 'README.md'),
|
|
encoding='utf-8').read(),
|
|
long_description_content_type='text/markdown',
|
|
packages=find_packages(),
|
|
include_package_data=True,
|
|
setup_requires=[
|
|
'setuptools_git',
|
|
'setuptools_scm',
|
|
],
|
|
use_scm_version={
|
|
'write_to': os.path.join('backtesting', '_version.py'),
|
|
},
|
|
install_requires=[
|
|
'numpy >= 1.17.0',
|
|
'pandas >= 0.25.0, != 0.25.0',
|
|
'bokeh >= 1.4.0',
|
|
],
|
|
extras_require={
|
|
'doc': [
|
|
'pdoc3',
|
|
'jupytext >= 1.3',
|
|
'nbconvert',
|
|
'ipykernel', # for nbconvert
|
|
'jupyter_client', # for nbconvert
|
|
],
|
|
'test': [
|
|
'seaborn',
|
|
'matplotlib',
|
|
'scikit-learn <= 1.1.3', # Pinned due to boken scikit-optimize
|
|
'scikit-optimize',
|
|
],
|
|
'dev': [
|
|
'ruff==0.0.160',
|
|
'coverage',
|
|
'mypy',
|
|
],
|
|
},
|
|
test_suite="backtesting.test",
|
|
python_requires='>=3.6',
|
|
author='Zach Lûster',
|
|
classifiers=[
|
|
'Intended Audience :: Financial and Insurance Industry',
|
|
'Intended Audience :: Science/Research',
|
|
'Framework :: Jupyter',
|
|
'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',
|
|
'Operating System :: OS Independent',
|
|
'Programming Language :: Python :: 3 :: Only',
|
|
'Topic :: Office/Business :: Financial :: Investment',
|
|
'Topic :: Scientific/Engineering :: Visualization',
|
|
],
|
|
keywords=[
|
|
'algo',
|
|
'algorithmic',
|
|
'ashi',
|
|
'backtest',
|
|
'backtesting',
|
|
'bitcoin',
|
|
'bokeh',
|
|
'bonds',
|
|
'candle',
|
|
'candlestick',
|
|
'cboe',
|
|
'chart',
|
|
'cme',
|
|
'commodities',
|
|
'crash',
|
|
'crypto',
|
|
'currency',
|
|
'doji',
|
|
'drawdown',
|
|
'equity',
|
|
'etf',
|
|
'ethereum',
|
|
'exchange',
|
|
'finance',
|
|
'financial',
|
|
'forecast',
|
|
'forex',
|
|
'fund',
|
|
'futures',
|
|
'fx',
|
|
'fxpro',
|
|
'gold',
|
|
'heiken',
|
|
'historical',
|
|
'indicator',
|
|
'invest',
|
|
'investing',
|
|
'investment',
|
|
'macd',
|
|
'market',
|
|
'mechanical',
|
|
'money',
|
|
'oanda',
|
|
'ohlc',
|
|
'ohlcv',
|
|
'order',
|
|
'price',
|
|
'profit',
|
|
'quant',
|
|
'quantitative',
|
|
'rsi',
|
|
'silver',
|
|
'simulation',
|
|
'stocks',
|
|
'strategy',
|
|
'ticker',
|
|
'trader',
|
|
'trading',
|
|
'tradingview',
|
|
'usd',
|
|
],
|
|
)
|