From 6dc04da17b823c1cb16e877c429816ea62c10075 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Fri, 11 Oct 2024 19:27:55 -0400 Subject: [PATCH] py39+ Committed via https://github.com/asottile/all-repos --- .github/workflows/ci.yaml | 2 +- .pre-commit-config.yaml | 4 ++-- dumb_pypi/main.py | 6 +++--- requirements-dev.txt | 1 + setup.cfg | 2 +- tox.ini | 2 +- 6 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index bebcd030c71..dee720c8128 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -9,7 +9,7 @@ jobs: strategy: fail-fast: false matrix: - python: ['3.8', '3.9', '3.10', '3.11'] + python: ['3.9', '3.10', '3.11'] steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 542a7d1825b..2651400f8ed 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,12 +23,12 @@ repos: rev: v3.13.0 hooks: - id: reorder-python-imports - args: [--py38-plus, --add-import, 'from __future__ import annotations'] + args: [--py39-plus, --add-import, 'from __future__ import annotations'] - repo: https://github.com/asottile/pyupgrade rev: v3.17.0 hooks: - id: pyupgrade - args: [--py38-plus] + args: [--py39-plus] - repo: https://github.com/asottile/setup-cfg-fmt rev: v2.5.0 hooks: diff --git a/dumb_pypi/main.py b/dumb_pypi/main.py index b34255567a6..830d12debda 100644 --- a/dumb_pypi/main.py +++ b/dumb_pypi/main.py @@ -20,13 +20,13 @@ import re import sys import tempfile +from collections.abc import Generator +from collections.abc import Iterator +from collections.abc import Sequence from datetime import datetime from typing import Any -from typing import Generator from typing import IO -from typing import Iterator from typing import NamedTuple -from typing import Sequence import jinja2 import packaging.utils diff --git a/requirements-dev.txt b/requirements-dev.txt index 27d436424df..08327650340 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -4,4 +4,5 @@ ephemeral-port-reserve pre-commit>=1.0 pytest requests +setuptools twine diff --git a/setup.cfg b/setup.cfg index f38f0ac09e0..7b79fb2de32 100644 --- a/setup.cfg +++ b/setup.cfg @@ -19,7 +19,7 @@ packages = dumb_pypi install_requires = jinja2 packaging>=20.9 -python_requires = >=3.8 +python_requires = >=3.9 [options.entry_points] console_scripts = diff --git a/tox.ini b/tox.ini index 537de185370..64300b32e67 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py38,py39,py310,py311 +envlist = py3 [testenv] deps = -rrequirements-dev.txt