From d057cdbf35f6d18ef86cdb1c07bfb21471d32094 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89loi=20Rivard?= Date: Thu, 27 Jul 2023 17:02:34 +0200 Subject: [PATCH] chore: dump python 3.7 support --- .github/workflows/test-docs.yml | 14 +++++++------- .travis.yml | 1 - CHANGELOG.md | 5 ++++- README.md | 2 +- docs/installation.md | 2 +- docs/upgrade.md | 6 +++--- setup.cfg | 1 - tox.ini | 7 +++---- 8 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/test-docs.yml b/.github/workflows/test-docs.yml index 881c0a5b..feba4d3f 100644 --- a/.github/workflows/test-docs.yml +++ b/.github/workflows/test-docs.yml @@ -36,25 +36,25 @@ jobs: strategy: fail-fast: false matrix: - python-version: [3.7, 3.8, 3.9, "3.10", "3.11"] + python-version: [3.8, 3.9, "3.10", "3.11"] dependencies: [normal] database: [sqlite] - # Test other databases only with one version of Python (Debian buster has 3.7) + # Test other databases only with one version of Python include: - - python-version: 3.7 + - python-version: 3.8 dependencies: normal database: postgresql - - python-version: 3.7 + - python-version: 3.8 dependencies: normal database: mariadb # Try a few variants with the minimal versions supported - - python-version: 3.7 + - python-version: 3.8 dependencies: minimal database: sqlite - - python-version: 3.7 + - python-version: 3.8 dependencies: minimal database: postgresql - - python-version: 3.7 + - python-version: 3.8 dependencies: minimal database: mariadb - python-version: 3.9 diff --git a/.travis.yml b/.travis.yml index 9982d798..d9be2549 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,6 @@ sudo: false language: python python: - - "3.7" - "3.8" - "3.9" script: tox diff --git a/CHANGELOG.md b/CHANGELOG.md index bedaf92c..2874583a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,8 +4,11 @@ This document describes changes between each past release. ## 6.0.2 (unreleased) +### Breaking changes +- Drop Python 3.7 support -- Nothing changed yet. +The minimum supported version is now Python 3.8, and the project is +tested with up to Python 3.11 ## 6.0.1 (2023-07-22) diff --git a/README.md b/README.md index ff4cdf67..67d4c114 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ highly encouraged to do so. ## Requirements -- **Python**: version 3.7 to 3.11. +- **Python**: version 3.8 to 3.11. - **Backends**: SQLite, PostgreSQL, MariaDB (version 10.3.2 or above), Memory. diff --git a/docs/installation.md b/docs/installation.md index 8cd88429..3e9ac240 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -83,7 +83,7 @@ Some Paas (Platform-as-a-Service), provide a documentation or even a quick insta «Ihatemoney» depends on: -- **Python**: any version from 3.7 to 3.11 will work. +- **Python**: any version from 3.8 to 3.11 will work. - **A database backend**: choose among SQLite, PostgreSQL, MariaDB (>= 10.3.2). - **Virtual environment** (recommended): [python3-venv]{.title-ref} diff --git a/docs/upgrade.md b/docs/upgrade.md index aa24d6ae..1154eb1e 100644 --- a/docs/upgrade.md +++ b/docs/upgrade.md @@ -35,14 +35,14 @@ special instructions: #### Switch to a supported version of Python ::: {note} -If you are already using Python ≥ 3.7, you can skip this section, no +If you are already using Python ≥ 3.8, you can skip this section, no special action is required. ::: -If you were running IHateMoney using Python < 3.7, you must, **before** +If you were running IHateMoney using Python < 3.8, you must, **before** upgrading: -1. Ensure to have a Python ≥ 3.7 available on your system +1. Ensure to have a Python ≥ 3.8 available on your system 2. Rebuild your virtual environment (if any). It will *not* alter your database nor configuration. For example, if your virtual environment diff --git a/setup.cfg b/setup.cfg index 4be876f2..bf6d66bc 100644 --- a/setup.cfg +++ b/setup.cfg @@ -11,7 +11,6 @@ license = Custom BSD Beerware classifiers = Programming Language :: Python Programming Language :: Python :: 3 - Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 diff --git a/tox.ini b/tox.ini index 0b071d34..39d82f89 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py311,py310,py39,py38,py37,lint_docs +envlist = py311,py310,py39,py38,lint_docs skip_missing_interpreters = True [testenv] @@ -17,10 +17,10 @@ changedir = /tmp [testenv:lint_docs] commands = - black --check --target-version=py37 . + black --check --target-version=py38 . isort --check --profile black . flake8 ihatemoney - vermin --no-tips --violations -t=3.7- . + vermin --no-tips --violations -t=3.8- . sphinx-build -a -n -b html -d docs/_build/doctrees docs docs/_build/html deps = -e.[dev,doc] @@ -35,6 +35,5 @@ extend-ignore = [travis] python = - 3.7: py37 3.8: py38, lint_docs 3.9: py39