mirror of
https://github.com/chatmail/core.git
synced 2026-04-19 14:36:29 +03:00
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:
@@ -1,13 +1,14 @@
|
||||
|
||||
import os
|
||||
import sys
|
||||
import platform
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
assert len(sys.argv) == 3
|
||||
assert len(sys.argv) == 2
|
||||
workspacedir = sys.argv[1]
|
||||
arch = sys.argv[2]
|
||||
arch = platform.machine()
|
||||
for relpath in os.listdir(workspacedir):
|
||||
if relpath.startswith("deltachat"):
|
||||
p = os.path.join(workspacedir, relpath)
|
||||
|
||||
@@ -27,7 +27,7 @@ deps =
|
||||
skipsdist = True
|
||||
deps = auditwheel
|
||||
commands =
|
||||
sh -c 'python tests/auditwheels.py {toxworkdir}/wheelhouse $(uname -m)'
|
||||
python tests/auditwheels.py {toxworkdir}/wheelhouse
|
||||
|
||||
[testenv:lint]
|
||||
skipsdist = True
|
||||
|
||||
Reference in New Issue
Block a user