The Paketo Buildpack for Python Packagers is a Cloud Native Buildpack that installs packages using the adequate tool selected based on the content of the application sources and makes it available to it.
The buildpack is published for consumption at
gcr.io/paketo-buildpacks/python-packagers
and
paketobuildpacks/python-packagers
.
This buildpack participates if one of the following detection succeeds:
is present in the root folder.
The buildpack will do the following:
- At build time:
- Installs the application packages to a layer made available to the app.
- At run time:
- Does nothing
To package this buildpack for consumption:
$ ./scripts/package.sh --version x.x.x
This will create a buildpackage.cnb
file under the build directory which you
can use to build your app as follows: pack build <app-name> -p <path-to-app> -b <cpython buildpack> -b <pip buildpack> -b build/buildpackage.cnb -b <other-buildpacks..>
.
To run the unit and integration tests for this buildpack:
$ ./scripts/unit.sh && ./scripts/integration.sh