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
4 changes: 4 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ jobs:
java-version: ${{ env.JAVA_VERSION }}
- name: Checkout
uses: actions/checkout@v4
- name: install uv
uses: astral-sh/setup-uv@v7
with:
version: "0.10.4"
- name: Build
uses: ./.github/actions/build/python
- name: Generate SDK
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sdk-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ jobs:
uses: actions/checkout@v4
- name: Build
uses: ./.github/actions/build/python
- name: Generate SDK
uses: ./.github/actions/generate-sdk/python
- name: install uv
uses: astral-sh/setup-uv@v7
with:
version: "0.10.4"
- name: Generate SDK
uses: ./.github/actions/generate-sdk/python
- name: Push SDK
env:
GH_REPO: "stackitcloud/stackit-sdk-python"
Expand Down
4 changes: 2 additions & 2 deletions languages/python/templates/pyproject.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ dev = [
default-groups = "all"

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

[tool.hatch.build.targets.sdist]
include = ["src/stackit"]
Expand Down Expand Up @@ -108,4 +108,4 @@ docstring-quotes = '"""'
multiline-quotes = '"""'
ban-relative-imports = true
# Exclude generated code
extend-exclude = [ "src/stackit/*/models/*", "src/stackit/*/api/*", "src/stackit/*/*.py" ]
extend-exclude = [ "src/stackit/*/models/*", "src/stackit/*/api/*", "src/stackit/*/*.py" ]
2 changes: 2 additions & 0 deletions scripts/generate-sdk/languages/python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ generate_python_sdk() {
if [ -f "${sdk_services_backup_dir}/${service}/uv.lock" ]; then
echo "Found ${service} \"uv.lock\" file"
cp -r "${sdk_services_backup_dir}/${service}/uv.lock" "${SERVICES_FOLDER}/${service}/uv.lock"
else
uv lock --directory "${SERVICES_FOLDER}/${service}"
fi

# If the service has a CHANGELOG file, move it inside the service folder
Expand Down
Loading