tox: fix "test command found but not installed in testenv" warning

Determine architecture from python instead of using sh and uname
This commit is contained in:
link2xt
2021-05-23 18:40:40 +03:00
parent 7e3bfd38f0
commit 2a83147d90
2 changed files with 5 additions and 4 deletions

View File

@@ -1,13 +1,14 @@
import os import os
import sys import platform
import subprocess import subprocess
import sys
if __name__ == "__main__": if __name__ == "__main__":
assert len(sys.argv) == 3 assert len(sys.argv) == 2
workspacedir = sys.argv[1] workspacedir = sys.argv[1]
arch = sys.argv[2] arch = platform.machine()
for relpath in os.listdir(workspacedir): for relpath in os.listdir(workspacedir):
if relpath.startswith("deltachat"): if relpath.startswith("deltachat"):
p = os.path.join(workspacedir, relpath) p = os.path.join(workspacedir, relpath)

View File

@@ -27,7 +27,7 @@ deps =
skipsdist = True skipsdist = True
deps = auditwheel deps = auditwheel
commands = commands =
sh -c 'python tests/auditwheels.py {toxworkdir}/wheelhouse $(uname -m)' python tests/auditwheels.py {toxworkdir}/wheelhouse
[testenv:lint] [testenv:lint]
skipsdist = True skipsdist = True