Installation¶
Prerequisites¶
Python: 3.11, 3.12, or 3.13
pip or Poetry (recommended for development)
Quick Install¶
Using pip¶
The easiest way to get started is to install directly from GitHub:
pip install git+https://github.com/MatteoRobbiati/mpstab.git
Development Installation¶
Using Poetry (Recommended)¶
For development, testing, and documentation building, we recommend Poetry. It a good practice to install the package whitin a fresh, new Python environment.
1. Clone the repository
git clone https://github.com/MatteoRobbiati/mpstab.git
cd mpstab
2. Install Poetry
If you don’t have Poetry installed:
curl -sSL https://install.python-poetry.org | python3 -
3. Install dependencies
# Install base dependencies
poetry install
# Install with all optional dependencies
poetry install --with dev,test,docs
# Activate the virtual environment
poetry shell
Alternatively, you can use pip for an editable install with optional dependencies:
git clone https://github.com/MatteoRobbiati/mpstab.git
cd mpstab
pip install -e ".[dev,test,docs]"
Dependency Groups¶
When using Poetry, you can selectively install optional dependency groups:
`dev`: Development tools (IPython, debuggers, task runner)
`test`: Testing framework and code quality tools (pytest, coverage, pylint)
`docs`: Documentation generation tools (Sphinx, theme, plugins)
Verification¶
To verify your installation works correctly:
# Run a simple test
python -c "from mpstab import HSMPO; print('MPSTAB installed successfully!')"
# Run the test suite (requires test dependency group)
poetry run pytest