Interface PythonProjectOptions
-
- All Superinterfaces:
GitHubProjectOptions,software.amazon.jsii.JsiiSerializable,ProjectOptions,PythonExecutableOptions,PythonPackagingOptions
- All Known Subinterfaces:
AwsCdkPythonAppOptions,Cdk8sPythonOptions
- All Known Implementing Classes:
AwsCdkPythonAppOptions.Jsii$Proxy,Cdk8sPythonOptions.Jsii$Proxy,PythonProjectOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.96.0 (build 921e240)", date="2024-03-28T21:16:43.242Z") @Stability(Experimental) public interface PythonProjectOptions extends software.amazon.jsii.JsiiSerializable, GitHubProjectOptions, PythonPackagingOptions, PythonExecutableOptions
(experimental) Options forPythonProject.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classPythonProjectOptions.BuilderA builder forPythonProjectOptionsstatic classPythonProjectOptions.Jsii$ProxyAn implementation forPythonProjectOptions
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static PythonProjectOptions.Builderbuilder()default List<String>getDeps()(experimental) List of runtime dependencies for this project.default List<String>getDevDeps()(experimental) List of dev dependencies for this project.StringgetModuleName()(experimental) Name of the python package as used in imports and filenames.default BooleangetPip()(experimental) Use pip with a requirements.txt file to track project dependencies.default BooleangetPoetry()(experimental) Use poetry to manage your project dependencies, virtual environment, and (optional) packaging/publishing.default BooleangetProjenrcJs()(experimental) Use projenrc in javascript.default ProjenrcOptionsgetProjenrcJsOptions()(experimental) Options related to projenrc in JavaScript.default BooleangetProjenrcPython()(experimental) Use projenrc in Python.default ProjenrcOptionsgetProjenrcPythonOptions()(experimental) Options related to projenrc in python.default BooleangetProjenrcTs()(experimental) Use projenrc in TypeScript.default ProjenrcTsOptionsgetProjenrcTsOptions()(experimental) Options related to projenrc in TypeScript.default BooleangetPytest()(experimental) Include pytest tests.default PytestOptionsgetPytestOptions()(experimental) pytest options.default BooleangetSample()(experimental) Include sample code and test if the relevant directories don't exist.default BooleangetSetuptools()(experimental) Use setuptools with a setup.py script for packaging and publishing.default BooleangetVenv()(experimental) Use venv to manage a virtual environment for installing dependencies inside.default VenvOptionsgetVenvOptions()(experimental) Venv options.-
Methods inherited from interface io.github.cdklabs.projen.github.GitHubProjectOptions
getAutoApproveOptions, getAutoMerge, getAutoMergeOptions, getClobber, getDevContainer, getGithub, getGithubOptions, getGitpod, getMergify, getMergifyOptions, getProjectType, getProjenCredentials, getProjenTokenSecret, getReadme, getStale, getStaleOptions, getVscode
-
Methods inherited from interface io.github.cdklabs.projen.ProjectOptions
getCommitGenerated, getGitIgnoreOptions, getGitOptions, getLogging, getName, getOutdir, getParent, getProjenCommand, getProjenrcJson, getProjenrcJsonOptions, getRenovatebot, getRenovatebotOptions
-
Methods inherited from interface io.github.cdklabs.projen.python.PythonExecutableOptions
getPythonExec
-
Methods inherited from interface io.github.cdklabs.projen.python.PythonPackagingOptions
getAuthorEmail, getAuthorName, getClassifiers, getDescription, getHomepage, getLicense, getPackageName, getPoetryOptions, getSetupConfig, getVersion
-
-
-
-
Method Detail
-
getModuleName
@Stability(Experimental) @NotNull String getModuleName()
(experimental) Name of the python package as used in imports and filenames.Must only consist of alphanumeric characters and underscores.
Default: $PYTHON_MODULE_NAME
-
getDeps
@Stability(Experimental) @Nullable default List<String> getDeps()
(experimental) List of runtime dependencies for this project.Dependencies use the format:
<module>@<semver>Additional dependencies can be added via
project.addDependency().Default: []
-
getDevDeps
@Stability(Experimental) @Nullable default List<String> getDevDeps()
(experimental) List of dev dependencies for this project.Dependencies use the format:
<module>@<semver>Additional dependencies can be added via
project.addDevDependency().Default: []
-
getPip
@Stability(Experimental) @Nullable default Boolean getPip()
(experimental) Use pip with a requirements.txt file to track project dependencies.Default: - true, unless poetry is true, then false
-
getPoetry
@Stability(Experimental) @Nullable default Boolean getPoetry()
(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
-
getProjenrcJs
@Stability(Experimental) @Nullable default Boolean getProjenrcJs()
(experimental) Use projenrc in javascript.This will install
projenas a JavaScript dependency and add asynthtask which will run.projenrc.js.Default: false
-
getProjenrcJsOptions
@Stability(Experimental) @Nullable default ProjenrcOptions getProjenrcJsOptions()
(experimental) Options related to projenrc in JavaScript.Default: - default options
-
getProjenrcPython
@Stability(Experimental) @Nullable default Boolean getProjenrcPython()
(experimental) Use projenrc in Python.This will install
projenas a Python dependency and add asynthtask which will run.projenrc.py.Default: true
-
getProjenrcPythonOptions
@Stability(Experimental) @Nullable default ProjenrcOptions getProjenrcPythonOptions()
(experimental) Options related to projenrc in python.Default: - default options
-
getProjenrcTs
@Stability(Experimental) @Nullable default Boolean getProjenrcTs()
(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
-
getProjenrcTsOptions
@Stability(Experimental) @Nullable default ProjenrcTsOptions getProjenrcTsOptions()
(experimental) Options related to projenrc in TypeScript.Default: - default options
-
getPytest
@Stability(Experimental) @Nullable default Boolean getPytest()
(experimental) Include pytest tests.Default: true
-
getPytestOptions
@Stability(Experimental) @Nullable default PytestOptions getPytestOptions()
(experimental) pytest options.Default: - defaults
-
getSample
@Stability(Experimental) @Nullable default Boolean getSample()
(experimental) Include sample code and test if the relevant directories don't exist.Default: true
-
getSetuptools
@Stability(Experimental) @Nullable default Boolean getSetuptools()
(experimental) Use setuptools with a setup.py script for packaging and publishing.Default: - true, unless poetry is true, then false
-
getVenv
@Stability(Experimental) @Nullable default Boolean getVenv()
(experimental) Use venv to manage a virtual environment for installing dependencies inside.Default: - true, unless poetry is true, then false
-
getVenvOptions
@Stability(Experimental) @Nullable default VenvOptions getVenvOptions()
(experimental) Venv options.Default: - defaults
-
builder
@Stability(Experimental) static PythonProjectOptions.Builder builder()
- Returns:
- a
PythonProjectOptions.BuilderofPythonProjectOptions
-
-