Skip to content

Commit de38370

Browse files
committed
fix(python): fix core import in pyproject.toml and ensure creation of uv.lock
uv.lock wasn't created properly for new services
1 parent efd2ff1 commit de38370

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

languages/python/templates/pyproject.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ dev = [
4848
default-groups = "all"
4949

5050
[tool.uv.sources]
51-
stackit-core = { path = "../../stackit-core" }
51+
stackit-core = { path = "../../core" }
5252

5353
[tool.hatch.build.targets.sdist]
5454
include = ["src/stackit"]
@@ -108,4 +108,4 @@ docstring-quotes = '"""'
108108
multiline-quotes = '"""'
109109
ban-relative-imports = true
110110
# Exclude generated code
111-
extend-exclude = [ "src/stackit/*/models/*", "src/stackit/*/api/*", "src/stackit/*/*.py" ]
111+
extend-exclude = [ "src/stackit/*/models/*", "src/stackit/*/api/*", "src/stackit/*/*.py" ]

scripts/generate-sdk/languages/python.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ generate_python_sdk() {
153153
if [ -f "${sdk_services_backup_dir}/${service}/uv.lock" ]; then
154154
echo "Found ${service} \"uv.lock\" file"
155155
cp -r "${sdk_services_backup_dir}/${service}/uv.lock" "${SERVICES_FOLDER}/${service}/uv.lock"
156+
else
157+
uv lock --directory "${SERVICES_FOLDER}/${service}"
156158
fi
157159

158160
# If the service has a CHANGELOG file, move it inside the service folder

0 commit comments

Comments
 (0)