projen 0.71.13 → 0.71.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +3 -3
- package/lib/awscdk/auto-discover.js +5 -5
- package/lib/awscdk/awscdk-app-java.js +1 -1
- package/lib/awscdk/awscdk-app-py.js +1 -1
- package/lib/awscdk/awscdk-app-ts.js +1 -1
- package/lib/awscdk/awscdk-construct.js +2 -2
- package/lib/awscdk/awscdk-deps-java.js +1 -1
- package/lib/awscdk/awscdk-deps-js.js +1 -1
- package/lib/awscdk/awscdk-deps-py.js +1 -1
- package/lib/awscdk/awscdk-deps.js +1 -1
- package/lib/awscdk/cdk-config.js +1 -1
- package/lib/awscdk/cdk-tasks.js +1 -1
- package/lib/awscdk/integration-test.js +1 -1
- package/lib/awscdk/lambda-extension.js +1 -1
- package/lib/awscdk/lambda-function.js +2 -2
- package/lib/build/build-workflow.js +1 -1
- package/lib/cdk/auto-discover-base.js +2 -2
- package/lib/cdk/construct-lib.js +1 -1
- package/lib/cdk/integration-test-base.js +1 -1
- package/lib/cdk/jsii-docgen.js +1 -1
- package/lib/cdk/jsii-project.js +1 -1
- package/lib/cdk8s/auto-discover.js +2 -2
- package/lib/cdk8s/cdk8s-app-py.js +1 -1
- package/lib/cdk8s/cdk8s-app-ts.js +1 -1
- package/lib/cdk8s/cdk8s-construct.js +1 -1
- package/lib/cdk8s/cdk8s-deps-py.js +1 -1
- package/lib/cdk8s/cdk8s-deps.js +1 -1
- package/lib/cdk8s/integration-test.js +1 -1
- package/lib/cdktf/cdktf-construct.js +1 -1
- package/lib/circleci/circleci.js +1 -1
- package/lib/component.js +1 -1
- package/lib/dependencies.js +1 -1
- package/lib/dev-env.js +1 -1
- package/lib/docker-compose/docker-compose-service.js +1 -1
- package/lib/docker-compose/docker-compose.js +1 -1
- package/lib/file.js +1 -1
- package/lib/gitattributes.js +1 -1
- package/lib/github/actions-provider.js +1 -1
- package/lib/github/auto-approve.js +1 -1
- package/lib/github/auto-merge.js +1 -1
- package/lib/github/dependabot.js +1 -1
- package/lib/github/github-credentials.js +1 -1
- package/lib/github/github-project.js +1 -1
- package/lib/github/github.js +1 -1
- package/lib/github/mergify.js +1 -1
- package/lib/github/pr-template.js +1 -1
- package/lib/github/pull-request-lint.js +1 -1
- package/lib/github/stale.js +1 -1
- package/lib/github/task-workflow.js +1 -1
- package/lib/github/workflow-actions.js +1 -1
- package/lib/github/workflow-jobs.js +1 -1
- package/lib/github/workflows.js +1 -1
- package/lib/gitlab/configuration.js +1 -1
- package/lib/gitlab/gitlab-configuration.js +1 -1
- package/lib/gitlab/nested-configuration.js +1 -1
- package/lib/gitpod.js +1 -1
- package/lib/ignore-file.js +1 -1
- package/lib/ini.js +1 -1
- package/lib/java/java-project.js +1 -1
- package/lib/java/junit.js +1 -1
- package/lib/java/maven-compile.js +1 -1
- package/lib/java/maven-packaging.js +1 -1
- package/lib/java/maven-sample.js +1 -1
- package/lib/java/pom.js +1 -1
- package/lib/java/projenrc.js +1 -1
- package/lib/javascript/bundler.js +1 -1
- package/lib/javascript/eslint.js +1 -1
- package/lib/javascript/jest.js +4 -4
- package/lib/javascript/node-package.js +1 -1
- package/lib/javascript/node-project.js +1 -1
- package/lib/javascript/npm-config.js +1 -1
- package/lib/javascript/prettier.js +1 -1
- package/lib/javascript/projenrc.js +1 -1
- package/lib/javascript/typescript-config.js +1 -1
- package/lib/javascript/upgrade-dependencies.js +2 -2
- package/lib/json-patch.js +1 -1
- package/lib/json.js +1 -1
- package/lib/license.js +1 -1
- package/lib/logger.js +1 -1
- package/lib/makefile.js +1 -1
- package/lib/object-file.js +1 -1
- package/lib/project-build.js +1 -1
- package/lib/project.js +1 -1
- package/lib/projects.js +1 -1
- package/lib/projenrc-json.js +2 -2
- package/lib/projenrc.js +1 -1
- package/lib/python/pip.js +1 -1
- package/lib/python/poetry.js +2 -2
- package/lib/python/projenrc.js +1 -1
- package/lib/python/pytest-sample.js +1 -1
- package/lib/python/pytest.js +1 -1
- package/lib/python/python-project.js +1 -1
- package/lib/python/python-sample.js +1 -1
- package/lib/python/requirements-file.js +1 -1
- package/lib/python/setuppy.js +1 -1
- package/lib/python/setuptools.js +1 -1
- package/lib/python/venv.js +1 -1
- package/lib/readme.js +1 -1
- package/lib/release/publisher.js +1 -1
- package/lib/release/release-trigger.js +1 -1
- package/lib/release/release.js +1 -1
- package/lib/renovatebot.js +1 -1
- package/lib/sample-file.js +2 -2
- package/lib/semver.js +1 -1
- package/lib/source-code.js +1 -1
- package/lib/task-runtime.js +1 -1
- package/lib/task.js +1 -1
- package/lib/tasks.js +1 -1
- package/lib/testing.js +1 -1
- package/lib/textfile.js +1 -1
- package/lib/toml.js +1 -1
- package/lib/typescript/projenrc-ts.js +1 -1
- package/lib/typescript/projenrc.js +1 -1
- package/lib/typescript/typescript-typedoc.js +1 -1
- package/lib/typescript/typescript.js +3 -3
- package/lib/version.js +1 -1
- package/lib/vscode/devcontainer.js +1 -1
- package/lib/vscode/extensions.js +1 -1
- package/lib/vscode/launch-config.js +1 -1
- package/lib/vscode/settings.js +1 -1
- package/lib/vscode/vscode.js +1 -1
- package/lib/web/next.js +3 -3
- package/lib/web/postcss.js +1 -1
- package/lib/web/react.js +4 -4
- package/lib/web/tailwind.js +1 -1
- package/lib/xmlfile.js +1 -1
- package/lib/yaml.js +1 -1
- package/package.json +3 -11
- package/lib/.types-compat/ts3.9/lib/_resolve.d.ts +0 -2
- package/lib/.types-compat/ts3.9/lib/awscdk/auto-discover.d.ts +0 -129
- package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-app-java.d.ts +0 -53
- package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-app-py.d.ts +0 -49
- package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-app-ts.d.ts +0 -81
- package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-construct.d.ts +0 -89
- package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-deps-java.d.ts +0 -7
- package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-deps-js.d.ts +0 -7
- package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-deps-py.d.ts +0 -7
- package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-deps.d.ts +0 -168
- package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-pytest-sample.d.ts +0 -5
- package/lib/.types-compat/ts3.9/lib/awscdk/cdk-config.d.ts +0 -122
- package/lib/.types-compat/ts3.9/lib/awscdk/cdk-tasks.d.ts +0 -33
- package/lib/.types-compat/ts3.9/lib/awscdk/index.d.ts +0 -14
- package/lib/.types-compat/ts3.9/lib/awscdk/integration-test.d.ts +0 -46
- package/lib/.types-compat/ts3.9/lib/awscdk/internal.d.ts +0 -20
- package/lib/.types-compat/ts3.9/lib/awscdk/lambda-extension.d.ts +0 -68
- package/lib/.types-compat/ts3.9/lib/awscdk/lambda-function.d.ts +0 -171
- package/lib/.types-compat/ts3.9/lib/build/build-workflow.d.ts +0 -180
- package/lib/.types-compat/ts3.9/lib/build/index.d.ts +0 -1
- package/lib/.types-compat/ts3.9/lib/builtin-example.task.d.ts +0 -0
- package/lib/.types-compat/ts3.9/lib/cdk/auto-discover-base.d.ts +0 -45
- package/lib/.types-compat/ts3.9/lib/cdk/construct-lib.d.ts +0 -38
- package/lib/.types-compat/ts3.9/lib/cdk/consts.d.ts +0 -6
- package/lib/.types-compat/ts3.9/lib/cdk/index.d.ts +0 -5
- package/lib/.types-compat/ts3.9/lib/cdk/integration-test-base.d.ts +0 -53
- package/lib/.types-compat/ts3.9/lib/cdk/internal.d.ts +0 -4
- package/lib/.types-compat/ts3.9/lib/cdk/jsii-docgen.d.ts +0 -20
- package/lib/.types-compat/ts3.9/lib/cdk/jsii-project.d.ts +0 -154
- package/lib/.types-compat/ts3.9/lib/cdk8s/auto-discover.d.ts +0 -33
- package/lib/.types-compat/ts3.9/lib/cdk8s/cdk8s-app-py.d.ts +0 -39
- package/lib/.types-compat/ts3.9/lib/cdk8s/cdk8s-app-ts.d.ts +0 -45
- package/lib/.types-compat/ts3.9/lib/cdk8s/cdk8s-construct.d.ts +0 -71
- package/lib/.types-compat/ts3.9/lib/cdk8s/cdk8s-deps-js.d.ts +0 -4
- package/lib/.types-compat/ts3.9/lib/cdk8s/cdk8s-deps-py.d.ts +0 -4
- package/lib/.types-compat/ts3.9/lib/cdk8s/cdk8s-deps.d.ts +0 -144
- package/lib/.types-compat/ts3.9/lib/cdk8s/index.d.ts +0 -7
- package/lib/.types-compat/ts3.9/lib/cdk8s/integration-test.d.ts +0 -13
- package/lib/.types-compat/ts3.9/lib/cdktf/cdktf-construct.d.ts +0 -26
- package/lib/.types-compat/ts3.9/lib/cdktf/index.d.ts +0 -1
- package/lib/.types-compat/ts3.9/lib/circleci/circleci.d.ts +0 -132
- package/lib/.types-compat/ts3.9/lib/circleci/constant.d.ts +0 -5
- package/lib/.types-compat/ts3.9/lib/circleci/index.d.ts +0 -3
- package/lib/.types-compat/ts3.9/lib/circleci/model.d.ts +0 -260
- package/lib/.types-compat/ts3.9/lib/cleanup.d.ts +0 -2
- package/lib/.types-compat/ts3.9/lib/cli/cmds/new.d.ts +0 -9
- package/lib/.types-compat/ts3.9/lib/cli/index.d.ts +0 -1
- package/lib/.types-compat/ts3.9/lib/cli/macros.d.ts +0 -1
- package/lib/.types-compat/ts3.9/lib/cli/synth.d.ts +0 -19
- package/lib/.types-compat/ts3.9/lib/cli/tasks.d.ts +0 -7
- package/lib/.types-compat/ts3.9/lib/cli/util.d.ts +0 -19
- package/lib/.types-compat/ts3.9/lib/clobber.d.ts +0 -5
- package/lib/.types-compat/ts3.9/lib/common.d.ts +0 -5
- package/lib/.types-compat/ts3.9/lib/component.d.ts +0 -20
- package/lib/.types-compat/ts3.9/lib/dependencies.d.ts +0 -160
- package/lib/.types-compat/ts3.9/lib/dev-env.d.ts +0 -80
- package/lib/.types-compat/ts3.9/lib/docker-compose/docker-compose-network.d.ts +0 -103
- package/lib/.types-compat/ts3.9/lib/docker-compose/docker-compose-port.d.ts +0 -44
- package/lib/.types-compat/ts3.9/lib/docker-compose/docker-compose-render.d.ts +0 -2
- package/lib/.types-compat/ts3.9/lib/docker-compose/docker-compose-service.d.ts +0 -155
- package/lib/.types-compat/ts3.9/lib/docker-compose/docker-compose-volume.d.ts +0 -64
- package/lib/.types-compat/ts3.9/lib/docker-compose/docker-compose.d.ts +0 -99
- package/lib/.types-compat/ts3.9/lib/docker-compose/index.d.ts +0 -5
- package/lib/.types-compat/ts3.9/lib/file.d.ts +0 -120
- package/lib/.types-compat/ts3.9/lib/gitattributes.d.ts +0 -26
- package/lib/.types-compat/ts3.9/lib/github/actions-provider.d.ts +0 -28
- package/lib/.types-compat/ts3.9/lib/github/auto-approve.d.ts +0 -44
- package/lib/.types-compat/ts3.9/lib/github/auto-merge.d.ts +0 -41
- package/lib/.types-compat/ts3.9/lib/github/constants.d.ts +0 -20
- package/lib/.types-compat/ts3.9/lib/github/dependabot.d.ts +0 -247
- package/lib/.types-compat/ts3.9/lib/github/github-credentials.d.ts +0 -58
- package/lib/.types-compat/ts3.9/lib/github/github-project.d.ts +0 -177
- package/lib/.types-compat/ts3.9/lib/github/github.d.ts +0 -110
- package/lib/.types-compat/ts3.9/lib/github/index.d.ts +0 -17
- package/lib/.types-compat/ts3.9/lib/github/mergify.d.ts +0 -81
- package/lib/.types-compat/ts3.9/lib/github/pr-template.d.ts +0 -19
- package/lib/.types-compat/ts3.9/lib/github/pull-request-lint.d.ts +0 -48
- package/lib/.types-compat/ts3.9/lib/github/stale-util.d.ts +0 -8
- package/lib/.types-compat/ts3.9/lib/github/stale.d.ts +0 -85
- package/lib/.types-compat/ts3.9/lib/github/task-workflow.d.ts +0 -119
- package/lib/.types-compat/ts3.9/lib/github/util.d.ts +0 -1
- package/lib/.types-compat/ts3.9/lib/github/workflow-actions.d.ts +0 -169
- package/lib/.types-compat/ts3.9/lib/github/workflow-jobs.d.ts +0 -39
- package/lib/.types-compat/ts3.9/lib/github/workflows-model.d.ts +0 -1031
- package/lib/.types-compat/ts3.9/lib/github/workflows.d.ts +0 -108
- package/lib/.types-compat/ts3.9/lib/gitlab/configuration-model.d.ts +0 -536
- package/lib/.types-compat/ts3.9/lib/gitlab/configuration.d.ts +0 -170
- package/lib/.types-compat/ts3.9/lib/gitlab/gitlab-configuration.d.ts +0 -19
- package/lib/.types-compat/ts3.9/lib/gitlab/index.d.ts +0 -4
- package/lib/.types-compat/ts3.9/lib/gitlab/nested-configuration.d.ts +0 -11
- package/lib/.types-compat/ts3.9/lib/gitpod.d.ts +0 -301
- package/lib/.types-compat/ts3.9/lib/ignore-file.d.ts +0 -59
- package/lib/.types-compat/ts3.9/lib/index.d.ts +0 -51
- package/lib/.types-compat/ts3.9/lib/ini.d.ts +0 -15
- package/lib/.types-compat/ts3.9/lib/inventory.d.ts +0 -94
- package/lib/.types-compat/ts3.9/lib/java/index.d.ts +0 -7
- package/lib/.types-compat/ts3.9/lib/java/java-project.d.ts +0 -141
- package/lib/.types-compat/ts3.9/lib/java/junit.d.ts +0 -29
- package/lib/.types-compat/ts3.9/lib/java/maven-compile.d.ts +0 -26
- package/lib/.types-compat/ts3.9/lib/java/maven-packaging.d.ts +0 -34
- package/lib/.types-compat/ts3.9/lib/java/maven-sample.d.ts +0 -14
- package/lib/.types-compat/ts3.9/lib/java/pom.d.ts +0 -214
- package/lib/.types-compat/ts3.9/lib/java/projenrc.d.ts +0 -59
- package/lib/.types-compat/ts3.9/lib/javascript/bundler.d.ts +0 -174
- package/lib/.types-compat/ts3.9/lib/javascript/eslint.d.ts +0 -175
- package/lib/.types-compat/ts3.9/lib/javascript/index.d.ts +0 -10
- package/lib/.types-compat/ts3.9/lib/javascript/jest.d.ts +0 -599
- package/lib/.types-compat/ts3.9/lib/javascript/node-package.d.ts +0 -616
- package/lib/.types-compat/ts3.9/lib/javascript/node-project.d.ts +0 -465
- package/lib/.types-compat/ts3.9/lib/javascript/npm-config.d.ts +0 -40
- package/lib/.types-compat/ts3.9/lib/javascript/prettier.d.ts +0 -358
- package/lib/.types-compat/ts3.9/lib/javascript/projenrc.d.ts +0 -18
- package/lib/.types-compat/ts3.9/lib/javascript/render-options.d.ts +0 -88
- package/lib/.types-compat/ts3.9/lib/javascript/typescript-config.d.ts +0 -403
- package/lib/.types-compat/ts3.9/lib/javascript/upgrade-dependencies.d.ts +0 -188
- package/lib/.types-compat/ts3.9/lib/javascript/util.d.ts +0 -19
- package/lib/.types-compat/ts3.9/lib/json-patch.d.ts +0 -75
- package/lib/.types-compat/ts3.9/lib/json.d.ts +0 -27
- package/lib/.types-compat/ts3.9/lib/license.d.ts +0 -31
- package/lib/.types-compat/ts3.9/lib/logger.d.ts +0 -73
- package/lib/.types-compat/ts3.9/lib/logging.d.ts +0 -9
- package/lib/.types-compat/ts3.9/lib/makefile.d.ts +0 -77
- package/lib/.types-compat/ts3.9/lib/object-file.d.ts +0 -155
- package/lib/.types-compat/ts3.9/lib/option-hints.d.ts +0 -18
- package/lib/.types-compat/ts3.9/lib/project-build.d.ts +0 -41
- package/lib/.types-compat/ts3.9/lib/project.d.ts +0 -374
- package/lib/.types-compat/ts3.9/lib/projects.d.ts +0 -63
- package/lib/.types-compat/ts3.9/lib/projenrc-json.d.ts +0 -27
- package/lib/.types-compat/ts3.9/lib/projenrc.d.ts +0 -18
- package/lib/.types-compat/ts3.9/lib/python/index.d.ts +0 -14
- package/lib/.types-compat/ts3.9/lib/python/pip.d.ts +0 -32
- package/lib/.types-compat/ts3.9/lib/python/poetry.d.ts +0 -183
- package/lib/.types-compat/ts3.9/lib/python/projenrc.d.ts +0 -32
- package/lib/.types-compat/ts3.9/lib/python/pytest-sample.d.ts +0 -21
- package/lib/.types-compat/ts3.9/lib/python/pytest.d.ts +0 -24
- package/lib/.types-compat/ts3.9/lib/python/python-deps.d.ts +0 -30
- package/lib/.types-compat/ts3.9/lib/python/python-env.d.ts +0 -6
- package/lib/.types-compat/ts3.9/lib/python/python-packaging.d.ts +0 -62
- package/lib/.types-compat/ts3.9/lib/python/python-project.d.ts +0 -190
- package/lib/.types-compat/ts3.9/lib/python/python-sample.d.ts +0 -17
- package/lib/.types-compat/ts3.9/lib/python/requirements-file.d.ts +0 -29
- package/lib/.types-compat/ts3.9/lib/python/setuppy.d.ts +0 -70
- package/lib/.types-compat/ts3.9/lib/python/setuptools.d.ts +0 -15
- package/lib/.types-compat/ts3.9/lib/python/venv.d.ts +0 -28
- package/lib/.types-compat/ts3.9/lib/readme.d.ts +0 -28
- package/lib/.types-compat/ts3.9/lib/release/bump-version.d.ts +0 -72
- package/lib/.types-compat/ts3.9/lib/release/bump-version.task.d.ts +0 -1
- package/lib/.types-compat/ts3.9/lib/release/index.d.ts +0 -3
- package/lib/.types-compat/ts3.9/lib/release/publisher.d.ts +0 -533
- package/lib/.types-compat/ts3.9/lib/release/release-trigger.d.ts +0 -97
- package/lib/.types-compat/ts3.9/lib/release/release.d.ts +0 -338
- package/lib/.types-compat/ts3.9/lib/release/reset-version.task.d.ts +0 -1
- package/lib/.types-compat/ts3.9/lib/release/tag-version.d.ts +0 -31
- package/lib/.types-compat/ts3.9/lib/release/tag-version.task.d.ts +0 -1
- package/lib/.types-compat/ts3.9/lib/release/update-changelog.d.ts +0 -36
- package/lib/.types-compat/ts3.9/lib/release/update-changelog.task.d.ts +0 -1
- package/lib/.types-compat/ts3.9/lib/renovatebot.d.ts +0 -99
- package/lib/.types-compat/ts3.9/lib/run-projenrc-json.task.d.ts +0 -1
- package/lib/.types-compat/ts3.9/lib/sample-file.d.ts +0 -88
- package/lib/.types-compat/ts3.9/lib/semver.d.ts +0 -34
- package/lib/.types-compat/ts3.9/lib/smithy/smithy-build.d.ts +0 -156
- package/lib/.types-compat/ts3.9/lib/source-code.d.ts +0 -46
- package/lib/.types-compat/ts3.9/lib/task-model.d.ts +0 -151
- package/lib/.types-compat/ts3.9/lib/task-runtime.d.ts +0 -32
- package/lib/.types-compat/ts3.9/lib/task.d.ts +0 -136
- package/lib/.types-compat/ts3.9/lib/tasks.d.ts +0 -51
- package/lib/.types-compat/ts3.9/lib/testing.d.ts +0 -18
- package/lib/.types-compat/ts3.9/lib/textfile.d.ts +0 -33
- package/lib/.types-compat/ts3.9/lib/toml.d.ts +0 -15
- package/lib/.types-compat/ts3.9/lib/typescript/index.d.ts +0 -4
- package/lib/.types-compat/ts3.9/lib/typescript/projenrc-ts.d.ts +0 -43
- package/lib/.types-compat/ts3.9/lib/typescript/projenrc.d.ts +0 -27
- package/lib/.types-compat/ts3.9/lib/typescript/typescript-typedoc.d.ts +0 -7
- package/lib/.types-compat/ts3.9/lib/typescript/typescript.d.ts +0 -170
- package/lib/.types-compat/ts3.9/lib/util/semver.d.ts +0 -43
- package/lib/.types-compat/ts3.9/lib/util/synth.d.ts +0 -42
- package/lib/.types-compat/ts3.9/lib/util.d.ts +0 -131
- package/lib/.types-compat/ts3.9/lib/version.d.ts +0 -45
- package/lib/.types-compat/ts3.9/lib/vscode/devcontainer.d.ts +0 -86
- package/lib/.types-compat/ts3.9/lib/vscode/extensions.d.ts +0 -36
- package/lib/.types-compat/ts3.9/lib/vscode/index.d.ts +0 -5
- package/lib/.types-compat/ts3.9/lib/vscode/launch-config.d.ts +0 -90
- package/lib/.types-compat/ts3.9/lib/vscode/settings.d.ts +0 -24
- package/lib/.types-compat/ts3.9/lib/vscode/vscode.d.ts +0 -14
- package/lib/.types-compat/ts3.9/lib/web/index.d.ts +0 -4
- package/lib/.types-compat/ts3.9/lib/web/next.d.ts +0 -100
- package/lib/.types-compat/ts3.9/lib/web/postcss.d.ts +0 -28
- package/lib/.types-compat/ts3.9/lib/web/react.d.ts +0 -105
- package/lib/.types-compat/ts3.9/lib/web/tailwind.d.ts +0 -21
- package/lib/.types-compat/ts3.9/lib/xmlfile.d.ts +0 -18
- package/lib/.types-compat/ts3.9/lib/yaml.d.ts +0 -25
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
import { IPythonDeps } from "./python-deps";
|
|
2
|
-
import { IPythonEnv } from "./python-env";
|
|
3
|
-
import { IPythonPackaging, PythonPackagingOptions } from "./python-packaging";
|
|
4
|
-
import { Component } from "../component";
|
|
5
|
-
import { Project } from "../project";
|
|
6
|
-
import { Task } from "../task";
|
|
7
|
-
import { TomlFile } from "../toml";
|
|
8
|
-
/**
|
|
9
|
-
* Manage project dependencies, virtual environments, and packaging through the
|
|
10
|
-
* poetry CLI tool.
|
|
11
|
-
*/
|
|
12
|
-
export declare class Poetry extends Component implements IPythonDeps, IPythonEnv, IPythonPackaging {
|
|
13
|
-
readonly installTask: Task;
|
|
14
|
-
readonly publishTask: Task;
|
|
15
|
-
/**
|
|
16
|
-
* A task that uploads the package to the Test PyPI repository.
|
|
17
|
-
*/
|
|
18
|
-
readonly publishTestTask: Task;
|
|
19
|
-
constructor(project: Project, options: PythonPackagingOptions);
|
|
20
|
-
private synthDependencies;
|
|
21
|
-
private synthDevDependencies;
|
|
22
|
-
/**
|
|
23
|
-
* Allow for poetry dependencies to specify metadata, eg `mypackage@{ version="1.2.3", extras = ["my-package-extra"] }`
|
|
24
|
-
* @param dependencies poetry dependencies object
|
|
25
|
-
* @private
|
|
26
|
-
*/
|
|
27
|
-
private permitDependenciesWithMetadata;
|
|
28
|
-
/**
|
|
29
|
-
* Adds a runtime dependency.
|
|
30
|
-
*
|
|
31
|
-
* @param spec Format `<module>@<semver>`
|
|
32
|
-
*/
|
|
33
|
-
addDependency(spec: string): void;
|
|
34
|
-
/**
|
|
35
|
-
* Adds a dev dependency.
|
|
36
|
-
*
|
|
37
|
-
* @param spec Format `<module>@<semver>`
|
|
38
|
-
*/
|
|
39
|
-
addDevDependency(spec: string): void;
|
|
40
|
-
/**
|
|
41
|
-
* Initializes the virtual environment if it doesn't exist (called during post-synthesis).
|
|
42
|
-
*/
|
|
43
|
-
setupEnvironment(): void;
|
|
44
|
-
/**
|
|
45
|
-
* Installs dependencies (called during post-synthesis).
|
|
46
|
-
*/
|
|
47
|
-
installDependencies(): void;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Poetry-specific options.
|
|
51
|
-
* @see https://python-poetry.org/docs/pyproject/
|
|
52
|
-
*/
|
|
53
|
-
export interface PoetryPyprojectOptionsWithoutDeps {
|
|
54
|
-
/**
|
|
55
|
-
* Name of the package (required).
|
|
56
|
-
*/
|
|
57
|
-
readonly name?: string;
|
|
58
|
-
/**
|
|
59
|
-
* Version of the package (required).
|
|
60
|
-
*/
|
|
61
|
-
readonly version?: string;
|
|
62
|
-
/**
|
|
63
|
-
* A short description of the package (required).
|
|
64
|
-
*/
|
|
65
|
-
readonly description?: string;
|
|
66
|
-
/**
|
|
67
|
-
* License of this package as an SPDX identifier.
|
|
68
|
-
*
|
|
69
|
-
* If the project is proprietary and does not use a specific license, you
|
|
70
|
-
* can set this value as "Proprietary".
|
|
71
|
-
*/
|
|
72
|
-
readonly license?: string;
|
|
73
|
-
/**
|
|
74
|
-
* The authors of the package. Must be in the form "name <email>"
|
|
75
|
-
*/
|
|
76
|
-
readonly authors?: string[];
|
|
77
|
-
/**
|
|
78
|
-
* the maintainers of the package. Must be in the form "name <email>"
|
|
79
|
-
*/
|
|
80
|
-
readonly maintainers?: string[];
|
|
81
|
-
/**
|
|
82
|
-
* The name of the readme file of the package.
|
|
83
|
-
*/
|
|
84
|
-
readonly readme?: string;
|
|
85
|
-
/**
|
|
86
|
-
* A URL to the website of the project.
|
|
87
|
-
*/
|
|
88
|
-
readonly homepage?: string;
|
|
89
|
-
/**
|
|
90
|
-
* A URL to the repository of the project.
|
|
91
|
-
*/
|
|
92
|
-
readonly repository?: string;
|
|
93
|
-
/**
|
|
94
|
-
* A URL to the documentation of the project.
|
|
95
|
-
*/
|
|
96
|
-
readonly documentation?: string;
|
|
97
|
-
/**
|
|
98
|
-
* A list of keywords (max: 5) that the package is related to.
|
|
99
|
-
*/
|
|
100
|
-
readonly keywords?: string[];
|
|
101
|
-
/**
|
|
102
|
-
* A list of PyPI trove classifiers that describe the project.
|
|
103
|
-
*
|
|
104
|
-
* @see https://pypi.org/classifiers/
|
|
105
|
-
*/
|
|
106
|
-
readonly classifiers?: string[];
|
|
107
|
-
/**
|
|
108
|
-
* A list of packages and modules to include in the final distribution.
|
|
109
|
-
*/
|
|
110
|
-
readonly packages?: any[];
|
|
111
|
-
/**
|
|
112
|
-
* A list of patterns that will be included in the final package.
|
|
113
|
-
*/
|
|
114
|
-
readonly include?: string[];
|
|
115
|
-
/**
|
|
116
|
-
* A list of patterns that will be excluded in the final package.
|
|
117
|
-
*
|
|
118
|
-
* If a VCS is being used for a package, the exclude field will be seeded with
|
|
119
|
-
* the VCS’ ignore settings (.gitignore for git for example).
|
|
120
|
-
*/
|
|
121
|
-
readonly exclude?: string[];
|
|
122
|
-
/**
|
|
123
|
-
* The scripts or executables that will be installed when installing the package.
|
|
124
|
-
*/
|
|
125
|
-
readonly scripts?: {
|
|
126
|
-
[key: string]: any;
|
|
127
|
-
};
|
|
128
|
-
/**
|
|
129
|
-
* Source registries from which packages are retrieved.
|
|
130
|
-
*/
|
|
131
|
-
readonly source?: any[];
|
|
132
|
-
/**
|
|
133
|
-
* Package extras
|
|
134
|
-
*/
|
|
135
|
-
readonly extras?: {
|
|
136
|
-
[key: string]: string[];
|
|
137
|
-
};
|
|
138
|
-
/**
|
|
139
|
-
* Plugins. Must be specified as a table.
|
|
140
|
-
* @see https://toml.io/en/v1.0.0#table
|
|
141
|
-
*/
|
|
142
|
-
readonly plugins?: any;
|
|
143
|
-
/**
|
|
144
|
-
* Project custom URLs, in addition to homepage, repository and documentation.
|
|
145
|
-
* E.g. "Bug Tracker"
|
|
146
|
-
*/
|
|
147
|
-
readonly urls?: {
|
|
148
|
-
[key: string]: string;
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
/**
|
|
152
|
-
* Poetry-specific options.
|
|
153
|
-
* @see https://python-poetry.org/docs/pyproject/
|
|
154
|
-
*/
|
|
155
|
-
export interface PoetryPyprojectOptions extends PoetryPyprojectOptionsWithoutDeps {
|
|
156
|
-
/**
|
|
157
|
-
* A list of dependencies for the project.
|
|
158
|
-
*
|
|
159
|
-
* The python version for which your package is compatible is also required.
|
|
160
|
-
*
|
|
161
|
-
* @example { requests: "^2.13.0" }
|
|
162
|
-
*/
|
|
163
|
-
readonly dependencies?: {
|
|
164
|
-
[key: string]: any;
|
|
165
|
-
};
|
|
166
|
-
/**
|
|
167
|
-
* A list of development dependencies for the project.
|
|
168
|
-
*
|
|
169
|
-
* @example { requests: "^2.13.0" }
|
|
170
|
-
*/
|
|
171
|
-
readonly devDependencies?: {
|
|
172
|
-
[key: string]: any;
|
|
173
|
-
};
|
|
174
|
-
}
|
|
175
|
-
/**
|
|
176
|
-
* Represents configuration of a pyproject.toml file for a Poetry project.
|
|
177
|
-
*
|
|
178
|
-
* @see https://python-poetry.org/docs/pyproject/
|
|
179
|
-
*/
|
|
180
|
-
export declare class PoetryPyproject extends Component {
|
|
181
|
-
readonly file: TomlFile;
|
|
182
|
-
constructor(project: Project, options: PoetryPyprojectOptions);
|
|
183
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Project } from "../project";
|
|
2
|
-
import { ProjenrcFile } from "../projenrc";
|
|
3
|
-
/**
|
|
4
|
-
* Options for `Projenrc`.
|
|
5
|
-
*/
|
|
6
|
-
export interface ProjenrcOptions {
|
|
7
|
-
/**
|
|
8
|
-
* The name of the projenrc file.
|
|
9
|
-
* @default ".projenrc.py"
|
|
10
|
-
*/
|
|
11
|
-
readonly filename?: string;
|
|
12
|
-
/**
|
|
13
|
-
* The projen version to use
|
|
14
|
-
* @default - current version
|
|
15
|
-
*/
|
|
16
|
-
readonly projenVersion?: string;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Allows writing projenrc files in python.
|
|
20
|
-
*
|
|
21
|
-
* This will install `projen` as a Python dependency and will add a
|
|
22
|
-
* `synth` task which will run `.projenrc.py`.
|
|
23
|
-
*/
|
|
24
|
-
export declare class Projenrc extends ProjenrcFile {
|
|
25
|
-
/**
|
|
26
|
-
* The name of the projenrc file.
|
|
27
|
-
*/
|
|
28
|
-
readonly filePath: string;
|
|
29
|
-
constructor(project: Project, options?: ProjenrcOptions);
|
|
30
|
-
private generateProjenrc;
|
|
31
|
-
}
|
|
32
|
-
export declare function resolvePythonImportName(jsiiFqn: string, jsiiManifest: any): string;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Component } from "..";
|
|
2
|
-
import { Project } from "../project";
|
|
3
|
-
/**
|
|
4
|
-
* Options for python test code sample.
|
|
5
|
-
*/
|
|
6
|
-
export interface PytestSampleOptions {
|
|
7
|
-
/**
|
|
8
|
-
* Name of the python package as used in imports and filenames.
|
|
9
|
-
*/
|
|
10
|
-
readonly moduleName: string;
|
|
11
|
-
/**
|
|
12
|
-
* Test directory
|
|
13
|
-
*/
|
|
14
|
-
readonly testdir: string;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Python test code sample.
|
|
18
|
-
*/
|
|
19
|
-
export declare class PytestSample extends Component {
|
|
20
|
-
constructor(project: Project, options: PytestSampleOptions);
|
|
21
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Component } from "../component";
|
|
2
|
-
import { Project } from "../project";
|
|
3
|
-
export interface PytestOptions {
|
|
4
|
-
/**
|
|
5
|
-
* Pytest version
|
|
6
|
-
*
|
|
7
|
-
* @default "6.2.1"
|
|
8
|
-
*/
|
|
9
|
-
readonly version?: string;
|
|
10
|
-
/**
|
|
11
|
-
* Directory with tests
|
|
12
|
-
*
|
|
13
|
-
* @default 'tests'
|
|
14
|
-
*/
|
|
15
|
-
readonly testdir?: string;
|
|
16
|
-
/**
|
|
17
|
-
* Stop the testing process after the first N failures
|
|
18
|
-
*/
|
|
19
|
-
readonly maxFailures?: number;
|
|
20
|
-
}
|
|
21
|
-
export declare class Pytest extends Component {
|
|
22
|
-
readonly testdir: string;
|
|
23
|
-
constructor(project: Project, options?: PytestOptions);
|
|
24
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Dependency } from "../dependencies";
|
|
2
|
-
import { Task } from "../task";
|
|
3
|
-
export interface IPythonDeps {
|
|
4
|
-
/**
|
|
5
|
-
* A task that installs and updates dependencies.
|
|
6
|
-
*/
|
|
7
|
-
readonly installTask: Task;
|
|
8
|
-
/**
|
|
9
|
-
* Adds a runtime dependency.
|
|
10
|
-
*
|
|
11
|
-
* @param spec Format `<module>@<semver>`
|
|
12
|
-
*/
|
|
13
|
-
addDependency(spec: string): void;
|
|
14
|
-
/**
|
|
15
|
-
* Adds a dev dependency.
|
|
16
|
-
*
|
|
17
|
-
* @param spec Format `<module>@<semver>`
|
|
18
|
-
*/
|
|
19
|
-
addDevDependency(spec: string): void;
|
|
20
|
-
/**
|
|
21
|
-
* Installs dependencies (called during post-synthesis).
|
|
22
|
-
*/
|
|
23
|
-
installDependencies(): void;
|
|
24
|
-
}
|
|
25
|
-
export interface IPackageProvider {
|
|
26
|
-
/**
|
|
27
|
-
* An array of packages (may be dynamically generated).
|
|
28
|
-
*/
|
|
29
|
-
readonly packages: Dependency[];
|
|
30
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { PoetryPyprojectOptionsWithoutDeps } from "./poetry";
|
|
2
|
-
import { Task } from "../task";
|
|
3
|
-
export interface IPythonPackaging {
|
|
4
|
-
/**
|
|
5
|
-
* A task that uploads the package to a package repository.
|
|
6
|
-
*/
|
|
7
|
-
readonly publishTask: Task;
|
|
8
|
-
}
|
|
9
|
-
export interface PythonPackagingOptions {
|
|
10
|
-
/**
|
|
11
|
-
* Author's name
|
|
12
|
-
*
|
|
13
|
-
* @default $GIT_USER_NAME
|
|
14
|
-
*/
|
|
15
|
-
readonly authorName: string;
|
|
16
|
-
/**
|
|
17
|
-
* Package name.
|
|
18
|
-
*/
|
|
19
|
-
readonly packageName?: string;
|
|
20
|
-
/**
|
|
21
|
-
* Author's e-mail
|
|
22
|
-
*
|
|
23
|
-
* @default $GIT_USER_EMAIL
|
|
24
|
-
*/
|
|
25
|
-
readonly authorEmail: string;
|
|
26
|
-
/**
|
|
27
|
-
* Version of the package.
|
|
28
|
-
*
|
|
29
|
-
* @default "0.1.0"
|
|
30
|
-
* @featured
|
|
31
|
-
*/
|
|
32
|
-
readonly version: string;
|
|
33
|
-
/**
|
|
34
|
-
* A short description of the package.
|
|
35
|
-
* @featured
|
|
36
|
-
*/
|
|
37
|
-
readonly description?: string;
|
|
38
|
-
/**
|
|
39
|
-
* License of this package as an SPDX identifier.
|
|
40
|
-
*/
|
|
41
|
-
readonly license?: string;
|
|
42
|
-
/**
|
|
43
|
-
* A URL to the website of the project.
|
|
44
|
-
*/
|
|
45
|
-
readonly homepage?: string;
|
|
46
|
-
/**
|
|
47
|
-
* A list of PyPI trove classifiers that describe the project.
|
|
48
|
-
*
|
|
49
|
-
* @see https://pypi.org/classifiers/
|
|
50
|
-
*/
|
|
51
|
-
readonly classifiers?: string[];
|
|
52
|
-
/**
|
|
53
|
-
* Additional fields to pass in the setup() function if using setuptools
|
|
54
|
-
*/
|
|
55
|
-
readonly setupConfig?: {
|
|
56
|
-
[key: string]: any;
|
|
57
|
-
};
|
|
58
|
-
/**
|
|
59
|
-
* Additional options to set for poetry if using poetry
|
|
60
|
-
*/
|
|
61
|
-
readonly poetryOptions?: PoetryPyprojectOptionsWithoutDeps;
|
|
62
|
-
}
|
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
import { ProjenrcOptions as ProjenrcPythonOptions } from "./projenrc";
|
|
2
|
-
import { Pytest, PytestOptions } from "./pytest";
|
|
3
|
-
import { IPythonDeps } from "./python-deps";
|
|
4
|
-
import { IPythonEnv } from "./python-env";
|
|
5
|
-
import { IPythonPackaging, PythonPackagingOptions } from "./python-packaging";
|
|
6
|
-
import { VenvOptions } from "./venv";
|
|
7
|
-
import { GitHubProject, GitHubProjectOptions } from "../github";
|
|
8
|
-
import { ProjenrcOptions as ProjenrcJsOptions } from "../javascript/projenrc";
|
|
9
|
-
import { ProjenrcTsOptions } from "../typescript";
|
|
10
|
-
/**
|
|
11
|
-
* Options for `PythonProject`.
|
|
12
|
-
*/
|
|
13
|
-
export interface PythonProjectOptions extends GitHubProjectOptions, PythonPackagingOptions {
|
|
14
|
-
/**
|
|
15
|
-
* Name of the python package as used in imports and filenames.
|
|
16
|
-
*
|
|
17
|
-
* Must only consist of alphanumeric characters and underscores.
|
|
18
|
-
*
|
|
19
|
-
* @default $PYTHON_MODULE_NAME
|
|
20
|
-
*/
|
|
21
|
-
readonly moduleName: string;
|
|
22
|
-
/**
|
|
23
|
-
* List of runtime dependencies for this project.
|
|
24
|
-
*
|
|
25
|
-
* Dependencies use the format: `<module>@<semver>`
|
|
26
|
-
*
|
|
27
|
-
* Additional dependencies can be added via `project.addDependency()`.
|
|
28
|
-
*
|
|
29
|
-
* @default []
|
|
30
|
-
* @featured
|
|
31
|
-
*/
|
|
32
|
-
readonly deps?: string[];
|
|
33
|
-
/**
|
|
34
|
-
* List of dev dependencies for this project.
|
|
35
|
-
*
|
|
36
|
-
* Dependencies use the format: `<module>@<semver>`
|
|
37
|
-
*
|
|
38
|
-
* Additional dependencies can be added via `project.addDevDependency()`.
|
|
39
|
-
*
|
|
40
|
-
* @default []
|
|
41
|
-
* @featured
|
|
42
|
-
*/
|
|
43
|
-
readonly devDeps?: string[];
|
|
44
|
-
/**
|
|
45
|
-
* Use pip with a requirements.txt file to track project dependencies.
|
|
46
|
-
*
|
|
47
|
-
* @default - true, unless poetry is true, then false
|
|
48
|
-
* @featured
|
|
49
|
-
*/
|
|
50
|
-
readonly pip?: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* Use venv to manage a virtual environment for installing dependencies inside.
|
|
53
|
-
*
|
|
54
|
-
* @default - true, unless poetry is true, then false
|
|
55
|
-
* @featured
|
|
56
|
-
*/
|
|
57
|
-
readonly venv?: boolean;
|
|
58
|
-
/**
|
|
59
|
-
* Venv options
|
|
60
|
-
* @default - defaults
|
|
61
|
-
*/
|
|
62
|
-
readonly venvOptions?: VenvOptions;
|
|
63
|
-
/**
|
|
64
|
-
* Use setuptools with a setup.py script for packaging and publishing.
|
|
65
|
-
*
|
|
66
|
-
* @default - true, unless poetry is true, then false
|
|
67
|
-
* @featured
|
|
68
|
-
*/
|
|
69
|
-
readonly setuptools?: boolean;
|
|
70
|
-
/**
|
|
71
|
-
* Use poetry to manage your project dependencies, virtual environment, and
|
|
72
|
-
* (optional) packaging/publishing.
|
|
73
|
-
*
|
|
74
|
-
* This feature is incompatible with pip, setuptools, or venv.
|
|
75
|
-
* If you set this option to `true`, then pip, setuptools, and venv must be set to `false`.
|
|
76
|
-
*
|
|
77
|
-
* @default false
|
|
78
|
-
* @featured
|
|
79
|
-
*/
|
|
80
|
-
readonly poetry?: boolean;
|
|
81
|
-
/**
|
|
82
|
-
* Include pytest tests.
|
|
83
|
-
* @default true
|
|
84
|
-
* @featured
|
|
85
|
-
*/
|
|
86
|
-
readonly pytest?: boolean;
|
|
87
|
-
/**
|
|
88
|
-
* pytest options
|
|
89
|
-
* @default - defaults
|
|
90
|
-
*/
|
|
91
|
-
readonly pytestOptions?: PytestOptions;
|
|
92
|
-
/**
|
|
93
|
-
* Include sample code and test if the relevant directories don't exist.
|
|
94
|
-
* @default true
|
|
95
|
-
*/
|
|
96
|
-
readonly sample?: boolean;
|
|
97
|
-
/**
|
|
98
|
-
* Use projenrc in Python.
|
|
99
|
-
*
|
|
100
|
-
* This will install `projen` as a Python dependency and add a `synth`
|
|
101
|
-
* task which will run `.projenrc.py`.
|
|
102
|
-
*
|
|
103
|
-
* @default true
|
|
104
|
-
*/
|
|
105
|
-
readonly projenrcPython?: boolean;
|
|
106
|
-
/**
|
|
107
|
-
* Options related to projenrc in python.
|
|
108
|
-
* @default - default options
|
|
109
|
-
*/
|
|
110
|
-
readonly projenrcPythonOptions?: ProjenrcPythonOptions;
|
|
111
|
-
/**
|
|
112
|
-
* Use projenrc in javascript.
|
|
113
|
-
*
|
|
114
|
-
* This will install `projen` as a JavaScript dependency and add a `synth`
|
|
115
|
-
* task which will run `.projenrc.js`.
|
|
116
|
-
*
|
|
117
|
-
* @default false
|
|
118
|
-
*/
|
|
119
|
-
readonly projenrcJs?: boolean;
|
|
120
|
-
/**
|
|
121
|
-
* Options related to projenrc in JavaScript.
|
|
122
|
-
* @default - default options
|
|
123
|
-
*/
|
|
124
|
-
readonly projenrcJsOptions?: ProjenrcJsOptions;
|
|
125
|
-
/**
|
|
126
|
-
* Use projenrc in TypeScript.
|
|
127
|
-
*
|
|
128
|
-
* This will create a tsconfig file (default: `tsconfig.projen.json`)
|
|
129
|
-
* and use `ts-node` in the default task to parse the project source files.
|
|
130
|
-
*
|
|
131
|
-
* @default false
|
|
132
|
-
*/
|
|
133
|
-
readonly projenrcTs?: boolean;
|
|
134
|
-
/**
|
|
135
|
-
* Options related to projenrc in TypeScript.
|
|
136
|
-
* @default - default options
|
|
137
|
-
*/
|
|
138
|
-
readonly projenrcTsOptions?: ProjenrcTsOptions;
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* Python project.
|
|
142
|
-
*
|
|
143
|
-
* @pjid python
|
|
144
|
-
*/
|
|
145
|
-
export declare class PythonProject extends GitHubProject {
|
|
146
|
-
/**
|
|
147
|
-
* Python module name (the project name, with any hyphens or periods replaced
|
|
148
|
-
* with underscores).
|
|
149
|
-
*/
|
|
150
|
-
readonly moduleName: string;
|
|
151
|
-
/**
|
|
152
|
-
* Version of the package for distribution (should follow semver).
|
|
153
|
-
*/
|
|
154
|
-
readonly version: string;
|
|
155
|
-
/**
|
|
156
|
-
* API for managing dependencies.
|
|
157
|
-
*/
|
|
158
|
-
readonly depsManager: IPythonDeps;
|
|
159
|
-
/**
|
|
160
|
-
* API for mangaging the Python runtime environment.
|
|
161
|
-
*/
|
|
162
|
-
readonly envManager: IPythonEnv;
|
|
163
|
-
/**
|
|
164
|
-
* API for managing packaging the project as a library. Only applies when the `projectType` is LIB.
|
|
165
|
-
*/
|
|
166
|
-
readonly packagingManager?: IPythonPackaging;
|
|
167
|
-
/**
|
|
168
|
-
* Pytest component.
|
|
169
|
-
*/
|
|
170
|
-
pytest?: Pytest;
|
|
171
|
-
constructor(options: PythonProjectOptions);
|
|
172
|
-
/**
|
|
173
|
-
* Adds default gitignore options for a Python project based on
|
|
174
|
-
* https://github.com/github/gitignore/blob/master/Python.gitignore
|
|
175
|
-
*/
|
|
176
|
-
private addDefaultGitIgnore;
|
|
177
|
-
/**
|
|
178
|
-
* Adds a runtime dependency.
|
|
179
|
-
*
|
|
180
|
-
* @param spec Format `<module>@<semver>`
|
|
181
|
-
*/
|
|
182
|
-
addDependency(spec: string): void;
|
|
183
|
-
/**
|
|
184
|
-
* Adds a dev dependency.
|
|
185
|
-
*
|
|
186
|
-
* @param spec Format `<module>@<semver>`
|
|
187
|
-
*/
|
|
188
|
-
addDevDependency(spec: string): void;
|
|
189
|
-
postSynthesize(): void;
|
|
190
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Component } from "../component";
|
|
2
|
-
import { Project } from "../project";
|
|
3
|
-
/**
|
|
4
|
-
* Options for python sample code.
|
|
5
|
-
*/
|
|
6
|
-
export interface PythonSampleOptions {
|
|
7
|
-
/**
|
|
8
|
-
* Sample code directory
|
|
9
|
-
*/
|
|
10
|
-
readonly dir: string;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Python code sample.
|
|
14
|
-
*/
|
|
15
|
-
export declare class PythonSample extends Component {
|
|
16
|
-
constructor(project: Project, options: PythonSampleOptions);
|
|
17
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { IPackageProvider } from "./python-deps";
|
|
2
|
-
import { FileBase, IResolver } from "../file";
|
|
3
|
-
import { Project } from "../project";
|
|
4
|
-
export interface RequirementsFileOptions {
|
|
5
|
-
/**
|
|
6
|
-
* Provide a list of packages that can be dynamically updated.
|
|
7
|
-
*/
|
|
8
|
-
readonly packageProvider?: IPackageProvider;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Specifies a list of packages to be installed using pip.
|
|
12
|
-
*
|
|
13
|
-
* @see https://pip.pypa.io/en/stable/reference/pip_install/#requirements-file-format
|
|
14
|
-
*/
|
|
15
|
-
export declare class RequirementsFile extends FileBase {
|
|
16
|
-
private readonly packages;
|
|
17
|
-
private readonly packageProvider?;
|
|
18
|
-
constructor(project: Project, filePath: string, options: RequirementsFileOptions);
|
|
19
|
-
/**
|
|
20
|
-
* Adds the specified packages provided in semver format.
|
|
21
|
-
*
|
|
22
|
-
* Comment lines (start with `#`) are ignored.
|
|
23
|
-
*
|
|
24
|
-
* @param packages Package version in format `<module>@<semver>`
|
|
25
|
-
*/
|
|
26
|
-
addPackages(...packages: string[]): void;
|
|
27
|
-
private formatDependency;
|
|
28
|
-
protected synthesizeContent(resolver: IResolver): string | undefined;
|
|
29
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { FileBase, IResolver } from "../file";
|
|
2
|
-
import { Project } from "../project";
|
|
3
|
-
/**
|
|
4
|
-
* Fields to pass in the setup() function of setup.py
|
|
5
|
-
*
|
|
6
|
-
* @see https://docs.python.org/3/distutils/setupscript.html
|
|
7
|
-
*/
|
|
8
|
-
export interface SetupPyOptions {
|
|
9
|
-
/**
|
|
10
|
-
* Name of the package
|
|
11
|
-
*/
|
|
12
|
-
readonly name?: string;
|
|
13
|
-
/**
|
|
14
|
-
* List of submodules to be packaged
|
|
15
|
-
*/
|
|
16
|
-
readonly packages?: string[];
|
|
17
|
-
/**
|
|
18
|
-
* Author's name
|
|
19
|
-
*/
|
|
20
|
-
readonly authorName?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Author's e-mail
|
|
23
|
-
*/
|
|
24
|
-
readonly authorEmail?: string;
|
|
25
|
-
/**
|
|
26
|
-
* Manually specify package version
|
|
27
|
-
*/
|
|
28
|
-
readonly version?: string;
|
|
29
|
-
/**
|
|
30
|
-
* A short project description
|
|
31
|
-
*/
|
|
32
|
-
readonly description?: string;
|
|
33
|
-
/**
|
|
34
|
-
* The project license
|
|
35
|
-
*/
|
|
36
|
-
readonly license?: string;
|
|
37
|
-
/**
|
|
38
|
-
* Package's Homepage / Website
|
|
39
|
-
*/
|
|
40
|
-
readonly homepage?: string;
|
|
41
|
-
/**
|
|
42
|
-
* A list of PyPI trove classifiers that describe the project.
|
|
43
|
-
*
|
|
44
|
-
* @see https://pypi.org/classifiers/
|
|
45
|
-
*/
|
|
46
|
-
readonly classifiers?: string[];
|
|
47
|
-
/**
|
|
48
|
-
* Escape hatch to allow any value
|
|
49
|
-
*/
|
|
50
|
-
readonly additionalOptions?: {
|
|
51
|
-
[name: string]: any;
|
|
52
|
-
};
|
|
53
|
-
/**
|
|
54
|
-
* Escape hatch to allow any value (JS/TS only)
|
|
55
|
-
*
|
|
56
|
-
* @deprecated Prefer using `additionalOptions` instead.
|
|
57
|
-
*
|
|
58
|
-
* @jsii ignore
|
|
59
|
-
*/
|
|
60
|
-
readonly [name: string]: any;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Python packaging script where package metadata can be placed.
|
|
64
|
-
*/
|
|
65
|
-
export declare class SetupPy extends FileBase {
|
|
66
|
-
private readonly setupConfig;
|
|
67
|
-
constructor(project: Project, options: SetupPyOptions);
|
|
68
|
-
protected synthesizeContent(resolver: IResolver): string | undefined;
|
|
69
|
-
private renameFields;
|
|
70
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { IPythonPackaging, PythonPackagingOptions } from "./python-packaging";
|
|
2
|
-
import { Component } from "../component";
|
|
3
|
-
import { Project } from "../project";
|
|
4
|
-
import { Task } from "../task";
|
|
5
|
-
/**
|
|
6
|
-
* Manages packaging through setuptools with a setup.py script.
|
|
7
|
-
*/
|
|
8
|
-
export declare class Setuptools extends Component implements IPythonPackaging {
|
|
9
|
-
readonly publishTask: Task;
|
|
10
|
-
/**
|
|
11
|
-
* A task that uploads the package to the Test PyPI repository.
|
|
12
|
-
*/
|
|
13
|
-
readonly publishTestTask: Task;
|
|
14
|
-
constructor(project: Project, options: PythonPackagingOptions);
|
|
15
|
-
}
|