Require Python 3.7.x for Transcrypt 3.7.16

This commit is contained in:
RunasSudo 2020-12-23 19:57:21 +11:00
parent 80e22aa63c
commit f73e2eaa53
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A
2 changed files with 15 additions and 0 deletions

View File

@ -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

8
requirements.txt Normal file
View File

@ -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