Skip to content

Commit 9c0e5db

Browse files
committed
v0.1.0
1 parent 3915e0a commit 9c0e5db

7 files changed

Lines changed: 8 additions & 7 deletions

File tree

docs/TECHNICAL_OVERVIEW.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ When arguments contain class instances, a custom JSON encoder serializes them vi
297297
```json
298298
{
299299
"id": "a1b2c3d4e5f6",
300-
"graph": "{\"version\": \"0.4.0\", \"objects\": {...}, ...}",
300+
"graph": "{\"version\": \"0.1.0\", \"objects\": {...}, ...}",
301301
"function": "mymodule.hypotenuse",
302302
"args": [3.0, 4.0],
303303
"kwargs": {},
@@ -382,7 +382,7 @@ Functions are stored in a content-addressable JSON format. Each function is iden
382382

383383
```json
384384
{
385-
"version": "0.4.0",
385+
"version": "0.1.0",
386386
"objects": {
387387
"a1b2...": {
388388
"name": "add",

examples/package_installation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ async def main() -> None:
140140

141141
# Mismatched package names
142142
print("\n--- PyYAML (install_package_as) ---")
143-
result = await to_yaml.run({"framework": "offwork", "version": "0.4.0"})
143+
result = await to_yaml.run({"framework": "offwork", "version": "0.1.0"})
144144
print(f" YAML output:\n{result}")
145145

146146
print("--- python-dateutil (install_package_as) ---")

offwork/core/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from importlib.metadata import PackageNotFoundError
22
from importlib.metadata import version as _pkg_version
33

4-
_FALLBACK_VERSION = "0.4.0"
4+
_FALLBACK_VERSION = "0.1.0"
55

66
try:
77
_VERSION: str = _pkg_version("offwork")

offwork/graph/store.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ def reconstruct(self, function_name: str) -> str:
429429
# -- Serialization -------------------------------------------------------
430430

431431
def to_dict(self) -> dict[str, Any]:
432-
"""Export as a dict in v0.4.0 format."""
432+
"""Export as a dict in v0.1.0 format."""
433433
qname_to_hash = self._refs
434434

435435
# Build objects with closure_func_refs converted to hashes

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ dev = [
4040
"mypy (>=1.19.1,<2.0.0)",
4141
"ipython (>=9.11.0,<10.0.0)",
4242
"isort (>=8.0.1,<9.0.0)",
43+
"twine (>=6.2.0,<7.0.0)",
4344
]
4445

4546
[tool.pytest.ini_options]

tests/test_graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ def test_deduplication_shared_dep(tmp_path: Path) -> None:
352352
def test_serialize_format_structure(tmp_path: Path) -> None:
353353
graph = _make_graph(tmp_path)
354354
data = json.loads(graph.serialize())
355-
assert data["version"] == "0.4.0"
355+
assert data["version"] == "0.1.0"
356356
assert "objects" in data
357357
assert "deps" in data
358358
assert "refs" in data

tests/test_store.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ def test_json_roundtrip(self) -> None:
332332
def test_to_dict_format(self) -> None:
333333
store = _chain_store()
334334
data = store.to_dict()
335-
assert data["version"] == "0.4.0"
335+
assert data["version"] == "0.1.0"
336336
assert "objects" in data
337337
assert "deps" in data
338338
assert "refs" in data

0 commit comments

Comments
 (0)