Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
- uses: actions/checkout@v5

- name: Install uv
uses: astral-sh/setup-uv@v6
uses: astral-sh/setup-uv@v7
with:
version: "0.9.5"
version: "0.9.11"

- name: Install dependencies
run: uv sync --dev
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
- uses: actions/checkout@v5

- name: Install uv
uses: astral-sh/setup-uv@v6
uses: astral-sh/setup-uv@v7
with:
version: "0.9.5"
version: "0.9.11"

- name: Install dependencies
run: uv sync --dev
Expand Down
41 changes: 0 additions & 41 deletions .github/workflows/publish.yml

This file was deleted.

56 changes: 56 additions & 0 deletions .github/workflows/publish_datacrunch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Publish datacrunch package

on:
release:
types: [published]

jobs:
deploy:
runs-on: ubuntu-24.04

environment:
name: pypi

permissions:
id-token: write
contents: read

steps:
- uses: actions/checkout@v5

- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "0.9.11"

- name: Set up Python
run: uv python install

- name: Sync datacrunch version and dependency to verda
run: |
# read version from top-level project
VERSION=$(uv version --short --package verda)
echo "Syncing datacrunch to verda==$VERSION"

uv version --package datacrunch "$VERSION"
uv add --package datacrunch "verda==$VERSION"

echo
echo "Resulting pyproject.toml:"
cat datacrunch_compat/pyproject.toml

- name: Build all packages
run: uv build --all-packages

- name: Smoke test datacrunch (wheel)
run: uv run --isolated --no-project --with dist/datacrunch-*.whl --with dist/verda-*.whl --with "responses==0.25.8" datacrunch_compat/tests/smoke_datacrunch.py

- name: Smoke test datacrunch (source distribution)
run: uv run --isolated --no-project --with dist/datacrunch-*.tar.gz --with dist/verda-*.tar.gz --with "responses==0.25.8" datacrunch_compat/tests/smoke_datacrunch.py

# we don't use Trusted publishing for datacrunch package yet, thus we need secrets
- name: Publish datacrunch
env:
UV_PUBLISH_USERNAME: ${{ secrets.PYPI_USERNAME }}
UV_PUBLISH_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: uv publish dist/datacrunch-*
40 changes: 40 additions & 0 deletions .github/workflows/publish_verda.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Publish verda package

on:
release:
types: [published]

jobs:
deploy:
runs-on: ubuntu-24.04

environment:
name: pypi

permissions:
id-token: write
contents: read

steps:
- uses: actions/checkout@v5

- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "0.9.11"

- name: Set up Python
run: uv python install

- name: Build verda
run: uv build

- name: Smoke test verda (wheel)
run: uv run --isolated --no-project --with dist/verda-*.whl --with "responses==0.25.8" tests/smoke_verda.py

- name: Smoke test verda (source distribution)
run: uv run --isolated --no-project --with dist/verda-*.tar.gz --with "responses==0.25.8" tests/smoke_verda.py

# we use Trusted publishing for verda package, no keys necessary: https://docs.astral.sh/uv/guides/integration/github/#publishing-to-pypi
- name: Publish verda package
run: uv publish dist/verda-*
9 changes: 7 additions & 2 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:
- uses: actions/checkout@v5

- name: Install uv
uses: astral-sh/setup-uv@v6
uses: astral-sh/setup-uv@v7
with:
version: "0.9.5"
version: "0.9.11"
python-version: ${{ matrix.python-version }}

- name: Set up Python
Expand All @@ -39,3 +39,8 @@ jobs:
uses: codecov/codecov-action@v1
with:
fail_ci_if_error: false

- name: Test datacrunch_compat with pytest
working-directory: datacrunch_compat
run: |
uv run pytest
13 changes: 10 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,18 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Changed

- `datacrunch` package now imports `verda`, tracking its releases
- Moved `DataCrunchClient` and `.datacrunch` sub-module into compatibility `datacrunch` package

## [1.17.0] - 2025-11-26

### Highlights

- `datacrunch` package is now `verda`, because the company [changed the name to Verda](https://verda.com/blog/datacrunch-is-changing-its-name-to-verda). Original `datacrunch` package does not go anywhere and would continue tracking `verda` releases.
- `datacrunch` package is now `verda`, because [DataCrunch company changed its name to Verda](https://verda.com/blog/datacrunch-is-changing-its-name-to-verda). Original `datacrunch` package is deprecated, but it would continue tracking `verda` releases.

### Deprecated

Expand All @@ -19,7 +26,7 @@ Was:

```shell
uv add datacrunch
pip3 install datacrunch
pip install datacrunch
```

```python
Expand All @@ -33,7 +40,7 @@ Now:

```shell
uv add verda
pip3 install verda
pip install verda
```

```python
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Verda Public API documentation [is available here](https://api.verda.com/v1/docs

```bash
# via pip
pip3 install verda
pip install verda

# via uv
uv add verda
Expand Down Expand Up @@ -117,7 +117,7 @@ Create a file in the root directory of the project:

```python
# example.py
from verda.verda import VerdaClient
from verda import VerdaClient

CLIENT_SECRET = 'secret'
CLIENT_ID = 'your-id'
Expand Down
5 changes: 5 additions & 0 deletions datacrunch_compat/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# datacrunch is now verda

This package has been [renamed](https://verda.com/blog/datacrunch-is-changing-its-name-to-verda). Use `pip install verda` or `uv add verda` instead.

New package: https://pypi.org/project/verda/
53 changes: 53 additions & 0 deletions datacrunch_compat/datacrunch/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Compatibility layer for deprecated `datacrunch` package

from verda import (
InferenceClient,
__version__,
authentication,
balance,
constants,
containers,
exceptions,
helpers,
http_client,
images,
instance_types,
instances,
locations,
ssh_keys,
startup_scripts,
volume_types,
volumes,
)
from verda import VerdaClient as DataCrunchClient

# For old `from datacrunch import *``
__all__ = [
'DataCrunchClient',
'InferenceClient',
'__version__',
'authentication',
'balance',
'constants',
'containers',
'datacrunch',
'exceptions',
'helpers',
'http_client',
'images',
'instance_types',
'instances',
'locations',
'ssh_keys',
'startup_scripts',
'volume_types',
'volumes',
]

import warnings

warnings.warn(
'datacrunch is deprecated; use verda package instead: https://github.com/verda-cloud/sdk-python/blob/master/CHANGELOG.md#1170---2025-11-26',
DeprecationWarning,
stacklevel=2,
)
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Frozen, minimal compatibility layer for old DataCrunch API
# Compatibility layer for deprecated `datacrunch.datacrunch` package

from verda import DataCrunchClient
from verda import VerdaClient as DataCrunchClient
from verda._version import __version__
from verda.authentication.authentication import AuthenticationService
from verda.balance.balance import BalanceService
Expand All @@ -16,6 +16,7 @@
from verda.volume_types.volume_types import VolumeTypesService
from verda.volumes.volumes import VolumesService

# for `from datacrunch.datacrunch import *`
__all__ = [
'AuthenticationService',
'BalanceService',
Expand All @@ -37,7 +38,7 @@
import warnings

warnings.warn(
'datacrunch.datacrunch is deprecated; use `from verda` instead.',
'datacrunch is deprecated; use verda package instead: https://github.com/verda-cloud/sdk-python/blob/master/CHANGELOG.md#1170---2025-11-26',
DeprecationWarning,
stacklevel=2,
)
46 changes: 46 additions & 0 deletions datacrunch_compat/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
[project]
name = "datacrunch"
version = "0.0.0" # version will be set by .github/workflows/publish.yml before release
description = "datacrunch is now verda"
readme = "README.md"
requires-python = ">=3.10"

authors = [{ name = "Verda Cloud Oy", email = "info@verda.com" }]

classifiers = [
"Development Status :: 7 - Inactive",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]

[project.urls]
Homepage = "https://github.com/verda-cloud"
Documentation = "https://datacrunch-python.readthedocs.io/"
Repository = "https://github.com/verda-cloud/sdk-python"
Changelog = "https://github.com/verda-cloud/sdk-python/blob/master/CHANGELOG.md"

[build-system]
requires = ["uv_build>=0.9.5,<0.10.0"]
build-backend = "uv_build"

[tool.uv.build-backend]
module-name = "datacrunch"
module-root = ""

[tool.uv.sources]
verda = { workspace = true }

[dependency-groups]
dev = [
"pytest>=8.1,<9",
"pytest-responses>=0.5.1",
"responses>=0.25.8",
]
Loading