requirements.txt
file¶
The requirements.txt
file is a standard Python requirements file
that declares and pins the Python packages that the charm needs.
Charmcraft doesn’t create this file for the Kubernetes and machine profiles. They use a pyproject.toml file instead.
When a charm is initialized with a 12-factor app profile, Charmcraft creates this file and pre-populates it with Ops. Any dependencies specified here are bundled with the charm when it’s built with charmcraft pack.