From e920b7b08e409872b3712048d64d17355d6fe5fb Mon Sep 17 00:00:00 2001 From: Hynek Schlawack Date: Mon, 26 Jun 2023 16:18:30 +0200 Subject: [PATCH] Build only one universal wheel when running tox (#1154) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Build only one universal wheel when running tox Sadly, hatch-autorun and tox seem to be fighting over env variables so we create the pth file by hand. * Simplify * Configure pkg build env Co-authored-by: Bernát Gábor <690238+gaborbernat@users.noreply.github.com> --------- Co-authored-by: Bernát Gábor <690238+gaborbernat@users.noreply.github.com> --- tox.ini | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tox.ini b/tox.ini index 948d6bc4..a9908ab6 100644 --- a/tox.ini +++ b/tox.ini @@ -11,7 +11,14 @@ env_list = coverage-report +[testenv:.pkg] +pass_env = + SETUPTOOLS_SCM_PRETEND_VERSION + + [testenv] +package = wheel +wheel_build_env = .pkg extras = tests commands = pytest {posargs:-n auto} pass_env =