@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-20T00:39:28.902Z") @Stability(value=Experimental) public class PythonProject extends GitHubProject
| Modifier and Type | Class and Description |
|---|---|
static class |
PythonProject.Builder
(experimental) A fluent builder for
PythonProject. |
DEFAULT_TASK| Modifier | Constructor and Description |
|---|---|
protected |
PythonProject(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
PythonProject(software.amazon.jsii.JsiiObjectRef objRef) |
|
PythonProject(PythonProjectOptions options) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDependency(String spec)
(experimental) Adds a runtime dependency.
|
void |
addDevDependency(String spec)
(experimental) Adds a dev dependency.
|
IPythonDeps |
getDepsManager()
(experimental) API for managing dependencies.
|
IPythonEnv |
getEnvManager()
(experimental) API for mangaging the Python runtime environment.
|
String |
getModuleName()
(experimental) Python module name (the project name, with any hyphens or periods replaced with underscores).
|
IPythonPackaging |
getPackagingManager()
(experimental) API for managing packaging the project as a library.
|
Pytest |
getPytest()
(experimental) Pytest component.
|
String |
getVersion()
(experimental) Version of the package for distribution (should follow semver).
|
void |
postSynthesize()
(experimental) Called after all components are synthesized.
|
annotateGenerated, getAutoApprove, getDevContainer, getGithub, getGitpod, getProjectType, getVscodeaddExcludeFromCleanup, addGitIgnore, addPackageIgnore, addTask, addTask, addTip, getBuildTask, getCompileTask, getComponents, getDefaultTask, getDeps, getFiles, getGitattributes, getGitignore, getInitProject, getLogger, getName, getOutdir, getPackageTask, getParent, getPostCompileTask, getPreCompileTask, getProjectBuild, getProjenCommand, getRoot, getTasks, getTestTask, preSynthesize, removeTask, runTaskCommand, synth, tryFindFile, tryFindJsonFile, tryFindObjectFilejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected PythonProject(software.amazon.jsii.JsiiObjectRef objRef)
protected PythonProject(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public PythonProject(@NotNull
PythonProjectOptions options)
options - This parameter is required.@Stability(value=Experimental)
public void addDependency(@NotNull
String spec)
spec - Format `@Stability(value=Experimental)
public void addDevDependency(@NotNull
String spec)
spec - Format `@Stability(value=Experimental) public void postSynthesize()
Order is not guaranteed.
postSynthesize in class Project@Stability(value=Experimental) @NotNull public IPythonDeps getDepsManager()
@Stability(value=Experimental) @NotNull public IPythonEnv getEnvManager()
@Stability(value=Experimental) @NotNull public String getModuleName()
@Stability(value=Experimental) @NotNull public String getVersion()
@Stability(value=Experimental) @Nullable public IPythonPackaging getPackagingManager()
Only applies when the projectType is LIB.
@Stability(value=Experimental) @Nullable public Pytest getPytest()
Copyright © 2021. All rights reserved.