Class PythonProjectOptions.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- io.github.cdklabs.projen.python.PythonProjectOptions.Jsii$Proxy
-
- All Implemented Interfaces:
GitHubProjectOptions,ProjectOptions,PythonExecutableOptions,PythonPackagingOptions,PythonProjectOptions,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- PythonProjectOptions
@Stability(Experimental) @Internal public static final class PythonProjectOptions.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements PythonProjectOptions
An implementation forPythonProjectOptions
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface io.github.cdklabs.projen.python.PythonProjectOptions
PythonProjectOptions.Builder, PythonProjectOptions.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsii$Proxy(PythonProjectOptions.Builder builder)Constructor that initializes the object based on literal property values passed by thePythonProjectOptions.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)Constructor that initializes the object based on values retrieved from the JsiiObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode$jsii$toJson()booleanequals(Object o)StringgetAuthorEmail()(experimental) Author's e-mail.StringgetAuthorName()(experimental) Author's name.AutoApproveOptionsgetAutoApproveOptions()(experimental) Enable and configure the 'auto approve' workflow.BooleangetAutoMerge()(experimental) Enable automatic merging on GitHub.AutoMergeOptionsgetAutoMergeOptions()(experimental) Configure options for automatic merging on GitHub.List<String>getClassifiers()(experimental) A list of PyPI trove classifiers that describe the project.BooleangetClobber()(experimental) Add aclobbertask which resets the repo to origin.BooleangetCommitGenerated()(experimental) Whether to commit the managed files by default.List<String>getDeps()(experimental) List of runtime dependencies for this project.StringgetDescription()(experimental) A short description of the package.BooleangetDevContainer()(experimental) Add a VSCode development environment (used for GitHub Codespaces).List<String>getDevDeps()(experimental) List of dev dependencies for this project.BooleangetGithub()(experimental) Enable GitHub integration.GitHubOptionsgetGithubOptions()(experimental) Options for GitHub integration.IgnoreFileOptionsgetGitIgnoreOptions()(experimental) Configuration options for .gitignore file.GitOptionsgetGitOptions()(experimental) Configuration options for git.BooleangetGitpod()(experimental) Add a Gitpod development environment.StringgetHomepage()(experimental) A URL to the website of the project.StringgetLicense()(experimental) License of this package as an SPDX identifier.LoggerOptionsgetLogging()(experimental) Configure logging options such as verbosity.BooleangetMergify()(deprecated) Whether mergify should be enabled on this repository or not.MergifyOptionsgetMergifyOptions()(deprecated) Options for mergify.StringgetModuleName()(experimental) Name of the python package as used in imports and filenames.StringgetName()(experimental) This is the name of your project.StringgetOutdir()(experimental) The root directory of the project.StringgetPackageName()(experimental) Package name.ProjectgetParent()(experimental) The parent project, if this project is part of a bigger project.BooleangetPip()(experimental) Use pip with a requirements.txt file to track project dependencies.BooleangetPoetry()(experimental) Use poetry to manage your project dependencies, virtual environment, and (optional) packaging/publishing.PoetryPyprojectOptionsWithoutDepsgetPoetryOptions()(experimental) Additional options to set for poetry if using poetry.ProjectTypegetProjectType()(deprecated) Which type of project this is (library/app).StringgetProjenCommand()(experimental) The shell command to use in order to run the projen CLI.GithubCredentialsgetProjenCredentials()(experimental) Choose a method of providing GitHub API access for projen workflows.BooleangetProjenrcJs()(experimental) Use projenrc in javascript.BooleangetProjenrcJson()(experimental) Generate (once) .projenrc.json (in JSON).ProjenrcJsonOptionsgetProjenrcJsonOptions()(experimental) Options for .projenrc.json.ProjenrcOptionsgetProjenrcJsOptions()(experimental) Options related to projenrc in JavaScript.BooleangetProjenrcPython()(experimental) Use projenrc in Python.ProjenrcOptionsgetProjenrcPythonOptions()(experimental) Options related to projenrc in python.BooleangetProjenrcTs()(experimental) Use projenrc in TypeScript.ProjenrcTsOptionsgetProjenrcTsOptions()(experimental) Options related to projenrc in TypeScript.StringgetProjenTokenSecret()(deprecated) The name of a secret which includes a GitHub Personal Access Token to be used by projen workflows.BooleangetPytest()(experimental) Include pytest tests.PytestOptionsgetPytestOptions()(experimental) pytest options.StringgetPythonExec()(experimental) Path to the python executable to use.SampleReadmePropsgetReadme()(experimental) The README setup.BooleangetRenovatebot()(experimental) Use renovatebot to handle dependency upgrades.RenovatebotOptionsgetRenovatebotOptions()(experimental) Options for renovatebot.BooleangetSample()(experimental) Include sample code and test if the relevant directories don't exist.Map<String,Object>getSetupConfig()(experimental) Additional fields to pass in the setup() function if using setuptools.BooleangetSetuptools()(experimental) Use setuptools with a setup.py script for packaging and publishing.BooleangetStale()(experimental) Auto-close of stale issues and pull request.StaleOptionsgetStaleOptions()(experimental) Auto-close stale issues and pull requests.BooleangetVenv()(experimental) Use venv to manage a virtual environment for installing dependencies inside.VenvOptionsgetVenvOptions()(experimental) Venv options.StringgetVersion()(experimental) Version of the package.BooleangetVscode()(experimental) Enable VSCode integration.inthashCode()
-
-
-
Constructor Detail
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
protected Jsii$Proxy(PythonProjectOptions.Builder builder)
Constructor that initializes the object based on literal property values passed by thePythonProjectOptions.Builder.
-
-
Method Detail
-
getModuleName
public final String getModuleName()
Description copied from interface:PythonProjectOptions(experimental) Name of the python package as used in imports and filenames.Must only consist of alphanumeric characters and underscores.
Default: $PYTHON_MODULE_NAME
- Specified by:
getModuleNamein interfacePythonProjectOptions
-
getDeps
public final List<String> getDeps()
Description copied from interface:PythonProjectOptions(experimental) List of runtime dependencies for this project.Dependencies use the format:
<module>@<semver>Additional dependencies can be added via
project.addDependency().Default: []
- Specified by:
getDepsin interfacePythonProjectOptions
-
getDevDeps
public final List<String> getDevDeps()
Description copied from interface:PythonProjectOptions(experimental) List of dev dependencies for this project.Dependencies use the format:
<module>@<semver>Additional dependencies can be added via
project.addDevDependency().Default: []
- Specified by:
getDevDepsin interfacePythonProjectOptions
-
getPip
public final Boolean getPip()
Description copied from interface:PythonProjectOptions(experimental) Use pip with a requirements.txt file to track project dependencies.Default: - true, unless poetry is true, then false
- Specified by:
getPipin interfacePythonProjectOptions
-
getPoetry
public final Boolean getPoetry()
Description copied from interface:PythonProjectOptions(experimental) Use poetry to manage your project dependencies, virtual environment, and (optional) packaging/publishing.This feature is incompatible with pip, setuptools, or venv. If you set this option to
true, then pip, setuptools, and venv must be set tofalse.Default: false
- Specified by:
getPoetryin interfacePythonProjectOptions
-
getProjenrcJs
public final Boolean getProjenrcJs()
Description copied from interface:PythonProjectOptions(experimental) Use projenrc in javascript.This will install
projenas a JavaScript dependency and add asynthtask which will run.projenrc.js.Default: false
- Specified by:
getProjenrcJsin interfacePythonProjectOptions
-
getProjenrcJsOptions
public final ProjenrcOptions getProjenrcJsOptions()
Description copied from interface:PythonProjectOptions(experimental) Options related to projenrc in JavaScript.Default: - default options
- Specified by:
getProjenrcJsOptionsin interfacePythonProjectOptions
-
getProjenrcPython
public final Boolean getProjenrcPython()
Description copied from interface:PythonProjectOptions(experimental) Use projenrc in Python.This will install
projenas a Python dependency and add asynthtask which will run.projenrc.py.Default: true
- Specified by:
getProjenrcPythonin interfacePythonProjectOptions
-
getProjenrcPythonOptions
public final ProjenrcOptions getProjenrcPythonOptions()
Description copied from interface:PythonProjectOptions(experimental) Options related to projenrc in python.Default: - default options
- Specified by:
getProjenrcPythonOptionsin interfacePythonProjectOptions
-
getProjenrcTs
public final Boolean getProjenrcTs()
Description copied from interface:PythonProjectOptions(experimental) Use projenrc in TypeScript.This will create a tsconfig file (default:
tsconfig.projen.json) and usets-nodein the default task to parse the project source files.Default: false
- Specified by:
getProjenrcTsin interfacePythonProjectOptions
-
getProjenrcTsOptions
public final ProjenrcTsOptions getProjenrcTsOptions()
Description copied from interface:PythonProjectOptions(experimental) Options related to projenrc in TypeScript.Default: - default options
- Specified by:
getProjenrcTsOptionsin interfacePythonProjectOptions
-
getPytest
public final Boolean getPytest()
Description copied from interface:PythonProjectOptions(experimental) Include pytest tests.Default: true
- Specified by:
getPytestin interfacePythonProjectOptions
-
getPytestOptions
public final PytestOptions getPytestOptions()
Description copied from interface:PythonProjectOptions(experimental) pytest options.Default: - defaults
- Specified by:
getPytestOptionsin interfacePythonProjectOptions
-
getSample
public final Boolean getSample()
Description copied from interface:PythonProjectOptions(experimental) Include sample code and test if the relevant directories don't exist.Default: true
- Specified by:
getSamplein interfacePythonProjectOptions
-
getSetuptools
public final Boolean getSetuptools()
Description copied from interface:PythonProjectOptions(experimental) Use setuptools with a setup.py script for packaging and publishing.Default: - true, unless poetry is true, then false
- Specified by:
getSetuptoolsin interfacePythonProjectOptions
-
getVenv
public final Boolean getVenv()
Description copied from interface:PythonProjectOptions(experimental) Use venv to manage a virtual environment for installing dependencies inside.Default: - true, unless poetry is true, then false
- Specified by:
getVenvin interfacePythonProjectOptions
-
getVenvOptions
public final VenvOptions getVenvOptions()
Description copied from interface:PythonProjectOptions(experimental) Venv options.Default: - defaults
- Specified by:
getVenvOptionsin interfacePythonProjectOptions
-
getAutoApproveOptions
public final AutoApproveOptions getAutoApproveOptions()
Description copied from interface:GitHubProjectOptions(experimental) Enable and configure the 'auto approve' workflow.Default: - auto approve is disabled
- Specified by:
getAutoApproveOptionsin interfaceGitHubProjectOptions
-
getAutoMerge
public final Boolean getAutoMerge()
Description copied from interface:GitHubProjectOptions(experimental) Enable automatic merging on GitHub.Has no effect if
github.mergifyis set to false.Default: true
- Specified by:
getAutoMergein interfaceGitHubProjectOptions
-
getAutoMergeOptions
public final AutoMergeOptions getAutoMergeOptions()
Description copied from interface:GitHubProjectOptions(experimental) Configure options for automatic merging on GitHub.Has no effect if
github.mergifyorautoMergeis set to false.Default: - see defaults in `AutoMergeOptions`
- Specified by:
getAutoMergeOptionsin interfaceGitHubProjectOptions
-
getClobber
public final Boolean getClobber()
Description copied from interface:GitHubProjectOptions(experimental) Add aclobbertask which resets the repo to origin.Default: - true, but false for subprojects
- Specified by:
getClobberin interfaceGitHubProjectOptions
-
getDevContainer
public final Boolean getDevContainer()
Description copied from interface:GitHubProjectOptions(experimental) Add a VSCode development environment (used for GitHub Codespaces).Default: false
- Specified by:
getDevContainerin interfaceGitHubProjectOptions
-
getGithub
public final Boolean getGithub()
Description copied from interface:GitHubProjectOptions(experimental) Enable GitHub integration.Enabled by default for root projects. Disabled for non-root projects.
Default: true
- Specified by:
getGithubin interfaceGitHubProjectOptions
-
getGithubOptions
public final GitHubOptions getGithubOptions()
Description copied from interface:GitHubProjectOptions(experimental) Options for GitHub integration.Default: - see GitHubOptions
- Specified by:
getGithubOptionsin interfaceGitHubProjectOptions
-
getGitpod
public final Boolean getGitpod()
Description copied from interface:GitHubProjectOptions(experimental) Add a Gitpod development environment.Default: false
- Specified by:
getGitpodin interfaceGitHubProjectOptions
-
getMergify
public final Boolean getMergify()
Description copied from interface:GitHubProjectOptions(deprecated) Whether mergify should be enabled on this repository or not.Default: true
- Specified by:
getMergifyin interfaceGitHubProjectOptions
-
getMergifyOptions
public final MergifyOptions getMergifyOptions()
Description copied from interface:GitHubProjectOptions(deprecated) Options for mergify.Default: - default options
- Specified by:
getMergifyOptionsin interfaceGitHubProjectOptions
-
getProjectType
public final ProjectType getProjectType()
Description copied from interface:GitHubProjectOptions(deprecated) Which type of project this is (library/app).Default: ProjectType.UNKNOWN
- Specified by:
getProjectTypein interfaceGitHubProjectOptions
-
getProjenCredentials
public final GithubCredentials getProjenCredentials()
Description copied from interface:GitHubProjectOptions(experimental) Choose a method of providing GitHub API access for projen workflows.Default: - use a personal access token named PROJEN_GITHUB_TOKEN
- Specified by:
getProjenCredentialsin interfaceGitHubProjectOptions
-
getProjenTokenSecret
public final String getProjenTokenSecret()
Description copied from interface:GitHubProjectOptions(deprecated) The name of a secret which includes a GitHub Personal Access Token to be used by projen workflows.This token needs to have the
repo,workflowsandpackagesscope.Default: "PROJEN_GITHUB_TOKEN"
- Specified by:
getProjenTokenSecretin interfaceGitHubProjectOptions
-
getReadme
public final SampleReadmeProps getReadme()
Description copied from interface:GitHubProjectOptions(experimental) The README setup.Default: - { filename: 'README.md', contents: '# replace this' }
Example:
"{ filename: 'readme.md', contents: '# title' }"- Specified by:
getReadmein interfaceGitHubProjectOptions
-
getStale
public final Boolean getStale()
Description copied from interface:GitHubProjectOptions(experimental) Auto-close of stale issues and pull request.See
staleOptionsfor options.Default: false
- Specified by:
getStalein interfaceGitHubProjectOptions
-
getStaleOptions
public final StaleOptions getStaleOptions()
Description copied from interface:GitHubProjectOptions(experimental) Auto-close stale issues and pull requests.To disable set
staletofalse.Default: - see defaults in `StaleOptions`
- Specified by:
getStaleOptionsin interfaceGitHubProjectOptions
-
getVscode
public final Boolean getVscode()
Description copied from interface:GitHubProjectOptions(experimental) Enable VSCode integration.Enabled by default for root projects. Disabled for non-root projects.
Default: true
- Specified by:
getVscodein interfaceGitHubProjectOptions
-
getName
public final String getName()
Description copied from interface:ProjectOptions(experimental) This is the name of your project.Default: $BASEDIR
- Specified by:
getNamein interfaceProjectOptions
-
getCommitGenerated
public final Boolean getCommitGenerated()
Description copied from interface:ProjectOptions(experimental) Whether to commit the managed files by default.Default: true
- Specified by:
getCommitGeneratedin interfaceProjectOptions
-
getGitIgnoreOptions
public final IgnoreFileOptions getGitIgnoreOptions()
Description copied from interface:ProjectOptions(experimental) Configuration options for .gitignore file.- Specified by:
getGitIgnoreOptionsin interfaceProjectOptions
-
getGitOptions
public final GitOptions getGitOptions()
Description copied from interface:ProjectOptions(experimental) Configuration options for git.- Specified by:
getGitOptionsin interfaceProjectOptions
-
getLogging
public final LoggerOptions getLogging()
Description copied from interface:ProjectOptions(experimental) Configure logging options such as verbosity.Default: {}
- Specified by:
getLoggingin interfaceProjectOptions
-
getOutdir
public final String getOutdir()
Description copied from interface:ProjectOptions(experimental) 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 subprojects.
Default: "."
- Specified by:
getOutdirin interfaceProjectOptions
-
getParent
public final Project getParent()
Description copied from interface:ProjectOptions(experimental) The parent project, if this project is part of a bigger project.- Specified by:
getParentin interfaceProjectOptions
-
getProjenCommand
public final String getProjenCommand()
Description copied from interface:ProjectOptions(experimental) The shell command to use in order to run the projen CLI.Can be used to customize in special environments.
Default: "npx projen"
- Specified by:
getProjenCommandin interfaceProjectOptions
-
getProjenrcJson
public final Boolean getProjenrcJson()
Description copied from interface:ProjectOptions(experimental) Generate (once) .projenrc.json (in JSON). Set tofalsein order to disable .projenrc.json generation.Default: false
- Specified by:
getProjenrcJsonin interfaceProjectOptions
-
getProjenrcJsonOptions
public final ProjenrcJsonOptions getProjenrcJsonOptions()
Description copied from interface:ProjectOptions(experimental) Options for .projenrc.json.Default: - default options
- Specified by:
getProjenrcJsonOptionsin interfaceProjectOptions
-
getRenovatebot
public final Boolean getRenovatebot()
Description copied from interface:ProjectOptions(experimental) Use renovatebot to handle dependency upgrades.Default: false
- Specified by:
getRenovatebotin interfaceProjectOptions
-
getRenovatebotOptions
public final RenovatebotOptions getRenovatebotOptions()
Description copied from interface:ProjectOptions(experimental) Options for renovatebot.Default: - default options
- Specified by:
getRenovatebotOptionsin interfaceProjectOptions
-
getAuthorEmail
public final String getAuthorEmail()
Description copied from interface:PythonPackagingOptions(experimental) Author's e-mail.Default: $GIT_USER_EMAIL
- Specified by:
getAuthorEmailin interfacePythonPackagingOptions
-
getAuthorName
public final String getAuthorName()
Description copied from interface:PythonPackagingOptions(experimental) Author's name.Default: $GIT_USER_NAME
- Specified by:
getAuthorNamein interfacePythonPackagingOptions
-
getVersion
public final String getVersion()
Description copied from interface:PythonPackagingOptions(experimental) Version of the package.Default: "0.1.0"
- Specified by:
getVersionin interfacePythonPackagingOptions
-
getClassifiers
public final List<String> getClassifiers()
Description copied from interface:PythonPackagingOptions(experimental) A list of PyPI trove classifiers that describe the project.- Specified by:
getClassifiersin interfacePythonPackagingOptions- See Also:
- https://pypi.org/classifiers/
-
getDescription
public final String getDescription()
Description copied from interface:PythonPackagingOptions(experimental) A short description of the package.- Specified by:
getDescriptionin interfacePythonPackagingOptions
-
getHomepage
public final String getHomepage()
Description copied from interface:PythonPackagingOptions(experimental) A URL to the website of the project.- Specified by:
getHomepagein interfacePythonPackagingOptions
-
getLicense
public final String getLicense()
Description copied from interface:PythonPackagingOptions(experimental) License of this package as an SPDX identifier.- Specified by:
getLicensein interfacePythonPackagingOptions
-
getPackageName
public final String getPackageName()
Description copied from interface:PythonPackagingOptions(experimental) Package name.- Specified by:
getPackageNamein interfacePythonPackagingOptions
-
getPoetryOptions
public final PoetryPyprojectOptionsWithoutDeps getPoetryOptions()
Description copied from interface:PythonPackagingOptions(experimental) Additional options to set for poetry if using poetry.- Specified by:
getPoetryOptionsin interfacePythonPackagingOptions
-
getSetupConfig
public final Map<String,Object> getSetupConfig()
Description copied from interface:PythonPackagingOptions(experimental) Additional fields to pass in the setup() function if using setuptools.- Specified by:
getSetupConfigin interfacePythonPackagingOptions
-
getPythonExec
public final String getPythonExec()
Description copied from interface:PythonExecutableOptions(experimental) Path to the python executable to use.Default: "python"
- Specified by:
getPythonExecin interfacePythonExecutableOptions
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
-