Package io.github.cdklabs.projen.release
Class PyPiPublishOptions.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.release.PyPiPublishOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<PyPiPublishOptions>
- Enclosing interface:
- PyPiPublishOptions
@Stability(Experimental) public static final class PyPiPublishOptions.Builder extends Object implements software.amazon.jsii.Builder<PyPiPublishOptions>
A builder forPyPiPublishOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PyPiPublishOptionsbuild()Builds the configured instance.PyPiPublishOptions.BuilderpostPublishSteps(List<? extends JobStep> postPublishSteps)Sets the value ofCommonPublishOptions.getPostPublishSteps()PyPiPublishOptions.BuilderprePublishSteps(List<? extends JobStep> prePublishSteps)Sets the value ofCommonPublishOptions.getPrePublishSteps()PyPiPublishOptions.BuilderpublishTools(Tools publishTools)Sets the value ofCommonPublishOptions.getPublishTools()PyPiPublishOptions.BuildertwinePasswordSecret(String twinePasswordSecret)Sets the value ofPyPiPublishOptions.getTwinePasswordSecret()PyPiPublishOptions.BuildertwineRegistryUrl(String twineRegistryUrl)Sets the value ofPyPiPublishOptions.getTwineRegistryUrl()PyPiPublishOptions.BuildertwineUsernameSecret(String twineUsernameSecret)Sets the value ofPyPiPublishOptions.getTwineUsernameSecret()
-
-
-
Method Detail
-
twinePasswordSecret
@Stability(Experimental) public PyPiPublishOptions.Builder twinePasswordSecret(String twinePasswordSecret)
Sets the value ofPyPiPublishOptions.getTwinePasswordSecret()- Parameters:
twinePasswordSecret- The GitHub secret which contains PyPI password.- Returns:
this
-
twineRegistryUrl
@Stability(Experimental) public PyPiPublishOptions.Builder twineRegistryUrl(String twineRegistryUrl)
Sets the value ofPyPiPublishOptions.getTwineRegistryUrl()- Parameters:
twineRegistryUrl- The registry url to use when releasing packages.- Returns:
this
-
twineUsernameSecret
@Stability(Experimental) public PyPiPublishOptions.Builder twineUsernameSecret(String twineUsernameSecret)
Sets the value ofPyPiPublishOptions.getTwineUsernameSecret()- Parameters:
twineUsernameSecret- The GitHub secret which contains PyPI user name.- Returns:
this
-
postPublishSteps
@Stability(Experimental) public PyPiPublishOptions.Builder postPublishSteps(List<? extends JobStep> postPublishSteps)
Sets the value ofCommonPublishOptions.getPostPublishSteps()- Parameters:
postPublishSteps- Steps to execute after executing the publishing command. These can be used to add/update the release artifacts ot any other tasks needed.Note that when using this in
publishToGitHubReleasesthis will override steps added viaaddGitHubPostPublishingSteps.- Returns:
this
-
prePublishSteps
@Stability(Experimental) public PyPiPublishOptions.Builder prePublishSteps(List<? extends JobStep> prePublishSteps)
Sets the value ofCommonPublishOptions.getPrePublishSteps()- Parameters:
prePublishSteps- Steps to execute before executing the publishing command. These can be used to prepare the artifact for publishing if neede. These steps are executed afterdist/has been populated with the build output.Note that when using this in
publishToGitHubReleasesthis will override steps added viaaddGitHubPrePublishingSteps.- Returns:
this
-
publishTools
@Stability(Experimental) public PyPiPublishOptions.Builder publishTools(Tools publishTools)
Sets the value ofCommonPublishOptions.getPublishTools()- Parameters:
publishTools- Additional tools to install in the publishing job.- Returns:
this
-
build
@Stability(Experimental) public PyPiPublishOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PyPiPublishOptions>- Returns:
- a new instance of
PyPiPublishOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-