-
|
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: [testenv]
package = wheel
wheel_build_env = .pkg
commands = python -m testtox
setenv =
PYTHONSAFEPATH=1
[testenv:.pkg]
deps = build
commands = python -m buildbut I saw that specifying I made a repo here with my experiment. As the readme says, 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 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 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.
-
|
Your [testenv]
package = external
package_env = .pkg
[testenv:.pkg]
deps = build
package_glob = {envtmpdir}/dist/*.whl
commands = python -m build -o {envtmpdir}/distThis builds an sdist first (default |
Beta Was this translation helpful? Give feedback.
I found a way to get
python -m buildworking by usingpackage = 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 😞.