Skip to content

Latest commit

 

History

History
51 lines (34 loc) · 712 Bytes

File metadata and controls

51 lines (34 loc) · 712 Bytes

Notes for publish to PyPi

Environment setup

Create virtual environment

python3.12 -m venv venv
source venv/bin/activate
pip install --upgrade pip

Install necessary packages for building and releasing

pip install setuptools wheel build

Install package for secure upload

pip install twine

Install dependencies

# Add dependency into pyproject.toml

# Run pip install
pip install -e .

Build and release new version

Update version number

  • Update underdoc/version.py for version number
  • Update version number in pyproject.toml

Build package

python -m build

Upload to Pypi

twine upload dist/*