Skip to content

Commit 6dcbc18

Browse files
authored
Merge pull request #267 from technige/1.7-upgrade-neobolt
[1.7.1] Upgrade neobolt to 1.7.1
2 parents 340b0ed + 6083e46 commit 6dcbc18

21 files changed

+31
-27
lines changed

neo4j/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,15 @@
6565
])
6666

6767

68-
from collections import deque, namedtuple, Mapping
68+
from collections import deque, namedtuple
6969
from functools import reduce
7070
from operator import xor as xor_operator
7171
from random import random
7272
from time import sleep
7373
from warnings import warn
7474

7575

76-
from .compat import perf_counter, urlparse, xstr
76+
from .compat import perf_counter, urlparse, xstr, Mapping
7777
from .config import *
7878
from .meta import version as __version__
7979

neo4j/compat/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,14 @@ def perf_counter():
121121
return nanoTime() / 1000000000
122122

123123

124+
# Using or importing the ABCs from 'collections' instead of from
125+
# 'collections.abc' is deprecated, and in 3.8 it will stop working
126+
try:
127+
from collections.abc import Mapping
128+
except ImportError:
129+
from collections import Mapping
130+
131+
124132
# The location of urlparse varies between Python 2 and 3
125133
try:
126134
from urllib.parse import urlparse, parse_qs

neo4j/types/graph.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@
2323
"""
2424

2525

26-
from collections import Mapping
27-
28-
from neo4j.compat import xstr, deprecated
26+
from neo4j.compat import xstr, deprecated, Mapping
2927

3028

3129
__all__ = [

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
neobolt<2,>=1.7
1+
neobolt<2,>=1.7.2
22
neotime<2,>=1.7.1

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
from neo4j.meta import package, version
3131

3232
install_requires = [
33-
"neobolt<2,>=1.7",
33+
"neobolt<2,>=1.7.2",
3434
"neotime<2,>=1.7.1",
3535
]
3636
classifiers = [

test/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
boltkit>=1.0.39
1+
boltkit
22
coverage
33
mock
44
pytest

test/stub/scripts/broken_router.script

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
!: AUTO INIT
22
!: AUTO RESET
33

4-
C: RUN "CALL dbms.cluster.routing.getServers" {}
4+
C: RUN "CALL dbms.cluster.routing.getRoutingTable({context})" {"context": {}}
55
PULL_ALL
66
S: FAILURE {"code": "Neo.DatabaseError.General.UnknownError", "message": "An unknown error occurred."}
77
IGNORED

test/stub/scripts/non_router.script

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
!: AUTO INIT
22
!: AUTO RESET
33

4-
C: RUN "CALL dbms.cluster.routing.getServers" {}
4+
C: RUN "CALL dbms.cluster.routing.getRoutingTable({context})" {"context": {}}
55
PULL_ALL
66
S: FAILURE {"code": "Neo.ClientError.Procedure.ProcedureNotFound", "message": "Not a router"}
77
IGNORED

test/stub/scripts/return_1_four_times.script

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@ S: SUCCESS {"fields": ["x"]}
77
RECORD [1]
88
SUCCESS {}
99

10-
C: RUN "RETURN $x" {"x": 1}
10+
C: RUN "" {"x": 1}
1111
PULL_ALL
1212
S: SUCCESS {"fields": ["x"]}
1313
RECORD [1]
1414
SUCCESS {}
1515

16-
C: RUN "RETURN $x" {"x": 1}
16+
C: RUN "" {"x": 1}
1717
PULL_ALL
1818
S: SUCCESS {"fields": ["x"]}
1919
RECORD [1]
2020
SUCCESS {}
2121

22-
C: RUN "RETURN $x" {"x": 1}
22+
C: RUN "" {"x": 1}
2323
PULL_ALL
2424
S: SUCCESS {"fields": ["x"]}
2525
RECORD [1]

test/stub/scripts/return_1_in_tx_twice.script

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ C: RUN "BEGIN" {"bookmark": "bookmark:1", "bookmarks": ["bookmark:1"]}
2222
S: SUCCESS {"fields": []}
2323
SUCCESS {}
2424

25-
C: RUN "RETURN 1" {}
25+
C: RUN "" {}
2626
PULL_ALL
2727
S: SUCCESS {"fields": ["1"]}
2828
RECORD [1]

0 commit comments

Comments
 (0)