Skip to content

Commit 7e23dfe

Browse files
authored
Merge pull request #406 from brs96/fix-client-tests-np-warning
Fix pandas1 for numpy
2 parents e661b49 + bf2d2fe commit 7e23dfe

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed

changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@
1414

1515

1616
## Other changes
17+
* Dropped Python 3.7 support which is EOL.
18+
1719

doc/modules/ROOT/pages/installation.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ The Python client supports the following versions of the other three components:
1919
| Python Client | GDS version | Python version | Neo4j Python Driver version
2020
.1+<.^| 1.8
2121
.2+<.^| >= 2.3, < 2.5
22-
.2+<.^| >= 3.7, < 3.12
22+
.1+<.^| >= 3.8, < 3.12
2323
.5+<.^| >= 4.4.2, < 6.0.0
2424

2525
.1+<.^| 1.7
26+
.1+<.^| >= 3.7, < 3.12
2627

2728
.1+<.^| 1.6
2829
.1+<.^| >= 2.2, < 2.4

graphdatascience/tests/integration/conftest.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,15 @@ def runner(neo4j_driver: Driver) -> Neo4jQueryRunner:
4545

4646

4747
@pytest.fixture(scope="package", autouse=False)
48-
def auradb_runner() -> Neo4jQueryRunner:
48+
def auradb_runner() -> Generator[Neo4jQueryRunner, None, None]:
4949
driver = GraphDatabase.driver(AURA_DB_URI, auth=AURA_DB_AUTH)
5050

5151
_runner = Neo4jQueryRunner(driver)
5252
_runner.set_database(DB)
5353

54-
return _runner
54+
yield _runner
55+
56+
driver.close()
5557

5658

5759
@pytest.fixture(scope="package")

tox.ini

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
[tox]
22
envlist =
3-
py37-neo4j{4,5}-main-{standard,encrypted},
4-
py37-pyarrow{4,5,6,7,8,9,10,11,12}-main-{standard,encrypted},
53
py{38,39}-neo4j{4,5}-pandas{1,2}-main-{standard,encrypted},
64
py{38,39}-pandas{1,2}-pyarrow{4,5,6,7,8,9,10,11,12}-main-{standard,encrypted},
75
py310-pandas{1,2}-pyarrow{7,8,9,10,11,12}-main-{standard,encrypted},
86
py311-pandas{1,2}-pyarrow{10,11,12}-main-{standard,encrypted},
97

10-
py37-neo4j{4,5}-pullrequest-{standard,encrypted},
118
py{38,39}-neo4j{4,5}-pullrequest-{standard,encrypted},
129
py{310,311}-pullrequest-{standard,encrypted},
1310

1411
py311-main-aura,
1512

16-
py37-neo4j{4,5}-pyarrow{10,11,12}-main-{cloud-architecture}
17-
py37-pullrequest-{cloud-architecture}
13+
py38-neo4j{4,5}-pyarrow{10,11,12}-main-{cloud-architecture}
14+
py38-pullrequest-{cloud-architecture}
1815

1916
# Vary networkx versions only for relevant tests
2017
py310-neo4j{4,5}-pandas{1,2}-pyarrow{7,12}-networkx{2,3}-main-nx
@@ -37,7 +34,9 @@ deps =
3734
pytest
3835
neo4j4: neo4j >= 4.4.2, < 5.0
3936
neo4j5: neo4j >= 5.0, < 6.0
40-
pandas1: pandas >= 1.0, < 2.0
37+
pandas1:
38+
pandas >= 1.0, < 2.0
39+
numpy == 1.24.3
4140
pandas2: pandas >= 2.0, < 3.0
4241
pyarrow4: pyarrow >= 4.0, < 5.0
4342
pyarrow5: pyarrow >= 5.0, < 6.0

0 commit comments

Comments
 (0)