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.
Files changed (31) hide show
  1. {lange_python-0.3.30 → lange_python-0.3.31}/PKG-INFO +1 -1
  2. {lange_python-0.3.30 → lange_python-0.3.31}/lange/distribution/_client.py +7 -3
  3. {lange_python-0.3.30 → lange_python-0.3.31}/pyproject.toml +1 -1
  4. {lange_python-0.3.30 → lange_python-0.3.31}/README.md +0 -0
  5. {lange_python-0.3.30 → lange_python-0.3.31}/lange/__init__.py +0 -0
  6. {lange_python-0.3.30 → lange_python-0.3.31}/lange/__main__.py +0 -0
  7. {lange_python-0.3.30 → lange_python-0.3.31}/lange/_util/__init__.py +0 -0
  8. {lange_python-0.3.30 → lange_python-0.3.31}/lange/_util/_base_client.py +0 -0
  9. {lange_python-0.3.30 → lange_python-0.3.31}/lange/_util/_key_handling.py +0 -0
  10. {lange_python-0.3.30 → lange_python-0.3.31}/lange/cli/__init__.py +0 -0
  11. {lange_python-0.3.30 → lange_python-0.3.31}/lange/cli/build/__init__.py +0 -0
  12. {lange_python-0.3.30 → lange_python-0.3.31}/lange/cli/build/_command.py +0 -0
  13. {lange_python-0.3.30 → lange_python-0.3.31}/lange/cli/build/_discovery.py +0 -0
  14. {lange_python-0.3.30 → lange_python-0.3.31}/lange/cli/build/_docker.py +0 -0
  15. {lange_python-0.3.30 → lange_python-0.3.31}/lange/cli/build/_poetry.py +0 -0
  16. {lange_python-0.3.30 → lange_python-0.3.31}/lange/cli/build/_types.py +0 -0
  17. {lange_python-0.3.30 → lange_python-0.3.31}/lange/cli/code/__init__.py +0 -0
  18. {lange_python-0.3.30 → lange_python-0.3.31}/lange/cli/code/_stats.py +0 -0
  19. {lange_python-0.3.30 → lange_python-0.3.31}/lange/cli/code/audit/__init__.py +0 -0
  20. {lange_python-0.3.30 → lange_python-0.3.31}/lange/cli/code/audit/_command.py +0 -0
  21. {lange_python-0.3.30 → lange_python-0.3.31}/lange/cli/code/audit/_discovery.py +0 -0
  22. {lange_python-0.3.30 → lange_python-0.3.31}/lange/cli/code/audit/_runner.py +0 -0
  23. {lange_python-0.3.30 → lange_python-0.3.31}/lange/cli/code/audit/_types.py +0 -0
  24. {lange_python-0.3.30 → lange_python-0.3.31}/lange/cli/distribution/__init__.py +0 -0
  25. {lange_python-0.3.30 → lange_python-0.3.31}/lange/cli/distribution/_command.py +0 -0
  26. {lange_python-0.3.30 → lange_python-0.3.31}/lange/distribution/__init__.py +0 -0
  27. {lange_python-0.3.30 → lange_python-0.3.31}/lange/distribution/_update_macos.py +0 -0
  28. {lange_python-0.3.30 → lange_python-0.3.31}/lange/distribution/_util.py +0 -0
  29. {lange_python-0.3.30 → lange_python-0.3.31}/lange/tunnel/__init__.py +0 -0
  30. {lange_python-0.3.30 → lange_python-0.3.31}/lange/tunnel/_client.py +0 -0
  31. {lange_python-0.3.30 → lange_python-0.3.31}/lange/tunnel/_util.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lange-python
3
- Version: 0.3.30
3
+ Version: 0.3.31
4
4
  Summary: A bundeld set of tools, clients for the lange-suite of tools and more.
5
5
  Author: contact@robertlange.me
6
6
  Requires-Python: >=3.10
@@ -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 public artifact download endpoint URL for one version and OS.
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 public artifact download URL.
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/public/distributions/{self.distribution_name}"
221
+ f"{self.host}/api/v1/distributions/{self.distribution_id}"
218
222
  f"/versions/{version}/artifacts/{os_name}/download"
219
223
  )
220
224
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "lange-python"
3
- version = "0.3.30"
3
+ version = "0.3.31"
4
4
  description = "A bundeld set of tools, clients for the lange-suite of tools and more."
5
5
  authors = [
6
6
  {name = "contact@robertlange.me"}
File without changes