From f73e2eaa5331f772bd46f3c9a79b32569d317e78 Mon Sep 17 00:00:00 2001 From: RunasSudo Date: Wed, 23 Dec 2020 19:57:21 +1100 Subject: [PATCH] Require Python 3.7.x for Transcrypt 3.7.16 --- build.sh | 7 +++++++ requirements.txt | 8 ++++++++ 2 files changed, 15 insertions(+) create mode 100644 requirements.txt diff --git a/build.sh b/build.sh index 322c623..e96ffc4 100755 --- a/build.sh +++ b/build.sh @@ -1,6 +1,13 @@ #!/bin/env bash OUTFILE=html/bundle.js +# Check Python version +pyver=$(python -V | awk '{print $2;}') +if [[ ! $pyver == 3.7.* ]]; then + echo Python 3.7.x is required, got version $pyver + exit 1 +fi + # Transcrypt transcrypt $@ --nomin pyRCV2.transcrypt || exit 1 diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..e45ba5e --- /dev/null +++ b/requirements.txt @@ -0,0 +1,8 @@ +# Dependencies +Transcrypt==3.7.16 + +# Dependency tree +mypy==0.790 +mypy-extensions==0.4.3 +typed-ast==1.4.1 +typing-extensions==3.7.4.3