fix appveyor build script

we now have a module named "types",
which of course confuses Python 3.5. O:-)
This commit is contained in:
Maximilian Hils 2017-12-29 21:55:05 +01:00
parent 9dc3d16bf2
commit d15bdf8d03
3 changed files with 2 additions and 4 deletions

View File

@ -34,7 +34,7 @@ install:
test_script:
- ps: "tox -- --verbose --cov-report=term"
- ps: |
$Env:VERSION = $(python mitmproxy/version.py)
$Env:VERSION = $(python -m mitmproxy.version)
$Env:SKIP_MITMPROXY = "python -c `"print('skip mitmproxy')`""
tox -e rtool -- wheel
tox -e rtool -- bdist

View File

@ -1,3 +0,0 @@
# https://github.com/mitmproxy/mitmproxy/issues/1809
# import script here so that pyinstaller registers it.
from . import script # noqa

View File

@ -0,0 +1 @@
hiddenimports = ["mitmproxy.script"]