diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d187e650b..f1c11c58b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,7 +25,7 @@ jobs: strategy: matrix: os: [ ubuntu-20.04, ubuntu-22.04 ] - python-version: ["3.8", "3.9", "3.10", "3.11"] + python-version: ["3.9", "3.10", "3.11"] steps: - uses: actions/checkout@v3 @@ -127,7 +127,7 @@ jobs: strategy: matrix: os: [ macos-latest ] - python-version: ["3.8", "3.9", "3.10", "3.11"] + python-version: ["3.9", "3.10", "3.11"] steps: - uses: actions/checkout@v3 @@ -237,7 +237,7 @@ jobs: strategy: matrix: os: [ windows-latest ] - python-version: ["3.8", "3.9", "3.10", "3.11"] + python-version: ["3.9", "3.10", "3.11"] steps: - uses: actions/checkout@v3 @@ -448,7 +448,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.9" + python-version: "3.11" - name: Extract branch name shell: bash diff --git a/README.md b/README.md index 57c4e3a52..0cacfe703 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ Please find the complete documentation on the [freqtrade website](https://www.fr ## Features -- [x] **Based on Python 3.8+**: For botting on any operating system - Windows, macOS and Linux. +- [x] **Based on Python 3.9+**: For botting on any operating system - Windows, macOS and Linux. - [x] **Persistence**: Persistence is achieved through sqlite. - [x] **Dry-run**: Run the bot without paying money. - [x] **Backtesting**: Run a simulation of your buy/sell strategy. @@ -207,7 +207,7 @@ To run this bot we recommend you a cloud instance with a minimum of: ### Software requirements -- [Python >= 3.8](http://docs.python-guide.org/en/latest/starting/installation/) +- [Python >= 3.9](http://docs.python-guide.org/en/latest/starting/installation/) - [pip](https://pip.pypa.io/en/stable/installing/) - [git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) - [TA-Lib](https://ta-lib.github.io/ta-lib-python/) diff --git a/build_helpers/TA_Lib-0.4.28-cp38-cp38-win_amd64.whl b/build_helpers/TA_Lib-0.4.28-cp38-cp38-win_amd64.whl deleted file mode 100644 index 34fecd677..000000000 Binary files a/build_helpers/TA_Lib-0.4.28-cp38-cp38-win_amd64.whl and /dev/null differ diff --git a/docs/index.md b/docs/index.md index 77542ae78..190e7e3c3 100644 --- a/docs/index.md +++ b/docs/index.md @@ -83,7 +83,7 @@ To run this bot we recommend you a linux cloud instance with a minimum of: Alternatively -- Python 3.8+ +- Python 3.9+ - pip (pip3) - git - TA-Lib diff --git a/docs/installation.md b/docs/installation.md index eab0171c5..a87a3ff4e 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -24,7 +24,7 @@ The easiest way to install and run Freqtrade is to clone the bot Github reposito The `stable` branch contains the code of the last release (done usually once per month on an approximately one week old snapshot of the `develop` branch to prevent packaging bugs, so potentially it's more stable). !!! Note - Python3.8 or higher and the corresponding `pip` are assumed to be available. The install-script will warn you and stop if that's not the case. `git` is also needed to clone the Freqtrade repository. + Python3.9 or higher and the corresponding `pip` are assumed to be available. The install-script will warn you and stop if that's not the case. `git` is also needed to clone the Freqtrade repository. Also, python headers (`python-dev` / `python-devel`) must be available for the installation to complete successfully. !!! Warning "Up-to-date clock" @@ -42,7 +42,7 @@ These requirements apply to both [Script Installation](#script-installation) and ### Install guide -* [Python >= 3.8.x](http://docs.python-guide.org/en/latest/starting/installation/) +* [Python >= 3.9](http://docs.python-guide.org/en/latest/starting/installation/) * [pip](https://pip.pypa.io/en/stable/installing/) * [git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) * [virtualenv](https://virtualenv.pypa.io/en/stable/installation.html) (Recommended) @@ -54,7 +54,7 @@ We've included/collected install instructions for Ubuntu, MacOS, and Windows. Th OS Specific steps are listed first, the [Common](#common) section below is necessary for all systems. !!! Note - Python3.8 or higher and the corresponding pip are assumed to be available. + Python3.9 or higher and the corresponding pip are assumed to be available. === "Debian/Ubuntu" #### Install necessary dependencies @@ -169,7 +169,7 @@ You can as well update, configure and reset the codebase of your bot with `./scr ** --install ** With this option, the script will install the bot and most dependencies: -You will need to have git and python3.8+ installed beforehand for this to work. +You will need to have git and python3.9+ installed beforehand for this to work. * Mandatory software as: `ta-lib` * Setup your virtualenv under `.venv/` diff --git a/docs/windows_installation.md b/docs/windows_installation.md index db785a1fc..5ac3d5e3d 100644 --- a/docs/windows_installation.md +++ b/docs/windows_installation.md @@ -24,7 +24,7 @@ git clone https://github.com/freqtrade/freqtrade.git Install ta-lib according to the [ta-lib documentation](https://github.com/mrjbq7/ta-lib#windows). -As compiling from source on windows has heavy dependencies (requires a partial visual studio installation), Freqtrade provides these dependencies (in the binary wheel format) for the latest 3 Python versions (3.8, 3.9, 3.10 and 3.11) and for 64bit Windows. +As compiling from source on windows has heavy dependencies (requires a partial visual studio installation), Freqtrade provides these dependencies (in the binary wheel format) for the latest 3 Python versions (3.9, 3.10 and 3.11) and for 64bit Windows. These Wheels are also used by CI running on windows, and are therefore tested together with freqtrade. Other versions must be downloaded from the above link. diff --git a/freqtrade/__main__.py b/freqtrade/__main__.py index fc45bdf61..ed950fa01 100755 --- a/freqtrade/__main__.py +++ b/freqtrade/__main__.py @@ -3,7 +3,7 @@ __main__.py for Freqtrade To launch Freqtrade as a module -> python -m freqtrade (with Python >= 3.8) +> python -m freqtrade (with Python >= 3.9) """ from freqtrade import main diff --git a/requirements-hyperopt.txt b/requirements-hyperopt.txt index e5a0b21cc..4cc7cc4c7 100644 --- a/requirements-hyperopt.txt +++ b/requirements-hyperopt.txt @@ -2,8 +2,7 @@ -r requirements.txt # Required for hyperopt -scipy==1.11.2; python_version >= '3.9' -scipy==1.10.1; python_version < '3.9' +scipy==1.11.2 scikit-learn==1.1.3 scikit-optimize==0.9.0 filelock==3.12.3 diff --git a/requirements.txt b/requirements.txt index 8a2ddd6fe..763399d0c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,5 @@ -numpy==1.25.2; python_version > '3.8' -numpy==1.24.3; python_version <= '3.8' -pandas==2.1.0; python_version > '3.8' -pandas==2.0.3; python_version <= '3.8' +numpy==1.25.2 +pandas==2.1.0 pandas-ta==0.3.14b ccxt==4.0.81 diff --git a/setup.cfg b/setup.cfg index 3b06eaa7d..d4d70bc34 100644 --- a/setup.cfg +++ b/setup.cfg @@ -14,7 +14,6 @@ classifiers = Environment :: Console Intended Audience :: Science/Research License :: OSI Approved :: GNU General Public License v3 (GPLv3) - Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 Programming Language :: Python :: 3.11 @@ -33,7 +32,7 @@ tests_require = pytest-mock packages = find: -python_requires = >=3.8 +python_requires = >=3.9 [options.entry_points] console_scripts = diff --git a/setup.sh b/setup.sh index 8ea5faab5..6bf85edab 100755 --- a/setup.sh +++ b/setup.sh @@ -25,7 +25,7 @@ function check_installed_python() { exit 2 fi - for v in 11 10 9 8 + for v in 11 10 9 do PYTHON="python3.${v}" which $PYTHON @@ -36,7 +36,7 @@ function check_installed_python() { fi done - echo "No usable python found. Please make sure to have python3.8 or newer installed." + echo "No usable python found. Please make sure to have python3.9 or newer installed." exit 1 } @@ -277,7 +277,7 @@ function install() { install_redhat else echo "This script does not support your OS." - echo "If you have Python version 3.8 - 3.11, pip, virtualenv, ta-lib you can continue." + echo "If you have Python version 3.9 - 3.11, pip, virtualenv, ta-lib you can continue." echo "Wait 10 seconds to continue the next install steps or use ctrl+c to interrupt this shell." sleep 10 fi @@ -304,7 +304,7 @@ function help() { echo " -p,--plot Install dependencies for Plotting scripts." } -# Verify if 3.8+ is installed +# Verify if 3.9+ is installed check_installed_python case $* in