@Stability(value=Experimental) public static final class PythonProjectOptions.Builder extends Object implements software.amazon.jsii.Builder<PythonProjectOptions>
PythonProjectOptions| Constructor and Description |
|---|
Builder() |
@Stability(value=Experimental) public PythonProjectOptions.Builder moduleName(String moduleName)
PythonProjectOptions.getModuleName()moduleName - Name of the python package as used in imports and filenames. This parameter is required.
Must only consist of alphanumeric characters and underscores.this@Stability(value=Experimental) public PythonProjectOptions.Builder deps(List<String> deps)
PythonProjectOptions.getDeps()deps - List of runtime dependencies for this project.
Dependencies use the format: <module>@<semver>
Additional dependencies can be added via project.addDependency().
this@Stability(value=Experimental) public PythonProjectOptions.Builder devDeps(List<String> devDeps)
PythonProjectOptions.getDevDeps()devDeps - List of dev dependencies for this project.
Dependencies use the format: <module>@<semver>
Additional dependencies can be added via project.addDevDependency().
this@Stability(value=Experimental) public PythonProjectOptions.Builder pip(Boolean pip)
PythonProjectOptions.getPip()pip - Use pip with a requirements.txt file to track project dependencies.this@Stability(value=Experimental) public PythonProjectOptions.Builder poetry(Boolean poetry)
PythonProjectOptions.getPoetry()poetry - Use poetry to manage your project dependencies, virtual environment, and (optional) packaging/publishing.this@Stability(value=Experimental) public PythonProjectOptions.Builder projenrcPython(Boolean projenrcPython)
PythonProjectOptions.getProjenrcPython()projenrcPython - Use projenrc in python.
This will install projen as a python dependency and will add a synth
task which will run .projenrc.py.this@Stability(value=Experimental) public PythonProjectOptions.Builder projenrcPythonOptions(ProjenrcOptions projenrcPythonOptions)
PythonProjectOptions.getProjenrcPythonOptions()projenrcPythonOptions - Options related to projenrc in python.this@Stability(value=Experimental) public PythonProjectOptions.Builder pytest(Boolean pytest)
PythonProjectOptions.getPytest()pytest - Include pytest tests.this@Stability(value=Experimental) public PythonProjectOptions.Builder pytestOptions(PytestOptions pytestOptions)
PythonProjectOptions.getPytestOptions()pytestOptions - pytest options.this@Stability(value=Experimental) public PythonProjectOptions.Builder sample(Boolean sample)
PythonProjectOptions.getSample()sample - Include sample code and test if the relevant directories don't exist.this@Stability(value=Experimental) public PythonProjectOptions.Builder setuptools(Boolean setuptools)
PythonProjectOptions.getSetuptools()setuptools - Use setuptools with a setup.py script for packaging and publishing.this@Stability(value=Experimental) public PythonProjectOptions.Builder venv(Boolean venv)
PythonProjectOptions.getVenv()venv - Use venv to manage a virtual environment for installing dependencies inside.this@Stability(value=Experimental) public PythonProjectOptions.Builder venvOptions(VenvOptions venvOptions)
PythonProjectOptions.getVenvOptions()venvOptions - Venv options.this@Stability(value=Experimental) public PythonProjectOptions.Builder autoApproveOptions(AutoApproveOptions autoApproveOptions)
GitHubProjectOptions.getAutoApproveOptions()autoApproveOptions - Enable and configure the 'auto approve' workflow.this@Stability(value=Experimental) public PythonProjectOptions.Builder autoMergeOptions(AutoMergeOptions autoMergeOptions)
GitHubProjectOptions.getAutoMergeOptions()autoMergeOptions - Configure options for automatic merging on GitHub.
Has no effect if
github.mergify is set to false.this@Stability(value=Experimental) public PythonProjectOptions.Builder clobber(Boolean clobber)
GitHubProjectOptions.getClobber()clobber - Add a `clobber` task which resets the repo to origin.this@Stability(value=Experimental) public PythonProjectOptions.Builder devContainer(Boolean devContainer)
GitHubProjectOptions.getDevContainer()devContainer - Add a VSCode development environment (used for GitHub Codespaces).this@Stability(value=Experimental) public PythonProjectOptions.Builder github(Boolean github)
GitHubProjectOptions.getGithub()github - Enable GitHub integration.
Enabled by default for root projects. Disabled for non-root projects.this@Stability(value=Experimental) public PythonProjectOptions.Builder githubOptions(GitHubOptions githubOptions)
GitHubProjectOptions.getGithubOptions()githubOptions - Options for GitHub integration.this@Stability(value=Experimental) public PythonProjectOptions.Builder gitpod(Boolean gitpod)
GitHubProjectOptions.getGitpod()gitpod - Add a Gitpod development environment.this@Stability(value=Deprecated) @Deprecated public PythonProjectOptions.Builder mergify(Boolean mergify)
GitHubProjectOptions.getMergify()mergify - Whether mergify should be enabled on this repository or not.this@Stability(value=Deprecated) @Deprecated public PythonProjectOptions.Builder mergifyOptions(MergifyOptions mergifyOptions)
GitHubProjectOptions.getMergifyOptions()mergifyOptions - Options for mergify.this@Stability(value=Deprecated) @Deprecated public PythonProjectOptions.Builder projectType(ProjectType projectType)
GitHubProjectOptions.getProjectType()projectType - Which type of project this is (library/app).this@Stability(value=Experimental) public PythonProjectOptions.Builder readme(SampleReadmeProps readme)
GitHubProjectOptions.getReadme()readme - The README setup.this@Stability(value=Experimental) public PythonProjectOptions.Builder stale(Boolean stale)
GitHubProjectOptions.getStale()stale - Auto-close of stale issues and pull request.
See staleOptions for options.this@Stability(value=Experimental) public PythonProjectOptions.Builder staleOptions(StaleOptions staleOptions)
GitHubProjectOptions.getStaleOptions()staleOptions - Auto-close stale issues and pull requests.
To disable set stale to false.this@Stability(value=Experimental) public PythonProjectOptions.Builder vscode(Boolean vscode)
GitHubProjectOptions.getVscode()vscode - Enable VSCode integration.
Enabled by default for root projects. Disabled for non-root projects.this@Stability(value=Experimental) public PythonProjectOptions.Builder name(String name)
ProjectOptions.getName()name - This is the name of your project. This parameter is required.this@Stability(value=Experimental) public PythonProjectOptions.Builder logging(LoggerOptions logging)
ProjectOptions.getLogging()logging - Configure logging options such as verbosity.this@Stability(value=Experimental) public PythonProjectOptions.Builder outdir(String outdir)
ProjectOptions.getOutdir()outdir - The root directory of the project.
Relative to this directory, all files are synthesized.
If this project has a parent, this directory is relative to the parent directory and it cannot be the same as the parent or any of it's other sub-projects.
this@Stability(value=Experimental) public PythonProjectOptions.Builder parent(Project parent)
ProjectOptions.getParent()parent - The parent project, if this project is part of a bigger project.this@Stability(value=Experimental) public PythonProjectOptions.Builder projenCommand(String projenCommand)
ProjectOptions.getProjenCommand()projenCommand - The shell command to use in order to run the projen CLI.
Can be used to customize in special environments.this@Stability(value=Experimental) public PythonProjectOptions.Builder projenrcJson(Boolean projenrcJson)
ProjectOptions.getProjenrcJson()projenrcJson - Generate (once) .projenrc.json (in JSON). Set to `false` in order to disable .projenrc.json generation.this@Stability(value=Experimental) public PythonProjectOptions.Builder projenrcJsonOptions(ProjenrcOptions projenrcJsonOptions)
ProjectOptions.getProjenrcJsonOptions()projenrcJsonOptions - Options for .projenrc.json.this@Stability(value=Experimental) public PythonProjectOptions.Builder authorEmail(String authorEmail)
PythonPackagingOptions.getAuthorEmail()authorEmail - Author's e-mail. This parameter is required.this@Stability(value=Experimental) public PythonProjectOptions.Builder authorName(String authorName)
PythonPackagingOptions.getAuthorName()authorName - Author's name. This parameter is required.this@Stability(value=Experimental) public PythonProjectOptions.Builder version(String version)
PythonPackagingOptions.getVersion()version - Version of the package. This parameter is required.this@Stability(value=Experimental) public PythonProjectOptions.Builder classifiers(List<String> classifiers)
PythonPackagingOptions.getClassifiers()classifiers - A list of PyPI trove classifiers that describe the project.this@Stability(value=Experimental) public PythonProjectOptions.Builder description(String description)
PythonPackagingOptions.getDescription()description - A short description of the package.this@Stability(value=Experimental) public PythonProjectOptions.Builder homepage(String homepage)
PythonPackagingOptions.getHomepage()homepage - A URL to the website of the project.this@Stability(value=Experimental) public PythonProjectOptions.Builder license(String license)
PythonPackagingOptions.getLicense()license - License of this package as an SPDX identifier.this@Stability(value=Experimental) public PythonProjectOptions.Builder poetryOptions(PoetryPyprojectOptionsWithoutDeps poetryOptions)
PythonPackagingOptions.getPoetryOptions()poetryOptions - Additional options to set for poetry if using poetry.this@Stability(value=Experimental) public PythonProjectOptions.Builder setupConfig(Map<String,? extends Object> setupConfig)
PythonPackagingOptions.getSetupConfig()setupConfig - Additional fields to pass in the setup() function if using setuptools.this@Stability(value=Experimental) public PythonProjectOptions build()
build in interface software.amazon.jsii.Builder<PythonProjectOptions>PythonProjectOptionsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.