Package io.github.cdklabs.projen.python
Class Setuptools.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.python.Setuptools.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<Setuptools>
- Enclosing class:
- Setuptools
@Stability(Experimental) public static final class Setuptools.Builder extends Object implements software.amazon.jsii.Builder<Setuptools>
(experimental) A fluent builder forSetuptools.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Setuptools.BuilderauthorEmail(String authorEmail)(experimental) Author's e-mail.Setuptools.BuilderauthorName(String authorName)(experimental) Author's name.Setuptoolsbuild()Setuptools.Builderclassifiers(List<String> classifiers)(experimental) A list of PyPI trove classifiers that describe the project.static Setuptools.Buildercreate(Project project)Setuptools.Builderdescription(String description)(experimental) A short description of the package.Setuptools.Builderhomepage(String homepage)(experimental) A URL to the website of the project.Setuptools.Builderlicense(String license)(experimental) License of this package as an SPDX identifier.Setuptools.BuilderpackageName(String packageName)(experimental) Package name.Setuptools.BuilderpoetryOptions(PoetryPyprojectOptionsWithoutDeps poetryOptions)(experimental) Additional options to set for poetry if using poetry.Setuptools.BuilderpythonExec(String pythonExec)(experimental) Path to the python executable to use.Setuptools.BuildersetupConfig(Map<String,? extends Object> setupConfig)(experimental) Additional fields to pass in the setup() function if using setuptools.Setuptools.Builderversion(String version)(experimental) Version of the package.
-
-
-
Method Detail
-
create
@Stability(Experimental) public static Setuptools.Builder create(Project project)
- Parameters:
project- This parameter is required.- Returns:
- a new instance of
Setuptools.Builder.
-
authorEmail
@Stability(Experimental) public Setuptools.Builder authorEmail(String authorEmail)
(experimental) Author's e-mail.Default: $GIT_USER_EMAIL
- Parameters:
authorEmail- Author's e-mail. This parameter is required.- Returns:
this
-
authorName
@Stability(Experimental) public Setuptools.Builder authorName(String authorName)
(experimental) Author's name.Default: $GIT_USER_NAME
- Parameters:
authorName- Author's name. This parameter is required.- Returns:
this
-
version
@Stability(Experimental) public Setuptools.Builder version(String version)
(experimental) Version of the package.Default: "0.1.0"
- Parameters:
version- Version of the package. This parameter is required.- Returns:
this
-
classifiers
@Stability(Experimental) public Setuptools.Builder classifiers(List<String> classifiers)
(experimental) A list of PyPI trove classifiers that describe the project.- Parameters:
classifiers- A list of PyPI trove classifiers that describe the project. This parameter is required.- Returns:
this- See Also:
- https://pypi.org/classifiers/
-
description
@Stability(Experimental) public Setuptools.Builder description(String description)
(experimental) A short description of the package.- Parameters:
description- A short description of the package. This parameter is required.- Returns:
this
-
homepage
@Stability(Experimental) public Setuptools.Builder homepage(String homepage)
(experimental) A URL to the website of the project.- Parameters:
homepage- A URL to the website of the project. This parameter is required.- Returns:
this
-
license
@Stability(Experimental) public Setuptools.Builder license(String license)
(experimental) License of this package as an SPDX identifier.- Parameters:
license- License of this package as an SPDX identifier. This parameter is required.- Returns:
this
-
packageName
@Stability(Experimental) public Setuptools.Builder packageName(String packageName)
(experimental) Package name.- Parameters:
packageName- Package name. This parameter is required.- Returns:
this
-
poetryOptions
@Stability(Experimental) public Setuptools.Builder poetryOptions(PoetryPyprojectOptionsWithoutDeps poetryOptions)
(experimental) Additional options to set for poetry if using poetry.- Parameters:
poetryOptions- Additional options to set for poetry if using poetry. This parameter is required.- Returns:
this
-
setupConfig
@Stability(Experimental) public Setuptools.Builder setupConfig(Map<String,? extends Object> setupConfig)
(experimental) Additional fields to pass in the setup() function if using setuptools.- Parameters:
setupConfig- Additional fields to pass in the setup() function if using setuptools. This parameter is required.- Returns:
this
-
pythonExec
@Stability(Experimental) public Setuptools.Builder pythonExec(String pythonExec)
(experimental) Path to the python executable to use.Default: "python"
- Parameters:
pythonExec- Path to the python executable to use. This parameter is required.- Returns:
this
-
build
@Stability(Experimental) public Setuptools build()
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<Setuptools>- Returns:
- a newly built instance of
Setuptools.
-
-