Skip to content

Commit bec84aa

Browse files
committed
tox: use build module to create sdist
This avoids having to install the module to properly version the sdist tarball.
1 parent 839a5ef commit bec84aa

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

tox.ini

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,5 @@ commands =
107107

108108
[testenv:sdist]
109109
description = build the source distribution
110-
base = tox
111-
allowlist_externals = cp
112-
commands = cp -a {toxworkdir}/{package_env}/dist {toxinidir}
110+
deps = build
111+
commands = python -m build --sdist

0 commit comments

Comments
 (0)