Build only one universal wheel when running tox (#1154)

* 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>
This commit is contained in:
Hynek Schlawack 2023-06-26 16:18:30 +02:00 committed by GitHub
parent a074923138
commit e920b7b08e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -11,7 +11,14 @@ env_list =
coverage-report coverage-report
[testenv:.pkg]
pass_env =
SETUPTOOLS_SCM_PRETEND_VERSION
[testenv] [testenv]
package = wheel
wheel_build_env = .pkg
extras = tests extras = tests
commands = pytest {posargs:-n auto} commands = pytest {posargs:-n auto}
pass_env = pass_env =