Skip to content

Commit 4ff7054

Browse files
committed
datacrunch package shim, tracking verda
1 parent 714bf31 commit 4ff7054

File tree

10 files changed

+154
-7
lines changed

10 files changed

+154
-7
lines changed

.github/workflows/format.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
- uses: actions/checkout@v5
1818

1919
- name: Install uv
20-
uses: astral-sh/setup-uv@v6
20+
uses: astral-sh/setup-uv@v7
2121
with:
22-
version: "0.9.5"
22+
version: "0.9.11"
2323

2424
- name: Install dependencies
2525
run: uv sync --dev

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
- uses: actions/checkout@v5
1818

1919
- name: Install uv
20-
uses: astral-sh/setup-uv@v6
20+
uses: astral-sh/setup-uv@v7
2121
with:
22-
version: "0.9.5"
22+
version: "0.9.11"
2323

2424
- name: Install dependencies
2525
run: uv sync --dev
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Publish datacrunch compat package
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-24.04
10+
11+
environment:
12+
name: pypi
13+
14+
permissions:
15+
id-token: write
16+
contents: read
17+
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v5
21+
22+
- name: Install uv
23+
uses: astral-sh/setup-uv@v7
24+
with:
25+
version: "0.9.11"
26+
27+
- name: Sync datacrunch version and dependency to verda
28+
working-directory: datacrunch_compat
29+
run: |
30+
# read version from top-level project
31+
VERSION=$(uv version --short --project ..)
32+
echo "Syncing datacrunch to verda==$VERSION"
33+
34+
uv version "$VERSION"
35+
uv add "verda==$VERSION"
36+
37+
echo
38+
echo "Resulting pyproject.toml:"
39+
cat pyproject.toml
40+
41+
- name: Set up Python
42+
working-directory: datacrunch_compat
43+
run: uv python install
44+
45+
- name: Build
46+
working-directory: datacrunch_compat
47+
run: uv build
48+
49+
- name: Publish
50+
working-directory: datacrunch_compat
51+
env:
52+
UV_PUBLISH_USERNAME: ${{ secrets.PYPI_USERNAME }}
53+
UV_PUBLISH_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
54+
run: uv publish

.github/workflows/unit_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ jobs:
2020
- uses: actions/checkout@v5
2121

2222
- name: Install uv
23-
uses: astral-sh/setup-uv@v6
23+
uses: astral-sh/setup-uv@v7
2424
with:
25-
version: "0.9.5"
25+
version: "0.9.11"
2626
python-version: ${{ matrix.python-version }}
2727

2828
- name: Set up Python

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [Unreleased]
9+
10+
### Changed
11+
12+
- `datacrunch` package now imports `verda`, tracking its releases
13+
- Moved `verda/datacrunch.py` to `datacrunch_compat/datacrunch/datacrunch.py`
14+
815
## [1.17.0] - 2025-11-26
916

1017
### Highlights

datacrunch_compat/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# datacrunch is now verda
2+
3+
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.
4+
5+
New package: https://pypi.org/project/verda/
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Compatibility layer for old `from datacrunch import *``
2+
3+
from verda import (
4+
DataCrunchClient,
5+
InferenceClient,
6+
authentication,
7+
balance,
8+
constants,
9+
containers,
10+
datacrunch,
11+
exceptions,
12+
helpers,
13+
http_client,
14+
images,
15+
instance_types,
16+
instances,
17+
locations,
18+
ssh_keys,
19+
startup_scripts,
20+
volume_types,
21+
volumes,
22+
)
23+
24+
__all__ = [
25+
'DataCrunchClient',
26+
'InferenceClient',
27+
'authentication',
28+
'balance',
29+
'constants',
30+
'containers',
31+
'datacrunch',
32+
'exceptions',
33+
'helpers',
34+
'http_client',
35+
'images',
36+
'instance_types',
37+
'instances',
38+
'locations',
39+
'ssh_keys',
40+
'startup_scripts',
41+
'volume_types',
42+
'volumes',
43+
]

verda/datacrunch.py renamed to datacrunch_compat/datacrunch/datacrunch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Frozen, minimal compatibility layer for old DataCrunch API
1+
# Compatibility layer for old `from datacrunch.datacrunch import *``
22

33
from verda import DataCrunchClient
44
from verda._version import __version__

datacrunch_compat/pyproject.toml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
[project]
2+
name = "datacrunch"
3+
version = "1.17.0"
4+
description = "datacrunch is now verda"
5+
readme = "README.md"
6+
requires-python = ">=3.10"
7+
8+
authors = [{ name = "Verda Cloud Oy", email = "info@verda.com" }]
9+
10+
classifiers = [
11+
"Development Status :: 7 - Inactive",
12+
"Intended Audience :: Developers",
13+
"License :: OSI Approved :: MIT License",
14+
"Natural Language :: English",
15+
"Operating System :: OS Independent",
16+
"Programming Language :: Python :: 3",
17+
"Programming Language :: Python :: 3.10",
18+
"Programming Language :: Python :: 3.11",
19+
"Programming Language :: Python :: 3.12",
20+
]
21+
22+
dependencies = [
23+
"verda==1.17.0",
24+
]
25+
26+
[project.urls]
27+
Homepage = "https://github.com/verda-cloud"
28+
Documentation = "https://datacrunch-python.readthedocs.io/"
29+
Repository = "https://github.com/verda-cloud/sdk-python"
30+
Changelog = "https://datacrunch-python.readthedocs.io/en/latest/changelog.html"
31+
32+
[build-system]
33+
requires = ["uv_build>=0.9.5,<0.10.0"]
34+
build-backend = "uv_build"
35+
36+
[tool.uv.build-backend]
37+
module-name = "datacrunch"
38+
module-root = ""

0 commit comments

Comments
 (0)