Get and use the repository of this training#
Prerequisites
To get and use the repository of this training, one needs UV, PDM and Mercurial. We explain in Preliminaries how these programs can be installed.
You should already have cloned the repository of this training (Clone the repo of this training). Now it is time to use it!
Exercise 2
Open a terminal and cd into the directory of the repository of the course.
If it is not yet cloned, you should use something like:
hg clone https://foss.heptapod.net/py-edu-fr/py-edu-fr
ls
cd py-edu-fr
if it is already cloned, you can update the repo to be sure to have the last version of the source.
cd py-edu-fr
hg pull
hg up default
Once the repository of the course is there and up-to-date, you should be able to use it:
Exercise 3
# choose the right training directory!
cd books/init
# ask pdm to create the virtual environment of the training
pdm sync --clean
# create links in the current folder
pdm create-symlinks
Note that at this point, you could also build the book of the training with
pdm build-book. However, it is not very useful since the website is available online.
You should now have
a virtual environment usable for the whole training (in
py-edu-fr/.venv)all the files used for this training in the current directory (
py-edu-fr/books/init).
We will use the virtual environment in the last chapters but the files are needed now.