From 2fe2772ec6a7439949b414c898d9e1faa8cd4f47 Mon Sep 17 00:00:00 2001 From: bgb10 Date: Wed, 21 Feb 2024 13:29:17 +0900 Subject: [PATCH 1/2] Drop support for CPython 3.7 --- .github/workflows/main.yaml | 3 +-- .pre-commit-config.yaml | 4 ++-- README.md | 2 +- pyproject.toml | 5 ++--- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 0d95d27..2778893 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -13,8 +13,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: - [3.7, 3.8, 3.9, "3.10", 3.11, 3.12-dev, pypy-3.7, pypy-3.8, pypy-3.9] + python-version: [3.8, 3.9, '3.10', 3.11, 3.12, pypy-3.8, pypy-3.9] os: [macOS-latest, ubuntu-latest, windows-latest] steps: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 421e22d..c06475e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,13 +3,13 @@ repos: rev: v3.4.0 hooks: - id: pyupgrade - args: ["--py37-plus"] + args: ['--py38-plus'] - repo: https://github.com/psf/black rev: 23.3.0 hooks: - id: black - args: ["--target-version", "py37"] + args: ['--target-version', 'py38'] - repo: https://github.com/pycqa/isort rev: 5.12.0 diff --git a/README.md b/README.md index 39b1938..50b7149 100644 --- a/README.md +++ b/README.md @@ -131,7 +131,7 @@ and your tests executed by pytest all will have access to the `httpbin` and ## Support and dependencies -pytest-httpbin supports Python 2.6, 2.7, 3.4-3.6, and pypy. It will automatically +pytest-httpbin supports Python 3.8+, and pypy. It will automatically install httpbin and flask when you install it from PyPI. [httpbin](https://github.com/postmanlabs/httpbin) itself does not support python 2.6 as diff --git a/pyproject.toml b/pyproject.toml index 6349bad..746953c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,14 +15,13 @@ classifiers = [ "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", - "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", ] keywords = ["pytest-httpbin testing pytest httpbin"] -requires-python = ">=3.7" +requires-python = ">=3.8" dependencies = ["httpbin"] dynamic = ["version"] @@ -72,7 +71,7 @@ legacy_tox_ini = """ requires= virtualenv>=20.13.2 tox-gh-actions>=2.9.1 - envlist = py37, py38, py39, py310, pypy3 + envlist = py38, py39, py310, pypy3 [testenv] package = wheel From cb4cacbcf6b226067f1aaf7535cf8e8ef482ed5e Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Tue, 30 Jul 2024 09:06:40 +0100 Subject: [PATCH 2/2] use pep-517 to get brotlicffi to build on macos --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 6349bad..008b3db 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -79,6 +79,7 @@ legacy_tox_ini = """ wheel_build_env = .pkg extras = test commands = pytest -v -s {posargs} + install_command = python -I -m pip install --use-pep517 {opts} {packages} [testenv:release] deps =