Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 705 Bytes

python_package.md

File metadata and controls

39 lines (26 loc) · 705 Bytes

Python Package

Maintenance guide for the tooling around the Python package.

Create and Activate Virtual Environment

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

Document Python dependencies

pip freeze > python_requirements.txt

Build Python package locally

maturin develop --release

Run Python tests

python -m unittest discover

Publish Python package to PyPi

First, add the MATURIN_USERNAME and MATURIN_PASSWORD environment variables using the values of an API token from PyPI.

Note: Publishing to PyPI requires a new version number.

maturin publish