Skip to content

Commit 7e6ed26

Browse files
authored
Support for Python 3.13 (#166)
* Support for Python 3.13 * Remove dependency to faiss-cpu
1 parent 3d6317a commit 7e6ed26

File tree

6 files changed

+7
-5
lines changed

6 files changed

+7
-5
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
strategy:
1111
fail-fast: false
1212
matrix:
13-
python-version: ['3.11', '3.12']
13+
python-version: ['3.11', '3.12', '3.13']
1414

1515
steps:
1616
- uses: actions/checkout@v4

.github/workflows/run-examples.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
python-version: ['3.11', '3.12']
16+
python-version: ['3.11', '3.12', '3.13']
1717

1818
steps:
1919
- uses: actions/checkout@v4

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Pro Tip: When writing loops and conditionals with `repeat`, `for`, and `if-then-
3030

3131
## Interpreter Installation
3232

33-
The interpreter has been tested with Python versions **3.11** and **3.12**, on macOS and Linux. For Windows, please use WSL.
33+
The interpreter has been tested with Python versions **3.11**, **3.12**, and **3.13**, on macOS and Linux. For Windows, please use WSL.
3434

3535
To install the requirements for `pdl`, execute the command:
3636

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Pro Tip: When writing loops and conditionals with `repeat`, `for`, and `if-then-
3535

3636
## Interpreter Installation
3737

38-
The interpreter has been tested with Python versions **3.11** and **3.12**, on macOS and Linux. For Windows, please use WSL.
38+
The interpreter has been tested with Python versions **3.11**, **3.12**, and **3.13**, on macOS and Linux. For Windows, please use WSL.
3939

4040
To install the requirements for `pdl`, execute the command:
4141

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ dev = [
4141
examples = [
4242
"wikipedia~=1.0",
4343
"textdistance~=4.0",
44-
"faiss-cpu~=1.0",
4544
"datasets>2,<4",
4645
"sympy~=1.0"
4746
]

tests/test_runtime_errors.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ def test_parser_regex():
6464
assert (
6565
str(exc.value.message)
6666
== "Fail to parse with regex (: error('missing ), unterminated subpattern at position 0')"
67+
) or (
68+
str(exc.value.message)
69+
== "Fail to parse with regex (: PatternError('missing ), unterminated subpattern at position 0')"
6770
)
6871

6972

0 commit comments

Comments
 (0)