diff --git a/CHANGELOG.md b/CHANGELOG.md index dce861e..904bd81 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,15 @@ 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 +- Container types +- Cluster types +- Currency type + ## [1.21.0] - 2026-03-02 ### Fixed @@ -18,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 @@ -162,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" },