macaron.build_spec_generator.reproducible_central package

Submodules

macaron.build_spec_generator.reproducible_central.reproducible_central module

This module contains the logic to generate a build spec in the Reproducible Central format.

class macaron.build_spec_generator.reproducible_central.reproducible_central.ReproducibleCentralBuildTool(value)

Bases: str, Enum

Represent the name of the build tool used in the Reproducible Central’s Buildspec.

https://github.com/jvm-repo-rebuild/reproducible-central/blob/master/doc/BUILDSPEC.md

MAVEN = 'mvn'
GRADLE = 'gradle'
macaron.build_spec_generator.reproducible_central.reproducible_central.gen_reproducible_central_build_spec(build_spec)

Translate the build specification to ensure compatibility with Reproducible Central.

The Reproducible Central Buildspec File Format can be found here: https://github.com/jvm-repo-rebuild/reproducible-central/blob/e1708dd8dde3cdbe66b0cec9948812b601e90ba6/doc/BUILDSPEC.md#format

Parameters:

build_spec (BaseBuildSpecDict) – The base build spec generated for the Maven artifact.

Returns:

The generated build spec content.

Return type:

str

Raises:

GenerateBuildSpecError – Raised if generation of the build spec fails.