From 52f3ae80e60cd91f25b382cb4018f953f364128a Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Fri, 11 Oct 2024 19:23:59 -0400 Subject: [PATCH] py39+ Committed via https://github.com/asottile/all-repos --- .github/workflows/main.yml | 8 ++++---- .pre-commit-config.yaml | 4 ++-- setup.cfg | 2 +- setuptools_golang.py | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4b16e57..fabc8af 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,12 +8,12 @@ on: jobs: main-windows: - uses: asottile/workflows/.github/workflows/tox.yml@v1.6.0 + uses: asottile/workflows/.github/workflows/tox.yml@v1.7.0 with: - env: '["py38"]' + env: '["py39"]' os: windows-latest main-linux: - uses: asottile/workflows/.github/workflows/tox.yml@v1.6.0 + uses: asottile/workflows/.github/workflows/tox.yml@v1.7.0 with: - env: '["pypy3", "py38", "py39", "py310", "py311", "py312"]' + env: '["pypy3", "py39", "py310", "py311", "py312", "py313"]' os: ubuntu-latest diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cc311d6..daab115 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,7 +17,7 @@ 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/add-trailing-comma rev: v3.1.0 hooks: @@ -26,7 +26,7 @@ repos: rev: v3.17.0 hooks: - id: pyupgrade - args: [--py38-plus] + args: [--py39-plus] - repo: https://github.com/hhatto/autopep8 rev: v2.3.1 hooks: diff --git a/setup.cfg b/setup.cfg index 47dc4fa..adde60a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -20,7 +20,7 @@ classifiers = py_modules = setuptools_golang install_requires = setuptools -python_requires = >=3.8 +python_requires = >=3.9 [options.entry_points] console_scripts = diff --git a/setuptools_golang.py b/setuptools_golang.py index ced8fca..e26543d 100644 --- a/setuptools_golang.py +++ b/setuptools_golang.py @@ -11,11 +11,11 @@ import subprocess import sys import tempfile +from collections.abc import Generator +from collections.abc import Sequence from types import TracebackType from typing import Any from typing import Callable -from typing import Generator -from typing import Sequence from distutils.ccompiler import CCompiler from distutils.dist import Distribution