From 77efaa979f63d81ebcc7e5e242209a3065693556 Mon Sep 17 00:00:00 2001 From: Douglas Cerna Date: Fri, 3 Jan 2025 12:05:06 -0600 Subject: [PATCH] Drop Python 3.8 support * Upgrade pre-commit dependencies * Drop Python 3.8 support * Allow manual triggering of test workflow --- .github/workflows/test.yml | 2 +- .pre-commit-config.yaml | 4 ++-- pyproject.toml | 6 ++---- requirements-dev.txt | 32 ++++++++++++++++---------------- requirements.txt | 2 +- 5 files changed, 22 insertions(+), 24 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9b8cd9c..3dd472c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,6 +1,7 @@ --- name: "Test" on: + workflow_dispatch: pull_request: push: branches: @@ -13,7 +14,6 @@ jobs: fail-fast: false matrix: python-version: [ - "3.8", "3.9", "3.10", "3.11", diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9f8d1c1..18d070a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,11 +1,11 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.4.9 + rev: v0.8.5 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] - id: ruff-format - repo: https://github.com/igorshubovych/markdownlint-cli - rev: v0.41.0 + rev: v0.43.0 hooks: - id: markdownlint diff --git a/pyproject.toml b/pyproject.toml index d4a4771..fac5d04 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,7 +17,7 @@ dynamic = [ "readme", ] description = "Python command line wrapper around MediaConch policy checks." -requires-python = ">=3.8" +requires-python = ">=3.9" license = {file = "LICENSE"} dependencies = [ "lxml", @@ -33,7 +33,6 @@ classifiers = [ "License :: OSI Approved :: GNU Affero General Public License v3", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 3 :: Only", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", @@ -106,11 +105,10 @@ omit = [ [tool.tox] legacy_tox_ini = """ [tox] - envlist = py{38,39,310,311,312}, linting + envlist = py{39,310,311,312}, linting [gh-actions] python = - 3.8: py38 3.9: py39 3.10: py310 3.11: py311 diff --git a/requirements-dev.txt b/requirements-dev.txt index adbe05c..997a474 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -4,23 +4,23 @@ # # pip-compile --allow-unsafe --extra=dev --output-file=requirements-dev.txt pyproject.toml # -build==1.2.1 +build==1.2.2.post1 # via pip-tools -click==8.1.7 +click==8.1.8 # via pip-tools -coverage[toml]==7.5.3 +coverage[toml]==7.6.10 # via # ammcpc (pyproject.toml) # pytest-cov -exceptiongroup==1.2.1 +exceptiongroup==1.2.2 # via pytest -importlib-metadata==7.1.0 +importlib-metadata==8.5.0 # via build iniconfig==2.0.0 # via pytest -lxml==5.2.2 +lxml==5.3.0 # via ammcpc (pyproject.toml) -packaging==24.1 +packaging==24.2 # via # build # pytest @@ -28,31 +28,31 @@ pip-tools==7.4.1 # via ammcpc (pyproject.toml) pluggy==1.5.0 # via pytest -pyproject-hooks==1.1.0 +pyproject-hooks==1.2.0 # via # build # pip-tools -pytest==8.2.2 +pytest==8.3.4 # via # ammcpc (pyproject.toml) # pytest-cov -pytest-cov==5.0.0 +pytest-cov==6.0.0 # via ammcpc (pyproject.toml) -ruff==0.4.9 +ruff==0.8.5 # via ammcpc (pyproject.toml) -tomli==2.0.1 +tomli==2.2.1 # via # build # coverage # pip-tools # pytest -wheel==0.43.0 +wheel==0.45.1 # via pip-tools -zipp==3.19.2 +zipp==3.21.0 # via importlib-metadata # The following packages are considered to be unsafe in a requirements file: -pip==24.0 +pip==24.3.1 # via pip-tools -setuptools==70.1.0 +setuptools==75.6.0 # via pip-tools diff --git a/requirements.txt b/requirements.txt index 1bd0685..6414ca1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,5 +4,5 @@ # # pip-compile --allow-unsafe --output-file=requirements.txt pyproject.toml # -lxml==5.2.2 +lxml==5.3.0 # via ammcpc (pyproject.toml)