diff --git a/.github/workflows/test-docs.yml b/.github/workflows/test-docs.yml index 73262b5c..105992f3 100644 --- a/.github/workflows/test-docs.yml +++ b/.github/workflows/test-docs.yml @@ -36,7 +36,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [3.6, 3.7, 3.8, 3.9, "3.10"] + python-version: [3.7, 3.8, 3.9, "3.10"] dependencies: [normal] database: [sqlite] # Test other databases only with one version of Python (Debian buster has 3.7) @@ -48,7 +48,7 @@ jobs: dependencies: normal database: mariadb # Try a few variants with the minimal versions supported - - python-version: 3.6 + - python-version: 3.7 dependencies: minimal database: sqlite - python-version: 3.7 diff --git a/.travis.yml b/.travis.yml index cc4db2b7..9982d798 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,6 @@ sudo: false language: python python: - - "3.6" - "3.7" - "3.8" - "3.9" diff --git a/CHANGELOG.md b/CHANGELOG.md index 20b84f40..6a376356 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,14 @@ This document describes changes between each past release. -## 5.2.1 (unreleased) +## 6.0.0 (unreleased) + +### Breaking +- Drop Python 3.6 support +- Add Python 3.11 support + +The minimum supported version is now Python 3.7, and the project is +tested with up to Python 3.10 ### Changed - Add a cancel button when editing a bill for better UX diff --git a/Makefile b/Makefile index 0a4c561a..dbf7f3b5 100644 --- a/Makefile +++ b/Makefile @@ -46,7 +46,7 @@ test: install-dev ## Run the tests .PHONY: black black: install-dev ## Run the tests - $(VENV)/bin/black --target-version=py36 . + $(VENV)/bin/black --target-version=py37 . .PHONY: isort isort: install-dev ## Run the tests diff --git a/README.md b/README.md index 563b6756..64ff4e76 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ highly encouraged to do so. ## Requirements -- **Python**: version 3.6 to 3.9. +- **Python**: version 3.7 to 3.9. - **Backends**: SQLite, PostgreSQL, MariaDB (version 10.3.2 or above), Memory. diff --git a/docs/installation.md b/docs/installation.md index 3ef513e5..8c5a20e2 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.6 to 3.10 will work. +- **Python**: any version from 3.7 to 3.10 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 a9f30627..aa24d6ae 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.6, you can skip this section, no +If you are already using Python ≥ 3.7, you can skip this section, no special action is required. ::: -If you were running IHateMoney using Python < 3.6, you must, **before** +If you were running IHateMoney using Python < 3.7, you must, **before** upgrading: -1. Ensure to have a Python ≥ 3.6 available on your system +1. Ensure to have a Python ≥ 3.7 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 03d41b98..81daf005 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.6 Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 @@ -52,7 +51,7 @@ database = PyMySQL>=0.9,<1.1 dev = - black>=19.10b0 ; python_version >= '3.6' + black>=19.10b0 ; python_version >= '3.7' flake8>=3.7.9 Flask-Testing>=0.8.1 isort>=5.0.0 diff --git a/tox.ini b/tox.ini index 5fbb9b30..bd645706 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py39,py38,py37,py36,lint_docs +envlist = py39,py38,py37,lint_docs skip_missing_interpreters = True [testenv] @@ -17,7 +17,7 @@ changedir = /tmp [testenv:lint_docs] commands = - black --check --target-version=py36 . + black --check --target-version=py37 . isort -c . flake8 ihatemoney sphinx-build -a -n -b html -d docs/_build/doctrees docs docs/_build/html @@ -34,7 +34,6 @@ extend-ignore = [travis] python = - 3.6: py36 3.7: py37 3.8: py38, lint_docs 3.9: py39