install_poetry.md 971 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
## Install Silkaj in a development environement with Poetry

### Install libsodium

```bash
sudo apt install libsodium23 # Debian Buster
sudo apt install libsodium18 # Debian Stretch
sudo dnf install libsodium # Fedora
```

### Install Poetry
- [Installation documentation](https://poetry.eustace.io/docs/#installation)

14 15 16 17 18 19
### On Debian Buster
```bash
sudo apt install python3-pip python3-venv
pip3 install poetry --user --pre
```

20 21
### Install dependencies and the Python environment
```bash
22 23
git clone https://git.duniter.org/clients/python/silkaj
cd silkaj
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
poetry install
```

### Run Silkaj
Within `silkaj` repository, enter the development environement and run Silkaj:
```bash
poetry shell
./bin/silkaj
```

You might need to enter Poetry shell to access development tools such as `pytest` or `black`.

### Make Silkaj accessible from everywhere

Add following alias to your shell configuration:
```bash
40
alias silkaj="cd /path/to/silkaj/silkaj && poetry run silkaj"
41
```