Development setup
To install MesPy and use it in your analyses, follow Get started: it has the commands for uv, Google Colab, Jupyter and pip.
This page is for anyone who wants to modify MesPy or contribute to the project. MesPy requires Python 3.12 or newer. The commands below assume you are in the repository directory and that the local virtualenv is .venv, consistent with the repository’s make targets.
The editable installation uses the local checkout, including changes not yet published on PyPI. To reproduce the development documentation examples, run the notebooks and build from the same checkout: the version number 2.0.0 alone does not distinguish these changes from the already published distribution.
With make
Shell
git clone https://github.com/giancarmine-sparso/mespy
cd mespy
make setup
make setup creates .venv and installs the package in editable mode with the development dependencies.
With uv
Shell
uv venv --python 3.12
source .venv/bin/activate
uv pip install -e ".[dev]"
With pip
Shell
python3.12 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"
What gets installed
runtime dependencies:
numpy,pandas,matplotlib,scipy,tomli-wdevelopment tools:
pytest,ipykernel,sphinx,pydata-sphinx-theme,myst-nb,sphinx-copybutton,sphinx-intl,build,twine,setuptools,wheelthe local package in editable mode, thanks to
-e
After installing, run the tests with make test and build the documentation with make docs.