From 6ccea7e1862a8810a25f1978c518713091b93a26 Mon Sep 17 00:00:00 2001 From: ADRN Date: Wed, 17 Jan 2024 16:05:03 +0100 Subject: [PATCH] WIP: readme and pyproject --- scripts/intro_python/README.md | 11 +++++++++++ scripts/intro_python/pyproject.toml | 16 ++++++++++------ 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/scripts/intro_python/README.md b/scripts/intro_python/README.md index 211bc1e..597f4f1 100644 --- a/scripts/intro_python/README.md +++ b/scripts/intro_python/README.md @@ -28,6 +28,17 @@ On va utiliser [PDM](https://pdm-project.org/latest/) pour empaqueter notre proj pip install pdm ``` +We can now run the `pdm` command. Let's build our project just to check that every thing is alright: + +* +On peut désormais lancer la commande `pdm`. Essayons de _build_ notre programme pour être sûr⋅e que tout va bien : +* + +```bash +pdm build +``` + + ## student and complete diff --git a/scripts/intro_python/pyproject.toml b/scripts/intro_python/pyproject.toml index a61f778..1dee66a 100644 --- a/scripts/intro_python/pyproject.toml +++ b/scripts/intro_python/pyproject.toml @@ -9,6 +9,7 @@ version = "0.1.0" description = "Default template for PDM package" authors = [ {name = "boris", email = "boris@deuxfleurs.fr"}, + {name = "adrien", email = "aluxey@univ-lille.fr"}, ] dependencies = [] requires-python = ">=3.9" @@ -24,10 +25,13 @@ dev = [ ] [tool.pdm] -package-type = "application" +distribution = "false" -[tool.pytest.ini_options] -addopts = [ - "--import-mode=importlib", -] -pythonpath = "src" \ No newline at end of file +#[tool.pdm.scripts] +#test = "pytest" + +#[tool.pytest.ini_options] +#addopts = [ +# "--import-mode=importlib", +#] +#pythonpath = "src"