Replies: 1 comment 3 replies
-
I found a way to get [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 |
Beta Was this translation helpful? Give feedback.
3 replies
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
I would like for tox to build an sdist and then build and install a wheel from that. From what I can tell tox's default behavior is to build either an sdist or wheel but not both.
I tried using this configuration:
but I saw that specifying
deps
in the build environment should not be supported according to #3412 (comment) so this can't be right.I made a repo here with my experiment. As the readme says,
tox run
prints outhello, tox
even thoughMANIFEST.in
should exclude__main__.py
whilepython -m build
does exclude__main__.py
from the build artifacts.So the main question is -- how can I build an sdist and then build a wheel from the sdist? There might be a secondary issue with tox's wheel not respecting the manifest.
One bonus request -- I was hoping I could leave
package = editable
as the default only go down this sdist-wheel path when using--override testenv.package=wheel
.Beta Was this translation helpful? Give feedback.
All reactions