Package io.github.cdklabs.projen.python
Class PoetryPyprojectOptions.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.python.PoetryPyprojectOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<PoetryPyprojectOptions>
- Enclosing interface:
- PoetryPyprojectOptions
@Stability(Experimental) public static final class PoetryPyprojectOptions.Builder extends Object implements software.amazon.jsii.Builder<PoetryPyprojectOptions>
A builder forPoetryPyprojectOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
dependencies
@Stability(Experimental) public PoetryPyprojectOptions.Builder dependencies(Map<String,? extends Object> dependencies)
Sets the value ofPoetryPyprojectOptions.getDependencies()- Parameters:
dependencies- A list of dependencies for the project. The python version for which your package is compatible is also required.- Returns:
this
-
devDependencies
@Stability(Experimental) public PoetryPyprojectOptions.Builder devDependencies(Map<String,? extends Object> devDependencies)
Sets the value ofPoetryPyprojectOptions.getDevDependencies()- Parameters:
devDependencies- A list of development dependencies for the project.- Returns:
this
-
authors
@Stability(Experimental) public PoetryPyprojectOptions.Builder authors(List<String> authors)
Sets the value ofPoetryPyprojectOptionsWithoutDeps.getAuthors()- Parameters:
authors- The authors of the package. Must be in the form "name" - Returns:
this
-
classifiers
@Stability(Experimental) public PoetryPyprojectOptions.Builder classifiers(List<String> classifiers)
Sets the value ofPoetryPyprojectOptionsWithoutDeps.getClassifiers()- Parameters:
classifiers- A list of PyPI trove classifiers that describe the project.- Returns:
this
-
description
@Stability(Experimental) public PoetryPyprojectOptions.Builder description(String description)
Sets the value ofPoetryPyprojectOptionsWithoutDeps.getDescription()- Parameters:
description- A short description of the package (required).- Returns:
this
-
documentation
@Stability(Experimental) public PoetryPyprojectOptions.Builder documentation(String documentation)
Sets the value ofPoetryPyprojectOptionsWithoutDeps.getDocumentation()- Parameters:
documentation- A URL to the documentation of the project.- Returns:
this
-
exclude
@Stability(Experimental) public PoetryPyprojectOptions.Builder exclude(List<String> exclude)
Sets the value ofPoetryPyprojectOptionsWithoutDeps.getExclude()- Parameters:
exclude- A list of patterns that will be excluded in the final package. If a VCS is being used for a package, the exclude field will be seeded with the VCS’ ignore settings (.gitignore for git for example).- Returns:
this
-
extras
@Stability(Experimental) public PoetryPyprojectOptions.Builder extras(Map<String,? extends List<String>> extras)
Sets the value ofPoetryPyprojectOptionsWithoutDeps.getExtras()- Parameters:
extras- Package extras.- Returns:
this
-
homepage
@Stability(Experimental) public PoetryPyprojectOptions.Builder homepage(String homepage)
Sets the value ofPoetryPyprojectOptionsWithoutDeps.getHomepage()- Parameters:
homepage- A URL to the website of the project.- Returns:
this
-
include
@Stability(Experimental) public PoetryPyprojectOptions.Builder include(List<String> include)
Sets the value ofPoetryPyprojectOptionsWithoutDeps.getInclude()- Parameters:
include- A list of patterns that will be included in the final package.- Returns:
this
-
keywords
@Stability(Experimental) public PoetryPyprojectOptions.Builder keywords(List<String> keywords)
Sets the value ofPoetryPyprojectOptionsWithoutDeps.getKeywords()- Parameters:
keywords- A list of keywords (max: 5) that the package is related to.- Returns:
this
-
license
@Stability(Experimental) public PoetryPyprojectOptions.Builder license(String license)
Sets the value ofPoetryPyprojectOptionsWithoutDeps.getLicense()- Parameters:
license- License of this package as an SPDX identifier. If the project is proprietary and does not use a specific license, you can set this value as "Proprietary".- Returns:
this
-
maintainers
@Stability(Experimental) public PoetryPyprojectOptions.Builder maintainers(List<String> maintainers)
Sets the value ofPoetryPyprojectOptionsWithoutDeps.getMaintainers()- Parameters:
maintainers- the maintainers of the package. Must be in the form "name" - Returns:
this
-
name
@Stability(Experimental) public PoetryPyprojectOptions.Builder name(String name)
Sets the value ofPoetryPyprojectOptionsWithoutDeps.getName()- Parameters:
name- Name of the package (required).- Returns:
this
-
packages
@Stability(Experimental) public PoetryPyprojectOptions.Builder packages(List<? extends Object> packages)
Sets the value ofPoetryPyprojectOptionsWithoutDeps.getPackages()- Parameters:
packages- A list of packages and modules to include in the final distribution.- Returns:
this
-
plugins
@Stability(Experimental) public PoetryPyprojectOptions.Builder plugins(Object plugins)
Sets the value ofPoetryPyprojectOptionsWithoutDeps.getPlugins()- Parameters:
plugins- Plugins. Must be specified as a table.- Returns:
this
-
readme
@Stability(Experimental) public PoetryPyprojectOptions.Builder readme(String readme)
Sets the value ofPoetryPyprojectOptionsWithoutDeps.getReadme()- Parameters:
readme- The name of the readme file of the package.- Returns:
this
-
repository
@Stability(Experimental) public PoetryPyprojectOptions.Builder repository(String repository)
Sets the value ofPoetryPyprojectOptionsWithoutDeps.getRepository()- Parameters:
repository- A URL to the repository of the project.- Returns:
this
-
scripts
@Stability(Experimental) public PoetryPyprojectOptions.Builder scripts(Map<String,? extends Object> scripts)
Sets the value ofPoetryPyprojectOptionsWithoutDeps.getScripts()- Parameters:
scripts- The scripts or executables that will be installed when installing the package.- Returns:
this
-
source
@Stability(Experimental) public PoetryPyprojectOptions.Builder source(List<? extends Object> source)
Sets the value ofPoetryPyprojectOptionsWithoutDeps.getSource()- Parameters:
source- Source registries from which packages are retrieved.- Returns:
this
-
urls
@Stability(Experimental) public PoetryPyprojectOptions.Builder urls(Map<String,String> urls)
Sets the value ofPoetryPyprojectOptionsWithoutDeps.getUrls()- Parameters:
urls- Project custom URLs, in addition to homepage, repository and documentation. E.g. "Bug Tracker"- Returns:
this
-
version
@Stability(Experimental) public PoetryPyprojectOptions.Builder version(String version)
Sets the value ofPoetryPyprojectOptionsWithoutDeps.getVersion()- Parameters:
version- Version of the package (required).- Returns:
this
-
build
@Stability(Experimental) public PoetryPyprojectOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PoetryPyprojectOptions>- Returns:
- a new instance of
PoetryPyprojectOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-