Skip to content

Commit

Permalink
Remove support for 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
xmatthias committed Dec 14, 2020
1 parent 66d5271 commit 9f5c4ea
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 27 deletions.
4 changes: 2 additions & 2 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ build:
image: latest

python:
version: 3.6
setup_py_install: false
version: 3.8
setup_py_install: false
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ os:
dist: bionic
language: python
python:
- 3.7
- 3.8
services:
- docker
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Please find the complete documentation on our [website](https://www.freqtrade.io

## Features

- [x] **Based on Python 3.6+**: For botting on any operating system - Windows, macOS and Linux.
- [x] **Based on Python 3.7+**: For botting on any operating system - Windows, macOS and Linux.
- [x] **Persistence**: Persistence is achieved through sqlite.
- [x] **Dry-run**: Run the bot without playing money.
- [x] **Backtesting**: Run a simulation of your buy/sell strategy.
Expand Down Expand Up @@ -187,7 +187,7 @@ To run this bot we recommend you a cloud instance with a minimum of:

### Software requirements

- [Python 3.6.x](http://docs.python-guide.org/en/latest/starting/installation/)
- [Python 3.7.x](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://mrjbq7.github.io/ta-lib/install.html)
Expand Down
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

## Introduction

Freqtrade is a crypto-currency algorithmic trading software developed in python (3.6+) and supported on Windows, macOS and Linux.
Freqtrade is a crypto-currency algorithmic trading software developed in python (3.7+) and supported on Windows, macOS and Linux.

!!! Danger "DISCLAIMER"
This software is for educational purposes only. Do not risk money which you are afraid to lose. USE THE SOFTWARE AT YOUR OWN RISK. THE AUTHORS AND ALL AFFILIATES ASSUME NO RESPONSIBILITY FOR YOUR TRADING RESULTS.
Expand Down Expand Up @@ -51,7 +51,7 @@ To run this bot we recommend you a linux cloud instance with a minimum of:

Alternatively

- Python 3.6.x
- Python 3.7+
- pip (pip3)
- git
- TA-Lib
Expand Down
8 changes: 4 additions & 4 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Please consider using the prebuilt [docker images](docker.md) to get started qui

Click each one for install guide:

* [Python >= 3.6.x](http://docs.python-guide.org/en/latest/starting/installation/)
* [Python >= 3.7.x](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)
Expand All @@ -34,7 +34,7 @@ The easiest way to install and run Freqtrade is to clone the bot Github reposito
When cloning the repository the default working branch has the name `develop`. This branch contains all last features (can be considered as relatively stable, thanks to automated tests). 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.6 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.7 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.

This can be achieved with the following commands:

Expand Down Expand Up @@ -63,7 +63,7 @@ usage:
** --install **

With this option, the script will install the bot and most dependencies:
You will need to have git and python3.6+ installed beforehand for this to work.
You will need to have git and python3.7+ installed beforehand for this to work.

* Mandatory software as: `ta-lib`
* Setup your virtualenv under `.env/`
Expand Down Expand Up @@ -94,7 +94,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.6 or higher and the corresponding pip are assumed to be available.
Python3.7 or higher and the corresponding pip are assumed to be available.

=== "Ubuntu/Debian"
#### Install necessary dependencies
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ channels:
- conda-forge
dependencies:
# Required for app
- python>=3.6
- python>=3.7
- pip
- wheel
- numpy
Expand Down
2 changes: 1 addition & 1 deletion freqtrade/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
__main__.py for Freqtrade
To launch Freqtrade as a module
> python -m freqtrade (with Python >= 3.6)
> python -m freqtrade (with Python >= 3.7)
"""

from freqtrade import main
Expand Down
4 changes: 2 additions & 2 deletions freqtrade/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@


# check min. python version
if sys.version_info < (3, 6):
sys.exit("Freqtrade requires Python version >= 3.6")
if sys.version_info < (3, 7):
sys.exit("Freqtrade requires Python version >= 3.7")

from freqtrade.commands import Arguments
from freqtrade.exceptions import FreqtradeException, OperationalException
Expand Down
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
from setuptools import setup


if version_info.major == 3 and version_info.minor < 6 or \
if version_info.major == 3 and version_info.minor < 7 or \
version_info.major < 3:
print('Your Python interpreter must be 3.6 or greater!')
print('Your Python interpreter must be 3.7 or greater!')
exit(1)

from pathlib import Path # noqa: E402
Expand Down Expand Up @@ -109,7 +109,6 @@
'Environment :: Console',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Operating System :: MacOS',
Expand Down
19 changes: 10 additions & 9 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,25 @@ function check_installed_python() {
return
fi

which python3.7
which python3.9
if [ $? -eq 0 ]; then
echo "using Python 3.7"
PYTHON=python3.7
echo "using Python 3.9"
PYTHON=python3.9
check_installed_pip
return
fi

which python3.6
which python3.7
if [ $? -eq 0 ]; then
echo "using Python 3.6"
PYTHON=python3.6
echo "using Python 3.7"
PYTHON=python3.7
check_installed_pip
return
fi
fi


if [ -z ${PYTHON} ]; then
echo "No usable python found. Please make sure to have python3.6 or python3.7 installed"
echo "No usable python found. Please make sure to have python3.7 or greater installed"
exit 1
fi
}
Expand Down Expand Up @@ -302,7 +303,7 @@ function help() {
echo " -p,--plot Install dependencies for Plotting scripts."
}

# Verify if 3.6 or 3.7 is installed
# Verify if 3.7 or 3.8 is installed
check_installed_python

case $* in
Expand Down

0 comments on commit 9f5c4ea

Please sign in to comment.