Skip to content

Commit deaa06f

Browse files
authored
Support Python 3.13 (#360)
* feat: add Python 3.13 support and update spaCy to 3.8.7 * Add Python 3.13 support with updated numpy/scipy version constraints * Add Python 3.13 reference in docs * Update CHANGELOG * Removed 3.12 from PR E2E tests
1 parent f23b4e3 commit deaa06f

File tree

7 files changed

+372
-203
lines changed

7 files changed

+372
-203
lines changed

.github/workflows/pr-e2e-tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
python-version: ['3.9', '3.12']
18+
python-version: ['3.9', '3.13']
1919
neo4j-tag:
2020
- 'latest'
2121
services:

.github/workflows/pr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
runs-on: ubuntu-latest
77
strategy:
88
matrix:
9-
python-version: [ '3.9', '3.10', '3.11', '3.12' ]
9+
python-version: [ '3.9', '3.10', '3.11', '3.12', '3.13' ]
1010
steps:
1111
- name: Check out repository code
1212
uses: actions/checkout@v4

.github/workflows/scheduled-e2e-tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
python-version: ['3.9', '3.10', '3.11', '3.12']
15+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
1616
neo4j-tag:
1717
- '5-community'
1818
- '5-enterprise'

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
### Added
66

7+
- Support for Python 3.13
78
- Added support for automatic schema extraction from text using LLMs. In the `SimpleKGPipeline`, when the user provides no schema, the automatic schema extraction is enabled by default.
89
- Added ability to return a user-defined message if context is empty in GraphRAG (which skips the LLM call).
910

docs/source/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Neo4j versions supported:
2323

2424
Python versions supported:
2525

26+
* Python 3.13
2627
* Python 3.12
2728
* Python 3.11
2829
* Python 3.10

poetry.lock

Lines changed: 357 additions & 198 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ include = "neo4j_graphrag"
2828
from = "src"
2929

3030
[tool.poetry.dependencies]
31-
python = ">=3.9.0,<3.13"
31+
python = ">=3.9.0,<3.14"
3232
neo4j = "^5.17.0"
3333
pydantic = "^2.6.3"
3434
fsspec = "^2024.9.0"
@@ -50,8 +50,16 @@ openai = {version = "^1.51.1", optional = true }
5050
anthropic = {version = "^0.49.0", optional = true}
5151
sentence-transformers = {version = "^3.0.0", optional = true }
5252
ollama = {version = "^0.4.4", optional = true}
53-
spacy = {version = "3.8.3", optional = true}
53+
spacy = {version = "3.8.7", optional = true}
5454
rapidfuzz = {version ="^3.12.2", optional = true}
55+
numpy = [
56+
{ version = "^2.0.0", python = ">=3.9,<3.13" },
57+
{ version = "^2.1.0", python = ">=3.13,<3.14" }
58+
]
59+
scipy = [
60+
{ version = "^1.13.0", python = ">=3.9,<3.13" },
61+
{ version = "^1.15.0", python = ">=3.13,<3.14" }
62+
]
5563

5664
[tool.poetry.group.dev.dependencies]
5765
urllib3 = "<2"

0 commit comments

Comments
 (0)