From c1391e8dc67bc0653bea7cbdcd5cf83778ce511e Mon Sep 17 00:00:00 2001 From: Brian Okken <1568356+okken@users.noreply.github.com> Date: Sat, 8 Feb 2025 19:01:06 -0800 Subject: [PATCH] 3.13, tox-uv, and flit-> hatch --- .github/workflows/main.yml | 2 +- changelog.md | 6 ++++++ pyproject.toml | 15 ++++++++++----- tox.ini | 6 +++--- 4 files changed, 20 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cb54fa6..66c2266 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v3 diff --git a/changelog.md b/changelog.md index 65f7ab9..e1bc836 100644 --- a/changelog.md +++ b/changelog.md @@ -19,6 +19,12 @@ All notable changes to this project be documented in this file. - nothing so far --> +## [2.4.2] - 2025-Feb-8 + +### Modified +- Add testing for Python 3.13 to GH actions +- Add testing for Python 3.13 and 3.14 to tox.ini +- Switch packackaching from flit to hatchling ## [2.4.1] - 2024-Aug-27 diff --git a/pyproject.toml b/pyproject.toml index 03b3fb1..beb47c5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ authors = [{name = "Brian Okken"}] readme = "README.md" license = {file = "LICENSE.txt"} description="A pytest plugin that allows multiple failures per test." -version = "2.4.1" +version = "2.4.2" requires-python = ">=3.8" classifiers = [ "License :: OSI Approved :: MIT License", @@ -16,6 +16,7 @@ classifiers = [ 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', 'Programming Language :: Python :: 3.12', + 'Programming Language :: Python :: 3.13', 'Topic :: Software Development :: Testing', 'Topic :: Utilities', ] @@ -28,11 +29,15 @@ Home = "https://github.com/okken/pytest-check" check = "pytest_check.plugin" [build-system] -requires = ["flit_core >=3.2,<4"] -build-backend = "flit_core.buildapi" +requires = ["hatchling"] +build-backend = "hatchling.build" -[tool.flit.module] -name = "pytest_check" +[project.optional-dependencies] +dev = [ + "tox", + "tox-uv", + "build" +] [tool.flit.sdist] include = ["changelog.md", "examples", "tests", "tox.ini"] diff --git a/tox.ini b/tox.ini index bc64d71..647db0d 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py38, py39, py310, py311, py312, pytest_earliest, coverage, lint +envlist = py38, py39, py310, py311, py312, py313, py314, pytest_earliest, coverage, lint skip_missing_interpreters = true @@ -11,7 +11,7 @@ wheel_build_env = .pkg [testenv:coverage] deps = coverage -basepython = python3.12 +basepython = python3.13 commands = coverage run --source={envsitepackagesdir}/pytest_check,tests -m pytest coverage report --fail-under=100 --show-missing @@ -26,7 +26,7 @@ description = Run earliest supported pytest [testenv:lint] skip_install = true deps = ruff -basepython = python3.12 +basepython = python3.13 commands = ruff check src tests examples description = Run ruff over src, test, exampless