reviewboard.extensions.packaging.setuptools_backend¶
Setuptools backend for building Review Board extension packages.
New in version 7.1: This moved from the top-level reviewboard.packaging
.
- class BuildStaticFiles(dist, **kw)[source]¶
Bases:
BuildStaticFiles
Builds static files for the extension.
This will build the static media files used by the extension. JavaScript bundles will be minified and versioned. CSS bundles will be processed through LessCSS (if using
.less
files), minified and versioned.Changed in version 7.1: This moved from
reviewboard.extensions.packaging
.- extension_entrypoint_group: Optional[str] = 'reviewboard.extensions'[source]¶
The packaging entry point group name that extensions register into.
This must be provided by subclasses.
- django_settings_module: Optional[str] = 'reviewboard.settings'[source]¶
The Python module path for the project’s settings.
This must be provided by subclasses.
- static_media_builder_cls[source]¶
alias of
RBStaticMediaBuilder
- static_media_build_context_cls[source]¶
alias of
RBStaticMediaBuildContext
- __annotations__ = {'_builder': 'StaticMediaBuilder', 'django_settings_module': 'Optional[str]', 'extension_entrypoint_group': 'Optional[str]', 'static_media_build_context_cls': 'Optional[type[StaticMediaBuildContext]]', 'static_media_builder_cls': 'Optional[type[StaticMediaBuilder]]'}¶
- setup(**setup_kwargs)[source]¶
Build an extension package.
Changed in version 7.1: This moved from
reviewboard.extensions.packaging
.- Parameters:
**setup_kwargs (
dict
) – Keyword arguments to pass to the main setup method.