reviewboard.extensions.packaging¶
Packaging support for Review Board extensions.
Changed in version 7.1: This has been split into sub-modules: Consumers should update any older
imports for this module to instead import from
reviewboard.extensions.packaging.setuptools_backend
or
reviewboard.extensions.packaging.static_media
.
- class RBStaticMediaBuildContext(*args, **kwargs)[source]¶
Bases:
ClassMovedMixin
,RBStaticMediaBuildContext
Context for performing a static media build for an extension.
This will set up some default NPM workspace paths needed for building Review Board extensions.
Deprecated since version 7.1: This has been moved to
reviewboard.extensions.packaging. setuptools_backend.RBStaticMediaBuildContext
. The legacy import will be removed in Review Board 9.New in version 7.0.
- __annotations__ = {}¶
- class RBStaticMediaBuilder(*args, **kwargs)[source]¶
Bases:
ClassMovedMixin
,RBStaticMediaBuilder
Static media builder for Review Board extensions.
This will take care of building static media files. As part of this, it will set up Babel, Rollup, and TypeScript configuration files needed to compile against Review Board JavaScript/TypeScript modules.
Deprecated since version 7.1: This has been moved to
reviewboard.extensions.packaging. setuptools_backend.RBStaticMediaBuilder
. The legacy import will be removed in Review Board 9.New in version 7.0.
- __annotations__ = {}¶
- class BuildStaticFiles(*args, **kwargs)[source]¶
Bases:
ClassMovedMixin
,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.Deprecated since version 7.1: This has been moved to
reviewboard.extensions.packaging. setuptools_backend.RBStaticMediaBuilder
. The legacy import will be removed in Review Board 9.New in version 7.0.
- __annotations__ = {}¶
- setup(**setup_kwargs)[source]¶
Build an extension package.
Deprecated since version 7.1: This has been moved to
reviewboard.extensions.packaging. setuptools_backend.setup
. The legacy import will be removed in Review Board 9.- Parameters:
**setup_kwargs (
dict
) – Keyword arguments to pass to the main setup method.