infos d'install dans le README

This commit is contained in:
ADRN 2024-01-17 15:53:34 +01:00
parent 98b95f55ab
commit 1e58a17821

View file

@ -1,5 +1,35 @@
# intro_python
## Setting up
Let's first initialise a Python environment that is local to this project.
The following commands will create a `env/` directory containing a local Python installation.
The second line will then activate it; our terminal will use the local installation:
*
Commençons par initialiser un environnement Python local au projet.
Les commandes suivantes vont crée un répertoire `env/` qui contiendra une installation Python locale.
La deuxième ligne va ensuite l'activer ; notre terminal utilisera alors l'installation locale :
*
```bash
python3 -m venv env
source env/bin/activate
```
We are going to use [PDM](https://pdm-project.org/latest/) to package our project. Let's install it with [pip](https://pypi.org/project/pip/):
*
On va utiliser [PDM](https://pdm-project.org/latest/) pour empaqueter notre projet. Installons-le avec [pip](https://pypi.org/project/pip/) :
*
```bash
pip install pdm
```
## student and complete
Python code and tests are written in two files: `myfile_student.py` and `myfile_complete.py`. The former has holes in it, for the students to complete, while the latter has the full code and test.