Skip to content

Latest commit

 

History

History
108 lines (70 loc) · 2.16 KB

CONTRIBUTING.md

File metadata and controls

108 lines (70 loc) · 2.16 KB

Contributing

Thank you for your interest in contributing to the Reality Capture Python SDK.

This guide describes how to set up the SDK locally, run tests, and build the documentation.

Table of Contents

Source Code Edit Workflow

Run the commands in this guide from the python_sdk directory.

Prerequisites

To build and run the source code locally, install Python 3.10 or later and create a virtual environment:

python -m venv .venv

Activate the virtual environment:

Windows Command Prompt:

.venv\Scripts\activate.bat

Windows PowerShell:

.venv\Scripts\Activate.ps1

Linux or macOS:

source .venv/bin/activate

Install the SDK and development dependencies in editable mode:

python -m pip install -e ".[dev]"

Unit tests

Run the test suite from the python_sdk directory:

python -m pytest

Documentation

Build and install the wheel before generating documentation:

python -m pip install build
python -m build

Install the generated wheel:

python -m pip install --force-reinstall dist/reality_capture-X.Y.0-py3-none-any.whl

Then build the Sphinx documentation from the python_sdk/docs directory:

Linux or macOS:

make html

Windows:

make.bat html

The generated HTML documentation is available in docs/_build/html/index.html.

Before Submitting a Pull Request

Before submitting a pull request, run the test suite and build the documentation if your change affects public APIs or documentation:

python -m pytest

Update the changelog

reality_capture uses towncrier to generate its changelog. Once your PR is created, use towncrier create to generate the relevant changelog for your feature or fix. Be sure to include the PR or issue number.