Skip to content
Discussion options

You must be logged in to vote

I found a way to get python -m build working by using package = external. I actually found this in my notes from a while ago so maybe I got this from somewhere in a previous issue/discussion on the repo but I couldn't find it when searching again recently 😞.

[testenv]
package = external
package_env = .pkg
wheel_build_env = .pkg
commands = python -m testtox
setenv =
  PYTHONSAFEPATH=1

[testenv:.pkg]
deps = build
package_glob = {envtmpdir}/dist/*.whl
commands = python -m build -o {envtmpdir}/dist

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@jugmac00
Comment options

@wshanks
Comment options

@wshanks
Comment options

Answer selected by gaborbernat
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants