Skip to content

CQCL/guppylang

Repository files navigation

Guppy

About

TODO

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

  • Python >=3.10

Installing

Setup your virtual environment and install dependencies:

python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

Install a local development version using:

pip install -e '.[dev]'

Git blame

You can configure Git to ignore formatting commits when using git blame by running

git config blame.ignoreRevsFile .git-blame-ignore-revs

Usage

TODO

Testing

First, build the PyO3 Hugr validation library using

maturin develop

Run tests using

pytest -v

Integration test cases can be exported to a directory using

pytest --export-test-cases=guppy-exports

which will create a directory ./guppy-exports populated with hugr modules serialised in msgpack.

Packaging

python -m build -n