Skip to content

Commit 10f11d4

Browse files
authored
build: support python 3.13 (#8965)
* support python 3.13 * release note * add python version info to contributing guide * better explanation
1 parent e33a9e4 commit 10f11d4

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

CONTRIBUTING.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,10 @@ next contribution!
147147

148148
### Setting up your development environment
149149

150+
*To run Haystack tests locally, ensure your development environment uses Python >=3.9 and <3.13.*
151+
Some optional dependencies are not yet compatible with Python 3.13
152+
(see [this PR](https://github.com/deepset-ai/haystack/pull/8965) for details).
153+
150154
Haystack makes heavy use of [Hatch](https://hatch.pypa.io/latest/), a Python project manager that we use to set up the
151155
virtual environments, build the project, and publish packages. As you can imagine, the first step towards becoming a
152156
Haystack contributor is installing Hatch. There are a variety of installation methods depending on your operating system

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ dynamic = ["version"]
88
description = "LLM framework to build customizable, production-ready LLM applications. Connect components (models, vector DBs, file converters) to pipelines or agents that can interact with your data."
99
readme = "README.md"
1010
license = "Apache-2.0"
11-
requires-python = ">=3.8,<3.13"
11+
requires-python = ">=3.8"
1212
authors = [{ name = "deepset.ai", email = "[email protected]" }]
1313
keywords = [
1414
"BERT",
@@ -39,6 +39,7 @@ classifiers = [
3939
"Programming Language :: Python :: 3.10",
4040
"Programming Language :: Python :: 3.11",
4141
"Programming Language :: Python :: 3.12",
42+
"Programming Language :: Python :: 3.13",
4243
"Topic :: Scientific/Engineering :: Artificial Intelligence",
4344
]
4445
dependencies = [
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
enhancements:
3+
- |
4+
Haystack now officially supports Python 3.13.
5+
Some components and integrations may not yet be compatible.
6+
Specifically, the `NamedEntityExtractor` does not work with Python 3.13 when using the `spacy` backend.
7+
Additionally, you may encounter issues installing `openai-whisper`, which is required by the
8+
`LocalWhisperTranscriber` component, if you use `uv` or `poetry` for installation.
9+
In this case, we recommend using `pip` for installation.

0 commit comments

Comments
 (0)