Skip to content

Commit d928c6b

Browse files
fix: remove deprecated dj.key_hash and dj.Di
- Remove key_hash function (legacy job table debugging) - Remove hash.py module - Fix test_erd.py to use dj.Diagram instead of dj.Di - Bump version to 2.0.0a20 Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 327c8c8 commit d928c6b

File tree

5 files changed

+3
-28
lines changed

5 files changed

+3
-28
lines changed

src/datajoint/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
"errors",
5555
"migrate",
5656
"DataJointError",
57-
"key_hash",
5857
"logger",
5958
"cli",
6059
"ValidationResult",
@@ -78,7 +77,6 @@
7877
from .connection import Connection, conn
7978
from .errors import DataJointError
8079
from .expression import AndList, Not, Top, U
81-
from .hash import key_hash
8280
from .logging import logger
8381
from .objectref import ObjectRef
8482
from .schemas import Schema, VirtualModule, list_schemas, virtual_schema

src/datajoint/hash.py

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/datajoint/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# version bump auto managed by Github Actions:
22
# label_prs.yaml(prep), release.yaml(bump), post_release.yaml(edit)
33
# manually set this version will be eventually overwritten by the above actions
4-
__version__ = "2.0.0a19"
4+
__version__ = "2.0.0a20"

tests/integration/test_erd.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def test_erd(schema_simp):
3232
def test_erd_algebra(schema_simp):
3333
erd0 = dj.ERD(B)
3434
erd1 = erd0 + 3
35-
erd2 = dj.Di(E) - 3
35+
erd2 = dj.Diagram(E) - 3
3636
erd3 = erd1 * erd2
3737
erd4 = (erd0 + E).add_parts() - B - E
3838
assert erd0.nodes_to_show == set(cls.full_table_name for cls in [B])
@@ -56,7 +56,7 @@ def test_make_image(schema_simp):
5656

5757
def test_part_table_parsing(schema_simp):
5858
# https://github.com/datajoint/datajoint-python/issues/882
59-
erd = dj.Di(schema_simp, context=LOCALS_SIMPLE)
59+
erd = dj.Diagram(schema_simp, context=LOCALS_SIMPLE)
6060
graph = erd._make_graph()
6161
assert "OutfitLaunch" in graph.nodes()
6262
assert "OutfitLaunch.OutfitPiece" in graph.nodes()

tests/unit/test_hash.py

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)