Skip to content

Consuming packages

This guide shows how an application depends on pykit packages by version range. Every package is published to PyPI, so a consumer requires one by name like any other dependency:

[project]
dependencies = ["rn-forge-commons>=0.9,<0.10"]

Before 1.0 the ceiling is the next minor version, because a minor release may break. From 1.0 it is the next major.

Pin one exact version

Require ==0.9.0 instead of a range:

dependencies = ["rn-forge-commons==0.9.0"]

Fall back to a direct URL

To install a tag straight from the repository, pin it by git direct URL with its subdirectory:

dependencies = [
  "rn-forge-commons @ git+https://github.com/rn-forge/pykit@rn-forge-commons-v0.9.0#subdirectory=packages/rn-forge-commons",
]

A tag exists once its release is cut. The release pages record which tags exist.

Verifying releases shows how to check a file's origin and read its SBOM.