From feb3adddc8ae9f6fd590ed979c36c2f80f7f8dfd Mon Sep 17 00:00:00 2001 From: tamirse <12121211+tamirse@users.noreply.github.com> Date: Fri, 20 Mar 2026 14:17:17 +0200 Subject: [PATCH 1/2] Update CHANGELOG with new features Added new features related to job deployments, container types, cluster types, and currency type. --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index dce861e..d95d36b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added + +- Job deployments (Batch jobs) service +- Container types +- Cluster types +- Currency type + ## [1.21.0] - 2026-03-02 ### Fixed From fc74ebc2655501b6e36ac1cccebe9effbed6ddb8 Mon Sep 17 00:00:00 2001 From: Tamir Date: Fri, 20 Mar 2026 14:20:24 +0200 Subject: [PATCH 2/2] bump version --- CHANGELOG.md | 65 ++++++++++++++++++++++++++------------------------ pyproject.toml | 2 +- uv.lock | 2 +- 3 files changed, 36 insertions(+), 33 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d95d36b..904bd81 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.22.0] - 2026-03-20 + ### Added - Job deployments (Batch jobs) service @@ -25,30 +27,30 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Add `on_spot_discontinue` parameter for instance OS volumes. Previously the policy was always `'keep_detached'`, now it can be set to `'move_to_trash'` or `'delete_permanently'`: - ```python - instance = verda_client.instances.create( - hostname='test-instance', - location=Locations.FIN_03, - instance_type='CPU.4V.16G', - description='test cpu instance', - image='ubuntu-22.04', - is_spot=True, - ssh_key_ids=[ssh_key.id], - os_volume=OSVolume( - name='test-os-volume-spot', - size=56, - on_spot_discontinue='delete_permanently', - ), - ) - ``` + ```python + instance = verda_client.instances.create( + hostname='test-instance', + location=Locations.FIN_03, + instance_type='CPU.4V.16G', + description='test cpu instance', + image='ubuntu-22.04', + is_spot=True, + ssh_key_ids=[ssh_key.id], + os_volume=OSVolume( + name='test-os-volume-spot', + size=56, + on_spot_discontinue='delete_permanently', + ), + ) + ``` - Add `delete_permanently` parameter for instance delete action. When set, `volume_ids` will be deleted in one go, skipping trash: - ```python - verda.instances.action( - instance.id, 'delete', - volume_ids=[instance.os_volume_id], - delete_permanently=True, - ) - ``` + ```python + verda.instances.action( + instance.id, 'delete', + volume_ids=[instance.os_volume_id], + delete_permanently=True, + ) + ``` ## [1.18.0] - 2025-12-31 @@ -169,16 +171,17 @@ verda.instances.create(...) - Upgraded pytest If you are working on the library itself, do a fresh clone or upgrade your local development environment in-place: - ```bash - # remove old environment - rm -rf datacrunch.egg-info/ .venv/ datacrunch_env/ - # create new environment and install dependencies - uv sync +```bash +# remove old environment +rm -rf datacrunch.egg-info/ .venv/ datacrunch_env/ - # run example - uv run python examples/simple_create_instance.py - ``` +# create new environment and install dependencies +uv sync + +# run example +uv run python examples/simple_create_instance.py +``` ### Added diff --git a/pyproject.toml b/pyproject.toml index 8609529..3581a0f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "verda" -version = "1.21.0" +version = "1.22.0" description = "Official Python SDK for Verda (formerly DataCrunch) Public API" readme = "README.md" requires-python = ">=3.10" diff --git a/uv.lock b/uv.lock index 827ea54..d0d7ac2 100644 --- a/uv.lock +++ b/uv.lock @@ -509,7 +509,7 @@ wheels = [ [[package]] name = "verda" -version = "1.21.0" +version = "1.22.0" source = { editable = "." } dependencies = [ { name = "dataclasses-json" },