Install
openclaw skills install python-packagingDeep Python packaging workflow—pyproject metadata, dependencies and optional extras, build backends, wheels, versioning, publishing, and CI release hygiene. Use when building libraries or shipping CLI tools to PyPI or private indexes.
openclaw skills install python-packagingPackaging connects source to installable artifacts. Prioritize reproducible builds, accurate dependencies, and safe automated releases.
Trigger conditions:
Initial offer:
Use six stages: (1) project layout, (2) metadata & entry points, (3) dependencies, (4) build backend & wheels, (5) versioning & tags, (6) publish & CI). Confirm supported Python versions and target index.
Goal: Prefer src/ layout to avoid accidental imports from the repo root; one clear import package name.
Exit condition: pip install . in a clean venv imports the package correctly.
Goal: pyproject.toml with PEP 621 metadata; [project.scripts] or [project.gui-scripts] for CLIs.
Goal: Separate runtime deps from optional extras (dev, docs, speedups); pin strategy differs for libraries vs applications.
Goal: Choose build backend (hatchling, setuptools, flit); emit wheel + sdist where appropriate.
Goal: Single source of truth for version (static in pyproject or dynamic from VCS); git tags match releases.
Goal: PyPI trusted publishing (OIDC) preferred over long-lived API tokens in secrets.
py.typed for typed libraries (PEP 561).