From 53451abef48c9ed72bf4a839fceb63b1284557b2 Mon Sep 17 00:00:00 2001 From: meejah Date: Thu, 5 Dec 2024 00:16:56 -0700 Subject: [PATCH] remove Python 3.8 mentions --- README.rst | 2 +- src/allmydata/web/common.py | 4 ++-- tox.ini | 6 ++---- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/README.rst b/README.rst index bbf88610d..189dc12ad 100644 --- a/README.rst +++ b/README.rst @@ -56,7 +56,7 @@ Once ``tahoe --version`` works, see `How to Run Tahoe-LAFS `__ 🐍 Python 2 ----------- -Python 3.8 or later is required. +Python 3.9 or later is required. If you are still using Python 2.7, use Tahoe-LAFS version 1.17.1. diff --git a/src/allmydata/web/common.py b/src/allmydata/web/common.py index f9d599c3c..832307ccd 100644 --- a/src/allmydata/web/common.py +++ b/src/allmydata/web/common.py @@ -4,8 +4,8 @@ Ported to Python 3. from __future__ import annotations from six import ensure_str -import sys -from importlib.resources import files as resource_files, as_file +from importlib.resources import files as resource_files +from importlib.resources import as_file from contextlib import ExitStack import weakref from typing import Optional, Union, TypeVar, overload diff --git a/tox.ini b/tox.ini index 5748928fe..d369d7de7 100644 --- a/tox.ini +++ b/tox.ini @@ -7,19 +7,17 @@ # the tox-gh-actions package. [gh-actions] python = - 3.8: py38-coverage 3.9: py39-coverage 3.10: py310-coverage 3.11: py311-coverage 3.12: py312-coverage - pypy-3.8: pypy38 pypy-3.9: pypy39 [pytest] twisted = 1 [tox] -envlist = typechecks,codechecks,py{38,39,310,311,312}-{coverage},pypy27,pypy38,pypy39,integration +envlist = typechecks,codechecks,py{39,310,311,312}-{coverage},pypy39,integration minversion = 4 [testenv] @@ -138,7 +136,7 @@ commands = # Different versions of Python have a different standard library, and we # want to be compatible with all the variations. For speed's sake we only do # the earliest and latest versions. - mypy --python-version=3.8 src + mypy --python-version=3.9 src mypy --python-version=3.12 src