From 2099ce43c745f477d6898f5c44a6fa0bd71e45c9 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Wed, 19 Feb 2025 12:45:23 +0800 Subject: [PATCH] Add definition for test extras --- pyproject.toml | 5 ++++- tox.ini | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index c510ef0..a4c4393 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,9 +38,11 @@ classifiers=[ [project.optional-dependencies] # Extras used by developers *of* briefcase are pinned to specific versions to # ensure environment consistency. +test = [ + "pytest == 8.3.4", +] dev = [ "pre-commit == 4.1.0", - "pytest == 8.3.4", "ruff == 0.9.6", "setuptools_scm == 8.1.0", "tox == 4.24.1", @@ -53,6 +55,7 @@ Source = "https://github.com/freakboy3742/pyspamsum/" [tool.cibuildwheel] test-command = "pytest" +test-extras = ["test"] test-sources = ["tests"] [tool.pytest.ini_options] diff --git a/tox.ini b/tox.ini index f0a773c..7bb17d1 100644 --- a/tox.ini +++ b/tox.ini @@ -10,6 +10,6 @@ commands = pre-commit run --all-files --show-diff-on-failure --color=always [testenv:py{,39,310,311,312,313,314}] depends = pre-commit -extras = dev +extras = test commands = python -m pytest {posargs:-vv --color yes}