Skip to content

Commit 3ad0da1

Browse files
committed
chore: SPDX
1 parent 98fd721 commit 3ad0da1

14 files changed

Lines changed: 51 additions & 2 deletions

sdk/js/test-outputs.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#!/usr/bin/env node
2+
// SPDX-FileCopyrightText: © 2025 Phala Network <dstack@phala.network>
3+
//
4+
// SPDX-License-Identifier: Apache-2.0
25

36
const { DstackClient, TappdClient, getComposeHash, verifyEnvEncryptPublicKey } = require('./dist/node/index.js');
47
const { toViemAccount, toViemAccountSecure } = require('./dist/node/viem.js');

sdk/python/Makefile

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
.PHONY: install lint format type-check type-check-tests test check-all verify
26

37
# Install dependencies including linting tools

sdk/python/mypy.ini

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
[mypy]
26
python_version = 3.10
37
warn_return_any = True

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/test_outputs.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
#!/usr/bin/env python3
1+
# SPDX-FileCopyrightText: © 2025 Phala Network <dstack@phala.network>
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
24

35
import asyncio
46
import sys

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

0 commit comments

Comments
 (0)