reviewboard.extensions.packaging.backend
Build backend for Review Board extension packages.
-
build_sdist(sdist_directory: str, config_settings: Optional[dict] = None) → str[source]
Build a source distribution.
This will prepare a setup.py to run our extension-building logic, and
then build the distribution.
- Parameters:
sdist_directory (str
) – The directory where the source distribution will be placed.
config_settings (dict
, optional) – Configuration settings to pass to Setuptools.
- Returns:
The basename for the generated source distribution file.
- Return type:
str
-
build_wheel(wheel_directory: str, config_settings: Optional[dict] = None, metadata_directory: Optional[str] = None) → str[source]
Build a wheel.
This will prepare a setup.py to run our extension-building logic, and
then build the distribution.
- Parameters:
wheel_directory (str
) – The directory where the wheel will be placed.
config_settings (dict
, optional) – Configuration settings to pass to Setuptools.
- Returns:
The basename for the generated wheel file.
- Return type:
str