Skip to content

Commit 07ef2e6

Browse files
committed
chore: SPDX headers
1 parent 98fd721 commit 07ef2e6

10 files changed

Lines changed: 37 additions & 1 deletion

sdk/python/src/dstack_sdk/dstack_client.pyi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-FileCopyrightText: © 2025 Phala Network <dstack@phala.network>
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
15
"""Type stubs for dstack_client module to fix sync method return types."""
26

37
from abc import abstractmethod

sdk/python/src/dstack_sdk/encrypt_env_vars.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-FileCopyrightText: © 2025 Phala Network <dstack@phala.network>
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
15
"""
26
Environment variable encryption module for dstack SDK.
37

sdk/python/src/dstack_sdk/get_compose_hash.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-FileCopyrightText: © 2025 Phala Network <dstack@phala.network>
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
15
"""
26
Compose hash calculation module for dstack SDK.
37

sdk/python/src/dstack_sdk/verify_env_encrypt_public_key.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-FileCopyrightText: © 2025 Phala Network <dstack@phala.network>
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
15
"""Verify ECDSA signatures of environment-encrypt public keys.
26
37
This module prepares the message per dstack convention and offers a simplified

sdk/python/tests/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: © 2024-2025 Phala Network <dstack@phala.network>
1+
# SPDX-FileCopyrightText: © 2025 Phala Network <dstack@phala.network>
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

sdk/python/tests/test_encrypt_env_vars.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-FileCopyrightText: © 2025 Phala Network <dstack@phala.network>
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
15
import pytest
26

37
from dstack_sdk.encrypt_env_vars import EnvVar

sdk/python/tests/test_get_compose_hash.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-FileCopyrightText: © 2025 Phala Network <dstack@phala.network>
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
15
from dstack_sdk.get_compose_hash import AppCompose
26
from dstack_sdk.get_compose_hash import DockerConfig
37
from dstack_sdk.get_compose_hash import get_compose_hash

sdk/python/tests/test_mypy_check.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-FileCopyrightText: © 2025 Phala Network <dstack@phala.network>
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
15
"""Script to test mypy type checking on dstack client methods."""
26

37
import os

sdk/python/tests/test_typing.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-FileCopyrightText: © 2025 Phala Network <dstack@phala.network>
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
15
"""Test typing and mypy compatibility for sync/async methods."""
26

37
import inspect

sdk/python/tests/test_verify_env_encrypt_public_key.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-FileCopyrightText: © 2025 Phala Network <dstack@phala.network>
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
15
from dstack_sdk.verify_env_encrypt_public_key import verify_env_encrypt_public_key
26
from dstack_sdk.verify_env_encrypt_public_key import verify_signature_simple
37

0 commit comments

Comments
 (0)