Skip to content

Latest commit

 

History

History
71 lines (46 loc) · 1.04 KB

File metadata and controls

71 lines (46 loc) · 1.04 KB

Building and Publishing PUPRemote

Local Installation

Install the package locally for development:

pip install -e .

Or from a built wheel:

pip install dist/pupremote-2.1.0-py3-none-any.whl

Building Distributions

Build source and wheel distributions:

rm -rf dist/ && python -m build

Publishing to PyPI

Test PyPI (Recommended First)

python -m twine upload --repository testpypi dist/*

Then test installation:

pip install --index-url https://test.pypi.org/simple/ pupremote

Production PyPI

python -m twine upload dist/*

Package Contents

The PyPI package includes:

  • pupremote.py - Main library (hub-side and sensor-side implementations)
  • lpf2.py - LPF2 protocol implementation (dependency)

Users can then import:

from pupremote import PUPRemote, PUPRemoteHub, PUPRemoteSensor
import lpf2

Verifying the Package

Check wheel contents:

python -m zipfile -l dist/*.whl

Check metadata:

python -m twine check dist/*