Development — Pycairo documentation

# Development

First install the external dependencies, see Getting Started.

Both `poetry` and `uv` are supported for development.

## poetry

To run the tests:

    $ poetry install
    $ poetry run pip install -e .
    # change things
    $ poetry run pytest

To work on the documentation:

    $ poetry install --with docs
    $ poetry run make -C docs watch
    # See http://127.0.0.1:8000

## uv

To run the tests:

    $ uv sync
    $ uv pip install -e .
    # change things
    $ uv run pytest

To work on the documentation:

    $ uv sync --group docs
    $ uv run make -C docs watch
    # See http://127.0.0.1:8000