Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions languages/python/templates/pyproject.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ dev = [
[tool.uv]
default-groups = "all"

{{#useLocalCore}}
[tool.uv.sources]
stackit-core = { path = "../../core" }
{{/useLocalCore}}

[tool.hatch.build.targets.sdist]
include = ["src/stackit"]
Expand Down
9 changes: 8 additions & 1 deletion scripts/generate-sdk/languages/python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ generate_python_sdk() {

warning=""

# There is no core in the internal python sdk, therefore the generation of pyproject.toml
# needs some adjustment.
local extra_props_internal="useLocalCore=true"
if [[ "${GIT_REPO_ID}" == "stackit-sdk-python-beta" ]]; then
extra_props_internal=""
fi

# TODO: add to generator below when adding multi-API-version support:
# --inline-schema-options "SKIP_SCHEMA_REUSE=true"

Expand Down Expand Up @@ -118,7 +125,7 @@ generate_python_sdk() {
--git-user-id "${GIT_USER_ID}" \
--git-repo-id "${GIT_REPO_ID}" \
--global-property apis,models,modelTests=false,modelDocs=false,apiDocs=false,apiTests=false,supportingFiles \
--additional-properties=pythonPackageName="stackit-${service},removeEnumValuePrefix=false" >/dev/null \
--additional-properties=pythonPackageName="stackit-${service},removeEnumValuePrefix=false,${extra_props_internal}" >/dev/null \
--http-user-agent "stackit-sdk-python/${service}"

# Remove unnecessary files
Expand Down
Loading