mirror of
https://github.com/chatmail/core.git
synced 2026-05-20 15:26:30 +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 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)
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user