Use min. Python 3.11

This commit is contained in:
Jens Diemer 2024-08-04 21:05:16 +02:00
parent 8b80c36c66
commit 5debad0985
5 changed files with 6 additions and 20 deletions

View file

@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.12", "3.11", "3.10"]
python-version: ["3.12", "3.11"]
steps:
- name: Checkout
run: |

View file

@ -33,7 +33,7 @@ else:
sys.exit(-1)
assert sys.version_info >= (3, 10), f'Python version {sys.version_info} is too old!'
assert sys.version_info >= (3, 11), f'Python version {sys.version_info} is too old!'
if sys.platform == 'win32': # wtf

View file

@ -1,10 +1,7 @@
from for_runners_ynh.cli.dev import PACKAGE_ROOT
try:
import tomllib # New in Python 3.11
except ImportError:
import tomli as tomllib
import tomllib
from bx_django_utils.filename import clean_filename
from bx_py_utils.path import assert_is_dir, assert_is_file

View file

@ -7,7 +7,7 @@ readme = "README.md"
authors = [
{name = 'Jens Diemer', email = 'git@jensdiemer.de'}
]
requires-python = ">=3.9" # Stay with 3.9 until YunoHost used >=Debian 11 (Bullseye)
requires-python = ">=3.11"
dependencies = [
"django_for_runners>=0.18.1", # https://github.com/jedie/django-for-runners
#
@ -45,12 +45,6 @@ dev = [
# https://github.com/pycqa/isort
# https://github.com/pygments/pygments
"darker[flynt, isort, color]",
# indirect depencies added because of bug:
# https://github.com/pypa/pip/issues/9644 / https://github.com/jazzband/pip-tools/issues/1866
# to avoid errors like:
# In --require-hashes mode, all requirements must have their versions pinned with ==. These do not: ...
"tomli", # Only needed for Python <3.11
]
[project.urls]
@ -138,7 +132,7 @@ exclude_lines = [
legacy_tox_ini = """
[tox]
isolated_build = True
envlist = py{312,311,310}
envlist = py{312,311}
skip_missing_interpreters = True
[testenv]

View file

@ -1,13 +1,8 @@
import os
import tomllib
from pathlib import Path
from unittest import TestCase
try:
import tomllib # New in Python 3.11
except ImportError:
import tomli as tomllib
from bx_django_utils.filename import clean_filename
from bx_py_utils.path import assert_is_dir, assert_is_file
from django_tools.unittest_utils.project_setup import check_editor_config