Repository: repobee/repobee (language: python)

Issue:
Drop Python 3.6 support
Python 3.6 has reached EOL, so we're dropping it across the entire RepoBee ecosystem.


Discussion / hints:

Fix patch:
diff --git a/.readthedocs.yml b/.readthedocs.yml
index cb37992a..add3dc40 100644
--- a/.readthedocs.yml
+++ b/.readthedocs.yml
@@ -4,7 +4,7 @@ build:
     image: latest
 
 python:
-    version: 3.6
+    version: 3.7
     install:
         - method: pip
           path: .
diff --git a/README.md b/README.md
index 02635332..ac201ed4 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@
 [![Code Coverage](https://codecov.io/gh/repobee/repobee/branch/master/graph/badge.svg)](https://codecov.io/gh/repobee/repobee)
 [![Documentation Status](https://readthedocs.org/projects/repobee/badge/?version=stable)](http://repobee.readthedocs.io/en/stable/)
 [![PyPi Version](https://badge.fury.io/py/repobee.svg)](https://badge.fury.io/py/repobee)
-![Supported Python Versions](https://img.shields.io/badge/python-3.6%2C%203.7%2C%203.8-blue.svg)
+![Supported Python Versions](https://img.shields.io/badge/python-3.7%2C%203.8-blue.svg)
 ![Supported Platforms](https://img.shields.io/badge/platforms-Linux%2C%20macOS-blue.svg)
 [![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
 [![Code Style: Black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)
@@ -81,7 +81,7 @@ on how to use RepoBee with Gitea.
 
 ### Install
 We provide an install script that sets up an isolated and correctly configured
-environment for RepoBee, granted that you have [Python 3.6+ and Git
+environment for RepoBee, granted that you have [Python 3.7+ and Git
 installed](https://docs.repobee.org/en/stable/install.html#requirements). The script
 supports macOS, Linux and Windows Subsystem for Linux (WSL). You can execute it
 directly using `curl`, with either `bash` or `zsh`.
diff --git a/docs/install.rst b/docs/install.rst
index 5d91d278..4300cc98 100644
--- a/docs/install.rst
+++ b/docs/install.rst
@@ -9,7 +9,7 @@ outlined in this section.
 Requirements
 ------------
 
-RepoBee requires Python 3.6+ and a somewhat up-to-date version of Git (2.0+ to
+RepoBee requires Python 3.7+ and a somewhat up-to-date version of Git (2.0+ to
 be on the safe side). Officially supported operating systems are Ubuntu 17.04+
 and macOS, but RepoBee runs fine on most Linux distributions, and also on WSL_
 on Windows 10. Please report any issues with operating systems and/or Git
diff --git a/scripts/install.sh b/scripts/install.sh
index 052f67b2..2af9ca87 100755
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -35,11 +35,11 @@ function install() {
 }
 
 function check_prerequisites() {
-    # check that Python 3.6+, pip and Git are installed
+    # check that Python 3.7+, pip and Git are installed
     installed_python=$(find_python)
     if [ -z "$installed_python" ]; then
         printf "\nCannot find any compatible version of Python installed.\n"
-        echo "Please install Python 3.6 or higher and then rerun this script."
+        echo "Please install Python 3.7 or higher and then rerun this script."
         echo "See https://www.python.org/downloads/ for a Python installer."
         exit 1
     else
@@ -93,7 +93,7 @@ function install_repobee() {
 
 function find_python() {
     # Find an appropriate python executable
-    for exec_suffix in "3.9" "3.8" "3.7" "3.6" "3" ""; do
+    for exec_suffix in "3.9" "3.8" "3.7" "3" ""; do
         python_exec="python$exec_suffix"
         minor_version=$(get_minor_python3_version "$python_exec")
         if [ "$minor_version" -ge "$MIN_PYTHON_VERSION" ]; then
diff --git a/setup.py b/setup.py
index 20f87e79..d50a2067 100644
--- a/setup.py
+++ b/setup.py
@@ -104,11 +104,10 @@
     package_data={"repobee_plug": ["py.typed"]},
     include_package_data=True,
     zip_safe=False,
-    python_requires=">=3.6",
+    python_requires=">=3.7",
     classifiers=[
         "Development Status :: 5 - Production/Stable",
         "Intended Audience :: Education",
-        "Programming Language :: Python :: 3.6",
         "Programming Language :: Python :: 3.7",
         "Programming Language :: Python :: 3.8",
         "Programming Language :: Python :: Implementation :: CPython",


Test patch:
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 3bbaca9b..9e506cf2 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -20,7 +20,7 @@ jobs:
     strategy:
       matrix:
         os: [ubuntu-latest, macos-latest]
-        python-version: [3.6, 3.7, 3.8, 3.9]
+        python-version: [3.7, 3.8, 3.9]
         exclude:
           - os: macos-latest
             python-version: 3.7
@@ -64,10 +64,10 @@ jobs:
     - uses: actions/checkout@v2
       with:
         fetch-depth: 2
-    - name: Set up Python 3.6
+    - name: Set up Python 3.7
       uses: actions/setup-python@v2
       with:
-        python-version: 3.6
+        python-version: 3.7
     - name: Set up Git
       run: |
         git config --global user.name "Repo Bee"
@@ -103,10 +103,10 @@ jobs:
     - uses: actions/checkout@v2
       with:
         fetch-depth: 2
-    - name: Set up Python 3.6
+    - name: Set up Python 3.7
       uses: actions/setup-python@v2
       with:
-        python-version: 3.6
+        python-version: 3.7
     - name: Set up Git
       run: |
         git config --global user.name "Repo Bee"