mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-04-29 09:52:36 +02:00
chore: dump python 3.7 support
This commit is contained in:
parent
7c782443d3
commit
d057cdbf35
8 changed files with 19 additions and 19 deletions
14
.github/workflows/test-docs.yml
vendored
14
.github/workflows/test-docs.yml
vendored
|
@ -36,25 +36,25 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
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]
|
dependencies: [normal]
|
||||||
database: [sqlite]
|
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:
|
include:
|
||||||
- python-version: 3.7
|
- python-version: 3.8
|
||||||
dependencies: normal
|
dependencies: normal
|
||||||
database: postgresql
|
database: postgresql
|
||||||
- python-version: 3.7
|
- python-version: 3.8
|
||||||
dependencies: normal
|
dependencies: normal
|
||||||
database: mariadb
|
database: mariadb
|
||||||
# Try a few variants with the minimal versions supported
|
# Try a few variants with the minimal versions supported
|
||||||
- python-version: 3.7
|
- python-version: 3.8
|
||||||
dependencies: minimal
|
dependencies: minimal
|
||||||
database: sqlite
|
database: sqlite
|
||||||
- python-version: 3.7
|
- python-version: 3.8
|
||||||
dependencies: minimal
|
dependencies: minimal
|
||||||
database: postgresql
|
database: postgresql
|
||||||
- python-version: 3.7
|
- python-version: 3.8
|
||||||
dependencies: minimal
|
dependencies: minimal
|
||||||
database: mariadb
|
database: mariadb
|
||||||
- python-version: 3.9
|
- python-version: 3.9
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
sudo: false
|
sudo: false
|
||||||
language: python
|
language: python
|
||||||
python:
|
python:
|
||||||
- "3.7"
|
|
||||||
- "3.8"
|
- "3.8"
|
||||||
- "3.9"
|
- "3.9"
|
||||||
script: tox
|
script: tox
|
||||||
|
|
|
@ -4,8 +4,11 @@ This document describes changes between each past release.
|
||||||
|
|
||||||
## 6.0.2 (unreleased)
|
## 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)
|
## 6.0.1 (2023-07-22)
|
||||||
|
|
|
@ -22,7 +22,7 @@ highly encouraged to do so.
|
||||||
|
|
||||||
## Requirements
|
## 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),
|
- **Backends**: SQLite, PostgreSQL, MariaDB (version 10.3.2 or above),
|
||||||
Memory.
|
Memory.
|
||||||
|
|
||||||
|
|
|
@ -83,7 +83,7 @@ Some Paas (Platform-as-a-Service), provide a documentation or even a quick insta
|
||||||
|
|
||||||
«Ihatemoney» depends on:
|
«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 (>=
|
- **A database backend**: choose among SQLite, PostgreSQL, MariaDB (>=
|
||||||
10.3.2).
|
10.3.2).
|
||||||
- **Virtual environment** (recommended): [python3-venv]{.title-ref}
|
- **Virtual environment** (recommended): [python3-venv]{.title-ref}
|
||||||
|
|
|
@ -35,14 +35,14 @@ special instructions:
|
||||||
#### Switch to a supported version of Python
|
#### Switch to a supported version of Python
|
||||||
|
|
||||||
::: {note}
|
::: {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.
|
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:
|
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
|
2. Rebuild your virtual environment (if any). It will *not* alter your
|
||||||
database nor configuration. For example, if your virtual environment
|
database nor configuration. For example, if your virtual environment
|
||||||
|
|
|
@ -11,7 +11,6 @@ license = Custom BSD Beerware
|
||||||
classifiers =
|
classifiers =
|
||||||
Programming Language :: Python
|
Programming Language :: Python
|
||||||
Programming Language :: Python :: 3
|
Programming Language :: Python :: 3
|
||||||
Programming Language :: Python :: 3.7
|
|
||||||
Programming Language :: Python :: 3.8
|
Programming Language :: Python :: 3.8
|
||||||
Programming Language :: Python :: 3.9
|
Programming Language :: Python :: 3.9
|
||||||
Programming Language :: Python :: 3.10
|
Programming Language :: Python :: 3.10
|
||||||
|
|
7
tox.ini
7
tox.ini
|
@ -1,5 +1,5 @@
|
||||||
[tox]
|
[tox]
|
||||||
envlist = py311,py310,py39,py38,py37,lint_docs
|
envlist = py311,py310,py39,py38,lint_docs
|
||||||
skip_missing_interpreters = True
|
skip_missing_interpreters = True
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
|
@ -17,10 +17,10 @@ changedir = /tmp
|
||||||
|
|
||||||
[testenv:lint_docs]
|
[testenv:lint_docs]
|
||||||
commands =
|
commands =
|
||||||
black --check --target-version=py37 .
|
black --check --target-version=py38 .
|
||||||
isort --check --profile black .
|
isort --check --profile black .
|
||||||
flake8 ihatemoney
|
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
|
sphinx-build -a -n -b html -d docs/_build/doctrees docs docs/_build/html
|
||||||
deps =
|
deps =
|
||||||
-e.[dev,doc]
|
-e.[dev,doc]
|
||||||
|
@ -35,6 +35,5 @@ extend-ignore =
|
||||||
|
|
||||||
[travis]
|
[travis]
|
||||||
python =
|
python =
|
||||||
3.7: py37
|
|
||||||
3.8: py38, lint_docs
|
3.8: py38, lint_docs
|
||||||
3.9: py39
|
3.9: py39
|
||||||
|
|
Loading…
Reference in a new issue