[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-www] 02/42: Added a description of how to use Python venv
From: |
gnunet |
Subject: |
[taler-www] 02/42: Added a description of how to use Python venv |
Date: |
Mon, 27 Nov 2023 23:53:58 +0100 |
This is an automated email from the git hooks/post-receive script.
andreas-habegger pushed a commit to branch master
in repository www.
commit 54e5186ac5927999d83cc8baadd350a2bda3f5a3
Author: Andreas HABEGGER <andreas.habegger@bfh.ch>
AuthorDate: Thu Nov 16 17:21:37 2023 +0100
Added a description of how to use Python venv
---
.gitignore | 2 ++
README | 21 ++++++++++++++++++++-
requirements.txt | 3 +++
3 files changed, 25 insertions(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore
index 3a23b32..ae44753 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,5 @@
+# Exclude Python virtual environment -- see README
+.venv
*.mo
locale/messages.pot
diff --git a/README b/README
index cef2685..2507a3d 100644
--- a/README
+++ b/README
@@ -82,7 +82,26 @@ Install python3.7, py37-babel, npm, nodejs from pkgsrc.
Adjust the values in config.mk: PYTHON=python3.7 BABEL=pybabel-3.7
-
+====================
+Python virtual env
+====================
+* Install python3 i.e on Debian
+```
+# apt install python3
+```
+* Create virtual environment **.venv directory is excluded with git ignore
paterns**
+```
+python3 -m venv .venv
+```
+* Activate the virtual environment
+```
+source .venv/bin/activate
+```
+* Install all requirements from [requirements.txt](requirements.txt) using pip
+```
+pip install -r requirements.txt
+
+
B. When reusing the existing web site from Git, get its files and folder
structure:
# git clone git+ssh://git@git.taler.net/www.git
diff --git a/requirements.txt b/requirements.txt
new file mode 100644
index 0000000..9ac6979
--- /dev/null
+++ b/requirements.txt
@@ -0,0 +1,3 @@
+ruamel.yaml
+jinja2
+babel
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-www] 38/42: UC: Added new CC0 PDF and HTML icons; Additional icons from SVG repo: https://www.svgrepo.com/, (continued)
- [taler-www] 38/42: UC: Added new CC0 PDF and HTML icons; Additional icons from SVG repo: https://www.svgrepo.com/, gnunet, 2023/11/27
- [taler-www] 29/42: WIP: Feature with YAML separtation patch, gnunet, 2023/11/27
- [taler-www] 36/42: UC: Fixed E-Mail address, gnunet, 2023/11/27
- [taler-www] 19/42: UC: Clean up; Unifie strings; Update dict entries -- partners, gnunet, 2023/11/27
- [taler-www] 39/42: UC: Fixed footer contact, gnunet, 2023/11/27
- [taler-www] 05/42: Adapted footer according to Grant Agreement p.36, gnunet, 2023/11/27
- [taler-www] 24/42: UC: Shorten statement to fit better., gnunet, 2023/11/27
- [taler-www] 07/42: Added project objectives from the project proposal, gnunet, 2023/11/27
- [taler-www] 42/42: RC: First release of consortium page, ready for reviewing, gnunet, 2023/11/27
- [taler-www] 10/42: Added logos and statements from PS, TalerSystems SA, HODI, draft BFH and TUE, and placeholder for others, gnunet, 2023/11/27
- [taler-www] 02/42: Added a description of how to use Python venv,
gnunet <=
- [taler-www] 41/42: Added events board; deliverables board, gnunet, 2023/11/27
- [taler-www] 27/42: UC: Added additional targets to have more granular build option; Better clean-up target, gnunet, 2023/11/27
- [taler-www] 14/42: Fixed coordinator information; Added SBFI founding based on guidelines https://www.sbfi.admin.ch/sbfi/de/home/das-sbfi/logo.html, gnunet, 2023/11/27
- [taler-www] 40/42: Added fontawesome free, gnunet, 2023/11/27
- [taler-www] 23/42: UC: Added logos of MagNet Bank, GLS Bank; Update partner URLs, gnunet, 2023/11/27