Add python virtual env instructions

This change adds instructions on how to setup a python virtual env for this
repo.
In addition, the respective requirements files have been added for easy
installation with pip.
pull/12/head v1.3.0
Michael Iseli 2 years ago committed by Roland Kurmann
parent 5dc155f556
commit bf96148461

3
.gitignore vendored

@ -1 +1,4 @@
generated_python/__pycache__/
qr/
venv/

@ -28,6 +28,18 @@ For printing QR codes, the qrcode module is required
pip install qrcode[pil]
### Alternative installation method
Alternatively, you can use a python virtual env for the dependencies:
python -m venv venv
. venv/bin/activate
pip install -r requirements-buildenv.txt
pip install -r requirements.txt
The requirements\*.txt files contain all the dependencies (also the optional ones).
To leave the python virtual env just call `deactivate`.
## Technical background
The export QR code of "Google Authenticator" contains the URL `otpauth-migration://offline?data=...`.

@ -0,0 +1,3 @@
protobuf
qrcode
Pillow
Loading…
Cancel
Save