From e7239d3a586ba125a9b169cfd24a4cb9fb3e96d2 Mon Sep 17 00:00:00 2001 From: Moul <moul@moul.re> Date: Sat, 25 Jul 2020 15:44:47 +0200 Subject: [PATCH] Improve "How to contribute to Silkaj" slides: - Installing Poetry as pre-release is no longer required - Clone over http to ease the entry in the project - Replace bin/silkaj by pyproject.toml to trigger silkaj --- .../presentation.md | 20 +++++++------------ 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/public/how_to_contribute_to_silkaj/presentation.md b/public/how_to_contribute_to_silkaj/presentation.md index de3b638..c789c74 100644 --- a/public/how_to_contribute_to_silkaj/presentation.md +++ b/public/how_to_contribute_to_silkaj/presentation.md @@ -225,11 +225,11 @@ class: center, middle - On Debian Buster: ```bash sudo apt install libsodium23 python3-pip python3-venv -python3 -m pip install poetry --user --pre +python3 -m pip install poetry --user ``` -- ```bash -git clone git@git.duniter.org:clients/python/silkaj.git +git clone https://git.duniter.org/clients/python/silkaj.git cd silkaj poetry install ``` @@ -335,9 +335,6 @@ template: files - `tests/test_*.py` -- -- `bin/silkaj` --- - - `silkaj/*.py` -- @@ -367,7 +364,6 @@ image: $DOCKER_IMAGE/$PYTHON_VERSION:latest .changes: only: changes: - - bin/silkaj - silkaj/*.py - tests/*.py ``` @@ -418,7 +414,7 @@ name: cicd - Release on the *Python Package Index* [PyPI](https://pypi.org/project/silkaj/) and [PyPI test](https://pypi.org/project/silkaj/) -- -- [Coverage](https://clients.duniter.io/python/silkaj/index.html) on GitLab Pages +- [Coverage report](https://clients.duniter.io/python/silkaj/index.html) deployed on GitLab Pages --  @@ -498,13 +494,11 @@ name: cert #### Dive into source files for the `cert` command -- -- [`bin/silkaj`](https://git.duniter.org/clients/python/silkaj/blob/dev/bin/silkaj): +- [`pyproject.toml`](https://git.duniter.org/clients/python/silkaj/blob/dev/pyproject.toml): -```python -from silkaj.cli import cli - -if __name__ == "__main__": - cli(obj={}) +```toml +[tool.poetry.scripts] +silkaj = "silkaj.cli:cli" ``` -- -- GitLab