From 3b26921580641c7b06689574aa69535b6fad119e Mon Sep 17 00:00:00 2001 From: Arthur Pastel Date: Mon, 9 Sep 2024 15:51:26 +0200 Subject: [PATCH] chore: support python 3.13 and drop 3.7 --- .github/workflows/ci.yml | 5 +---- README.md | 2 +- pyproject.toml | 10 +++++----- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8d13451..8247e14 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,12 +38,9 @@ jobs: - "3.10" - "3.11" - "3.12" + - "3.13.0-rc.1" pytest-version: - ">=8.1.1" - include: - - config: pytest-benchmark - python-version: "3.7" - pytest-version: "<8.1.1" steps: - uses: actions/checkout@v4 diff --git a/README.md b/README.md index 01189e7..80a799b 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![CI](https://github.com/CodSpeedHQ/pytest-codspeed/actions/workflows/ci.yml/badge.svg)](https://github.com/CodSpeedHQ/pytest-codspeed/actions/workflows/ci.yml) [![PyPi Version](https://img.shields.io/pypi/v/pytest-codspeed?color=%2334D058&label=pypi)](https://pypi.org/project/pytest-codspeed) -![Python Version](https://img.shields.io/badge/python-3.7%20|%203.8%20|%203.9%20|%203.10%20|%203.11%20|%203.12-informational.svg) +![Python Version](https://img.shields.io/badge/python-3.8%20|%203.9%20|%203.10%20|%203.11%20|%203.12%20|%203.13-informational.svg) [![Discord](https://img.shields.io/badge/chat%20on-discord-7289da.svg)](https://discord.com/invite/MxpaCfKSqF) [![CodSpeed Badge](https://img.shields.io/endpoint?url=https://codspeed.io/badge.json)](https://codspeed.io/CodSpeedHQ/pytest-codspeed) diff --git a/pyproject.toml b/pyproject.toml index e637d35..f9c861f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,7 +13,7 @@ dynamic = ["version"] description = "Pytest plugin to create CodSpeed benchmarks" readme = "README.md" license = { file = "LICENSE" } -requires-python = ">=3.7" +requires-python = ">=3.8" authors = [{ name = "Arthur Pastel", email = "arthur@codspeed.io" }] keywords = ["codspeed", "benchmark", "performance", "pytest"] classifiers = [ @@ -23,19 +23,19 @@ classifiers = [ "Intended Audience :: Information Technology", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "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 :: System :: Benchmark", "Topic :: Utilities", "Typing :: Typed", ] dependencies = [ - "cffi >= 1.15.1", + "cffi >= 1.17.1", # cffi doesn't automatically install setuptools with python 3.12+ # cf https://github.com/python-cffi/cffi/releases/tag/v1.16.0 "setuptools; python_full_version >= '3.12.0'", @@ -59,7 +59,7 @@ features = ["lint", "test", "compat"] features = ["test"] [[tool.hatch.envs.test.matrix]] -python = ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] +python = ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] features = ["compat", "test"] [tool.hatch.version] @@ -76,7 +76,7 @@ target-version = "py37" [tool.ruff.lint] select = ["E", "F", "I", "C", "TCH", "FA", "UP"] -flake8-type-checking = {exempt-modules = [], strict = true} +flake8-type-checking = { exempt-modules = [], strict = true } [tool.isort] line_length = 88