Installation¶
This guide will help you install Wiverno and set up your development environment.
Requirements¶
Wiverno requires Python 3.12 or higher. Make sure you have a compatible Python version installed:
Installation Methods¶
Using pip (Recommended)¶
The easiest way to install Wiverno is using pip:
From Source¶
To install the latest development version from GitHub:
Development Installation¶
If you want to contribute to Wiverno or modify the source code, install in editable mode with development dependencies:
This will install Wiverno with all development tools including:
- pytest - for running tests
- ruff - for linting and formatting
- mypy - for type checking
- mkdocs-material - for building documentation
- and more...
Using uv (Modern Alternative)¶
If you're using uv for dependency management:
For development:
Virtual Environments¶
It's highly recommended to use a virtual environment to isolate your project dependencies.
Using venv¶
# Create a virtual environment
python -m venv venv
# Activate it (Windows)
venv\Scripts\activate
# Activate it (Unix/macOS)
source venv/bin/activate
# Install Wiverno
pip install wiverno
Using uv¶
# Create a virtual environment with uv
uv venv
# Activate it (Windows)
.venv\Scripts\activate
# Activate it (Unix/macOS)
source .venv/bin/activate
# Install Wiverno
uv pip install wiverno
Verification¶
After installation, verify that Wiverno is installed correctly:
You can also check the CLI tool:
Optional Dependencies¶
Wiverno has minimal dependencies by default. The only required dependency is:
- Jinja2 (>=3.1) - Template engine
Development dependencies (optional):
- pytest - Testing framework
- pytest-cov - Coverage reporting
- pytest-benchmark - Performance benchmarking
- ruff - Linting and formatting
- mypy - Static type checking
- mkdocs-material - Documentation
- rich - Terminal formatting
- watchdog - File watching for auto-reload
Troubleshooting¶
Python Version Issues¶
If you get an error about Python version:
You need to upgrade to Python 3.12 or higher. Download the latest version from python.org.
Permission Errors¶
If you get permission errors during installation, try:
Or use a virtual environment (recommended).
Import Errors¶
If you can't import Wiverno after installation:
- Make sure you're in the correct virtual environment
- Check that the installation completed successfully
- Try reinstalling:
pip install --force-reinstall wiverno
Next Steps¶
Now that you have Wiverno installed, head over to the Quickstart guide to create your first application!