From 3c915e7f05f0b331d2e842aca5de0e36be3c1bb3 Mon Sep 17 00:00:00 2001 From: kuds Date: Wed, 29 Jan 2025 06:58:28 -0600 Subject: [PATCH] Add support up to Python 3.11 for FinRL (#1315) * Update pyproject.toml Add Python Version 3.11 to pyproject.toml * Update setup.py Add python version 3.11 to the supported list * Update pyproject.toml Update project dependencies to use up to python 3.11 * Update requirements.txt Add new libraries to requirements.txt * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update pyproject.toml * Update pyproject.toml * Update pyproject.toml * Update pyproject.toml Removing alpaca-trading-api due it being removed/no longer used * Update pyproject.toml --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- pyproject.toml | 7 ++++++- requirements.txt | 6 ++++-- setup.py | 1 + 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index ac963aa8e..09f37395c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,6 +17,7 @@ classifiers=[ "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", ] @@ -25,7 +26,7 @@ keywords=["Reinforcement Learning", "Finance"] github = "https://github.com/finrl/finrl-library" [tool.poetry.dependencies] -python = "~3.10" +python = "~3.11" elegantrl = {git="https://github.com/AI4Finance-Foundation/ElegantRL.git#egg=elegantrl"} alpaca-trade-api = "^3" ccxt = "^3" @@ -39,6 +40,10 @@ stable-baselines3 = {version = ">=2.0.0a5", extras = ["extra"]} stockstats = "^0.5" wrds = "^3" yfinance = "^0.2" +alpaca-py = "^0.37" +webdriver-manager = "^4" +selenium = "^4" + [tool.poetry.group.dev.dependencies] black = "^24" diff --git a/requirements.txt b/requirements.txt index 11bbba0ec..40b7027a0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ +alpaca-py alpaca_trade_api>=2.1.0 ccxt>=1.66.32 # make sure that >=1.66.32 elegantrl @@ -27,6 +28,8 @@ recommonmark # Model Building Requirements scikit-learn>=0.21.0 +selenium + # packaging #setuptools>=41.4.0 setuptools>=65.5.0 @@ -34,14 +37,13 @@ setuptools>=65.5.0 # to build docs using sphinx sphinx sphinx_rtd_theme - - SQLAlchemy stable-baselines3[extra] stockstats>=0.4.0 swig tensorboardX +webdriver-manager wheel>=0.33.6 wrds diff --git a/setup.py b/setup.py index 47d25ec09..496310263 100644 --- a/setup.py +++ b/setup.py @@ -40,6 +40,7 @@ "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", ],