Setup#

This page describes how to set up a local checkout for development. If you only want to use Ensembl VEP, follow the Download and install instructions instead.

Pre-requisites#

Development is supported on Linux and macOS. On Windows, use a Linux distribution through WSL so the same tools and Make targets are available.

The development environment requires:

  • Git and Make;

  • Python 3.12 or later, including the Python development headers;

  • uv;

  • a Rust toolchain, including Cargo.

The integration tests also require bgzip and tabix from HTSlib. They are not required for the unit tests.

The Makefile provides convenience targets for installing uv and Rust when they are not already available:

make install-uv
make install-cargo

Restart the shell after installing either tool so the updated PATH is available.

Clone the repository#

git clone https://github.com/Ensembl/ensembl-vep-py.git
cd ensembl-vep-py

Create a branch from the remote main branch:

git fetch origin
git switch --create feature/my-change origin/main

Create the development environment#

Create and activate a virtual environment:

uv venv --python 3.12
source .venv/bin/activate

Install the development, build and documentation dependencies:

uv sync --extra cicd --extra build --extra docs

Install Ensembl VEP in editable mode so changes in the checkout are immediately available to Python:

make install-package

Check the setup#

Run the Python and Rust unit tests:

make test

Run all formatting, linting, type-checking and integration checks before opening a pull request:

make checks-all

The integration checks require bgzip and tabix to be available on PATH. See the Contributing Guide for the branching and review workflow.