[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-www] 01/42: Added a description of how to use Python venv
From: |
gnunet |
Subject: |
[taler-www] 01/42: Added a description of how to use Python venv |
Date: |
Mon, 27 Nov 2023 23:53:57 +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 43bebab76a68e29f864e3786d0195984d50a21f5
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] branch master updated (1536788 -> 3a8daa7), gnunet, 2023/11/27
- [taler-www] 13/42: WIP: Avoid publishing internal e-mail address; Use office E-mail instead, gnunet, 2023/11/27
- [taler-www] 21/42: HF: Fixes alignment issue in 'Project funded by' section, gnunet, 2023/11/27
- [taler-www] 34/42: UC: Updated color list-group-item mb-1 in consortium context, gnunet, 2023/11/27
- [taler-www] 25/42: UC: Switched to card elements for the partner panel; Imporvement of alignment., gnunet, 2023/11/27
- [taler-www] 20/42: UC: Added CBG, NLnet logos, gnunet, 2023/11/27
- [taler-www] 31/42: UC: Added event section based on carousel; Added placeholder for deliverables, gnunet, 2023/11/27
- [taler-www] 15/42: UC: Remove Taler System link from navigation, gnunet, 2023/11/27
- [taler-www] 26/42: MC: Integration of python-venv configuration, gnunet, 2023/11/27
- [taler-www] 01/42: Added a description of how to use Python venv,
gnunet <=
- [taler-www] 03/42: Added missing python packages to run build script, gnunet, 2023/11/27
- [taler-www] 11/42: Added jinja code to create partner table form list, gnunet, 2023/11/27
- [taler-www] 35/42: UC: Added announce container, gnunet, 2023/11/27
- [taler-www] 37/42: HF: Input TL about footer element arrangement, gnunet, 2023/11/27
- [taler-www] 08/42: Added placeholder image, gnunet, 2023/11/27
- [taler-www] 18/42: WIP: Added team reference in partner section, gnunet, 2023/11/27
- [taler-www] 17/42: UC: Moved partner content from consortium to partner section, gnunet, 2023/11/27
- [taler-www] 16/42: HF: Spacing issue contact e-mail fixed, gnunet, 2023/11/27
- [taler-www] 04/42: Added empty consortium page with special footer, gnunet, 2023/11/27
- [taler-www] 32/42: UC: Events image size and shape, gnunet, 2023/11/27