File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Copyright (c) 2025, Salesforce, Inc.
2+ # SPDX-License-Identifier: Apache-2
3+ #
4+ # Licensed under the Apache License, Version 2.0 (the "License");
5+ # you may not use this file except in compliance with the License.
6+ # You may obtain a copy of the License at
7+ #
8+ # http://www.apache.org/licenses/LICENSE-2.0
9+ #
10+ # Unless required by applicable law or agreed to in writing, software
11+ # distributed under the License is distributed on an "AS IS" BASIS,
12+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ # See the License for the specific language governing permissions and
14+ # limitations under the License.
115"""Version information for the Data Cloud Custom Code SDK."""
216
317import importlib .metadata
@@ -7,7 +21,7 @@ def get_version() -> str:
721 """Get the current version of the SDK.
822
923 Returns:
10- str: The version string, either from package metadata.
24+ str: The version string from package metadata.
1125 """
1226 # First try to get version from installed package metadata
1327 return importlib .metadata .version ("sfdc-datacloud-customcode-sdk" )
Original file line number Diff line number Diff line change 1010import requests
1111
1212from datacustomcode .credentials import Credentials
13- from datacustomcode .version import get_version
1413
1514# Patch get_version before importing deploy module
1615with patch ("datacustomcode.version.get_version" , return_value = "1.2.3" ):
You can’t perform that action at this time.
0 commit comments