Skip to content

Commit

Permalink
[break] Drop support for Python 3.8 (#1204)
Browse files Browse the repository at this point in the history
  • Loading branch information
slarse committed Jan 31, 2024
1 parent 86000c9 commit 7eefe70
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 21 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.8
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.9
- name: Package RepoBee
run: |
python -m pip install --upgrade pip wheel
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,16 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: [3.8, 3.9, '3.10', '3.11']
python-version: [3.9, '3.10', '3.11']
core-commands-as-plugins: [false]
exclude:
- os: macos-latest
python-version: 3.9
- os: macos-latest
python-version: 3.10
- os: macos-latest
python-version: 3.11
include:
- os: ubuntu-latest
python-version: 3.8
python-version: 3.9
core-commands-as-plugins: true
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -77,10 +75,10 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Set up Python 3.8
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.9
- name: Set up Git
run: |
git config --global user.name "Repo Bee"
Expand Down Expand Up @@ -121,10 +119,10 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Set up Python 3.8
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.9
- name: Set up Git
run: |
git config --global user.name "Repo Bee"
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2
build:
os: ubuntu-22.04
tools:
python: "3.8"
python: "3.9"

sphinx:
configuration: docs/conf.py
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.8-alpine
FROM python:3.11-alpine

ARG SOURCE_DIRECTORY=/home/repobee/repobee/

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.8%2C%203.9%2C%203.10%2C%203.11-blue.svg)
![Supported Python Versions](https://img.shields.io/badge/python-3.9%2C%203.10%2C%203.11-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)
Expand Down Expand Up @@ -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.8+ and Git
environment for RepoBee, granted that you have [Python 3.9+ 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`.
Expand Down
2 changes: 1 addition & 1 deletion docs/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ outlined in this section.
Requirements
------------

RepoBee requires Python 3.8+ and a somewhat up-to-date version of Git (2.0+ to
RepoBee requires Python 3.9+ and a somewhat up-to-date version of Git (2.0+ to
be on the safe side). Officially supported operating systems are Ubuntu 18.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
Expand Down
6 changes: 3 additions & 3 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ function install() {
}

function check_prerequisites() {
# check that Python 3.8+, pip and Git are installed
# check that Python 3.9+, 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.8 or higher and then rerun this script."
echo "Please install Python 3.9 or higher and then rerun this script."
echo "See https://www.python.org/downloads/ for a Python installer."
exit 1
else
Expand Down Expand Up @@ -95,7 +95,7 @@ function install_repobee() {

function find_python() {
# Find an appropriate python executable
for exec_suffix in "3.11" "3.10" "3.9" "3.8" "3" ""; do
for exec_suffix in "3.11" "3.10" "3.9" "3" ""; do
python_exec="python$exec_suffix"
minor_version=$(get_minor_python3_version "$python_exec")
if [ "$minor_version" -ge "$MIN_PYTHON_VERSION" ]; then
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,10 @@
package_data={"repobee_plug": ["py.typed"]},
include_package_data=True,
zip_safe=False,
python_requires=">=3.8",
python_requires=">=3.9",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Education",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
Expand Down

0 comments on commit 7eefe70

Please sign in to comment.