lange-python 0.3.30__tar.gz → 0.3.31__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {lange_python-0.3.30 → lange_python-0.3.31}/PKG-INFO +1 -1
- {lange_python-0.3.30 → lange_python-0.3.31}/lange/distribution/_client.py +7 -3
- {lange_python-0.3.30 → lange_python-0.3.31}/pyproject.toml +1 -1
- {lange_python-0.3.30 → lange_python-0.3.31}/README.md +0 -0
- {lange_python-0.3.30 → lange_python-0.3.31}/lange/__init__.py +0 -0
- {lange_python-0.3.30 → lange_python-0.3.31}/lange/__main__.py +0 -0
- {lange_python-0.3.30 → lange_python-0.3.31}/lange/_util/__init__.py +0 -0
- {lange_python-0.3.30 → lange_python-0.3.31}/lange/_util/_base_client.py +0 -0
- {lange_python-0.3.30 → lange_python-0.3.31}/lange/_util/_key_handling.py +0 -0
- {lange_python-0.3.30 → lange_python-0.3.31}/lange/cli/__init__.py +0 -0
- {lange_python-0.3.30 → lange_python-0.3.31}/lange/cli/build/__init__.py +0 -0
- {lange_python-0.3.30 → lange_python-0.3.31}/lange/cli/build/_command.py +0 -0
- {lange_python-0.3.30 → lange_python-0.3.31}/lange/cli/build/_discovery.py +0 -0
- {lange_python-0.3.30 → lange_python-0.3.31}/lange/cli/build/_docker.py +0 -0
- {lange_python-0.3.30 → lange_python-0.3.31}/lange/cli/build/_poetry.py +0 -0
- {lange_python-0.3.30 → lange_python-0.3.31}/lange/cli/build/_types.py +0 -0
- {lange_python-0.3.30 → lange_python-0.3.31}/lange/cli/code/__init__.py +0 -0
- {lange_python-0.3.30 → lange_python-0.3.31}/lange/cli/code/_stats.py +0 -0
- {lange_python-0.3.30 → lange_python-0.3.31}/lange/cli/code/audit/__init__.py +0 -0
- {lange_python-0.3.30 → lange_python-0.3.31}/lange/cli/code/audit/_command.py +0 -0
- {lange_python-0.3.30 → lange_python-0.3.31}/lange/cli/code/audit/_discovery.py +0 -0
- {lange_python-0.3.30 → lange_python-0.3.31}/lange/cli/code/audit/_runner.py +0 -0
- {lange_python-0.3.30 → lange_python-0.3.31}/lange/cli/code/audit/_types.py +0 -0
- {lange_python-0.3.30 → lange_python-0.3.31}/lange/cli/distribution/__init__.py +0 -0
- {lange_python-0.3.30 → lange_python-0.3.31}/lange/cli/distribution/_command.py +0 -0
- {lange_python-0.3.30 → lange_python-0.3.31}/lange/distribution/__init__.py +0 -0
- {lange_python-0.3.30 → lange_python-0.3.31}/lange/distribution/_update_macos.py +0 -0
- {lange_python-0.3.30 → lange_python-0.3.31}/lange/distribution/_util.py +0 -0
- {lange_python-0.3.30 → lange_python-0.3.31}/lange/tunnel/__init__.py +0 -0
- {lange_python-0.3.30 → lange_python-0.3.31}/lange/tunnel/_client.py +0 -0
- {lange_python-0.3.30 → lange_python-0.3.31}/lange/tunnel/_util.py +0 -0
|
@@ -207,14 +207,18 @@ class DistributionClient(BaseLangeLabsClient):
|
|
|
207
207
|
|
|
208
208
|
def _build_artifact_download_url(self, version: str, os_name: str) -> str:
|
|
209
209
|
"""
|
|
210
|
-
Build the
|
|
210
|
+
Build the artifact download endpoint URL for one version and OS.
|
|
211
211
|
|
|
212
212
|
:param version: Distribution version to download.
|
|
213
213
|
:param os_name: Operating-system label accepted by the app service.
|
|
214
|
-
:returns: Fully qualified
|
|
214
|
+
:returns: Fully qualified artifact download URL.
|
|
215
|
+
:raises ValueError: If the authenticated distribution has not been resolved.
|
|
215
216
|
"""
|
|
217
|
+
if self.distribution_id is None:
|
|
218
|
+
raise ValueError("Distribution id is required for this operation.")
|
|
219
|
+
|
|
216
220
|
return (
|
|
217
|
-
f"{self.host}/api/
|
|
221
|
+
f"{self.host}/api/v1/distributions/{self.distribution_id}"
|
|
218
222
|
f"/versions/{version}/artifacts/{os_name}/download"
|
|
219
223
|
)
|
|
220
224
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|