Skip to content

Commit 51a6fd4

Browse files
authored
Target driver version 6.0.0a1 (#47)
1 parent a0a487a commit 51a6fd4

File tree

6 files changed

+17
-7
lines changed

6 files changed

+17
-7
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ However, make sure the versions match if you do so or leave the version of one o
2626
If you experience issues with the driver, consider troubleshooting without the Rust extension first.
2727
For that, simply make sure you haven't installed `neo4j-rust-ext` but *only* `neo4j`.
2828

29+
> [!NOTE]
30+
> For pre-release versions of the driver (alpha, beta, etc.), the version scheme is slightly different:
31+
> `neo4j == X.Y.ZaA` (for alpha - `a` is not a variable number but a literal) needs to be replaced with `neo4j-rust-ext == X.Y.Z.NaA` where `N` needs to be explicitly specified and cannot be `*`.
32+
> This is a limitation of allowed version identifiers in the Python packaging ecosystem.
33+
2934

3035
## Requirements
3136
For many operating systems and architectures, the pre-built wheels will work out of the box.

changelog.d/47.feature.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Target driver version 6.0.0a1<ISSUES_LIST>.

driver

Submodule driver updated 241 files

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ authors = [
2626
{name = "Neo4j, Inc.", email = "[email protected]"},
2727
]
2828
dependencies = [
29-
"neo4j == 5.28.1"
29+
"neo4j == 6.0.0a1"
3030
]
3131
requires-python = ">=3.10"
3232
keywords = ["neo4j", "graph", "database"]
@@ -42,7 +42,7 @@ classifiers = [
4242
"Topic :: Database",
4343
"Topic :: Software Development",
4444
]
45-
version = "5.28.1.0"
45+
version = "6.0.0.0a1"
4646

4747
[project.urls]
4848
Homepage = "https://neo4j.com/"
@@ -80,7 +80,7 @@ exclude = [
8080

8181
[tool.towncrier]
8282
directory = "changelog.d"
83-
version = "5.28.1.0"
83+
version = "6.0.0.0a1"
8484
filename = "CHANGELOG.md"
8585
title_format = "## [{version}](https://github.com/neo4j/neo4j-python-driver-rust-ext/tree/{version}) ({project_date})\n***"
8686
issue_format = "[#{issue}]: https://github.com/neo4j/neo4j-python-driver-rust-ext/pull/{issue}"

testkit/testkit.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"testkit": {
33
"uri": "https://github.com/neo4j-drivers/testkit.git",
4-
"ref": "5.0"
4+
"ref": "6.x"
55
}
66
}

tests/v1/from_driver/test_packstream.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,13 @@ def _pack(*values, dehydration_hooks=None):
8484
def assert_packable(packer_with_buffer, unpacker_with_buffer):
8585
def _recursive_nan_equal(a, b):
8686
if isinstance(a, (list, tuple)) and isinstance(b, (list, tuple)):
87-
return all(_recursive_nan_equal(x, y) for x, y in zip(a, b))
87+
return len(a) == len(b) and all(
88+
_recursive_nan_equal(x, y) for x, y in zip(a, b, strict=True)
89+
)
8890
elif isinstance(a, dict) and isinstance(b, dict):
89-
return all(_recursive_nan_equal(a[k], b[k]) for k in a)
91+
return len(a) == len(b) and all(
92+
_recursive_nan_equal(a[k], b[k]) for k in a
93+
)
9094
else:
9195
return a == b or (isnan(a) and isnan(b))
9296

0 commit comments

Comments
 (0)