Skip to content

Latest commit

 

History

History
34 lines (21 loc) · 864 Bytes

custom.md

File metadata and controls

34 lines (21 loc) · 864 Bytes

Custom builder


This is a custom class in a given Python file that inherits from the BuilderInterface.

Configuration

The builder plugin name is custom.

[tool.hatch.build.targets.custom]

Options

Option Default Description
path hatch_build.py The path of the Python file

Example

from hatchling.builders.plugin.interface import BuilderInterface


class CustomBuilder(BuilderInterface):
    ...

If multiple subclasses are found, you must define a function named get_builder that returns the desired builder.

!!! note Any defined PLUGIN_NAME is ignored and will always be custom.