toot/docs/installation.md

61 wiersze
1.4 KiB
Markdown

2023-03-03 12:52:37 +00:00
Installation
============
2024-10-01 06:36:51 +00:00
## Package repositories
2023-03-03 12:52:37 +00:00
toot is packaged for various platforms. If possible use your OS's package manager to install toot.
2024-10-01 06:36:51 +00:00
<details>
<summary>Packaging status</summary>
<a href="https://repology.org/project/toot/versions" style="display: block; margin-top: 2rem">
2024-11-27 18:45:57 +00:00
<img src="https://repology.org/badge/vertical-allrepos/toot.svg?columns=4" alt="Packaging status" />
2024-10-01 06:36:51 +00:00
</a>
</details>
2023-03-03 12:52:37 +00:00
2024-10-01 06:36:51 +00:00
## Homebrew
2023-03-03 12:52:37 +00:00
2024-10-01 06:36:51 +00:00
For Mac users, toot is available [in homebrew](https://formulae.brew.sh/formula/toot#default).
2023-03-03 12:52:37 +00:00
2024-10-01 06:36:51 +00:00
brew install toot
2023-03-03 12:52:37 +00:00
2024-10-01 06:36:51 +00:00
## Using pipx
2023-03-03 12:52:37 +00:00
2024-10-01 06:36:51 +00:00
pipx installs packages from PyPI into isolated environments. It is the
recommended installation method if there is no OS package or the package is
outdated.
2023-03-03 12:52:37 +00:00
2024-10-01 06:36:51 +00:00
Firstly, install pipx following their [installation instructions](https://pipx.pypa.io/stable/installation/).
Install toot:
pipx install toot
Install with optional image support:
pipx install "toot[images]"
Upgrade to latest version:
pipx upgrade toot
2023-03-03 12:52:37 +00:00
## From source
You can get the latest source distribution [from Github](https://github.com/ihabunek/toot/releases/latest/).
2024-10-01 06:36:51 +00:00
Clone the project and install into a virtual environment.
```
git clone git@github.com:ihabunek/toot.git
cd toot
python3 -m venv .venv
source .venv/bin/activate
pip install .
```
After this, the executable is available at `.venv/bin/toot`.
To install with optonal image support:
```
pip install ".[images]"
```