Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 1.16 KB

CONTRIBUTING.md

File metadata and controls

50 lines (35 loc) · 1.16 KB

Welcome to pqp! Here is a quick overview of some basic things.

Installation

The package can be installed from PyPi using pip:

pip install pqp

Testing

Clone the repo and install local dependencies:

# run in root of repo
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

After activating the virtual environment, run test.sh using source. This will build the rust library and run the tests for both the rust and python code.

# run in root of repo
source test.sh

Documentation

To build the documentation, use the makefile in the docs directory. Make sure you have installed the dev dependencies.

# run in root of repo
cd python/docs

# regenerate documentation source (only run when adding new modules)
make autodoc

# build html documentation (runs local development server)
make livehtml

To deploy the documentation to github pages, run the following. This will push the docs build to the gh-pages branch of the repo. Github pages will serve. This will not work if you have not already built the docs.

# run in root of repo
source venv/bin/activate
source publish_docs.sh