Skip to content

Package Plugin

To register a build plugin, register the pydjinni.packaging entry-point in the plugins pyproject.toml:

[project.entry-points.'pydjinni.packaging']
foo = 'myplugin.foo:FooTarget'

Pydjinni will now automatically load the plugin, once it is installed.

Target

Bases: ABC

key abstractmethod cached property

The name of the package plugin. Will be used as configuration key.

platforms abstractmethod cached property

Dictionary of supported platforms and architectures

after_build(target, architectures)

Implement this method to add additional postprocessing step to the build output that was produced by the configured build system.

package(clean=False)

Parameters:

Name Type Description Default
clean bool

Whether the packaging should be started from scratch

False

Returns: Path to the final package that has been created

package_build() abstractmethod

Implement this method to bundle a package.

publish() abstractmethod

Implement this method to publish the bundled package