Skip to content

Commit bdd46ae

Browse files
committed
Require Python 3.11 or later (#1341)
1 parent 2f00f4e commit bdd46ae

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎.github/workflows/tests.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
python-version: ["3.9", "3.10", "3.11", "3.12"]
15+
python-version: ["3.11", "3.12"]
1616
env:
1717
MPLBACKEND: Agg
1818
steps:

‎README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Python code for the book *[Artificial Intelligence: A Modern Approach](http://ai
99

1010
The 4th edition of the book is out now in 2020, and thus we are updating the code. All code here will reflect the 4th edition. Changes include:
1111

12-
- Move from Python 3.5 to 3.7, and on to modern Python (the code now runs on Python 3.9 and up).
12+
- Move from Python 3.5 to 3.7, and on to modern Python (the code now runs on Python 3.11 and up).
1313
- More emphasis on Jupyter (Ipython) notebooks.
1414
- More projects using external packages (tensorflow, etc.).
1515

@@ -29,9 +29,9 @@ When complete, this project will have Python implementations for all the pseudoc
2929
- **`tests/`** — a lightweight test suite (e.g. `tests/test_search.py`), using `assert` statements, designed for use with [`py.test`](http://pytest.org/latest/) but also usable on their own.
3030
- **`lite/`** — a [JupyterLite](https://jupyterlite.readthedocs.io) proof-of-concept that runs a few notebooks entirely in the browser via [Pyodide](https://pyodide.org), no install required (try it [here](https://aimacode.github.io/aima-python/lite/); see [`lite/README.md`](lite/README.md) and [issue #1072](https://github.com/aimacode/aima-python/issues/1072)).
3131

32-
# Python 3.9 and up
32+
# Python 3.11 and up
3333

34-
The code for the 3rd edition was in Python 3.5; the 4th edition code targets Python 3.7 and runs on Python 3.9 and up, but does not run in Python 2. Continuous integration runs the full test suite (including the deep-learning modules) on Python 3.9, 3.10, 3.11 and 3.12; note that some optional dependencies (`tensorflow`, `keras`, `opencv-python`) do not yet ship wheels for the very latest releases (3.13+), so one of those versions is recommended for running everything. You can [install Python](https://www.python.org/downloads) or use a browser-based Python interpreter such as [repl.it](https://repl.it/languages/python3).
34+
The code for the 3rd edition was in Python 3.5; the 4th edition code targets Python 3.7 and runs on Python 3.11 and up, but does not run in Python 2. Continuous integration runs the full test suite (including the deep-learning modules) on Python 3.11 and 3.12; note that some optional dependencies (`tensorflow`, `keras`, `opencv-python`) do not yet ship wheels for the very latest releases (3.13+), so one of those versions is recommended for running everything. You can [install Python](https://www.python.org/downloads) or use a browser-based Python interpreter such as [repl.it](https://repl.it/languages/python3).
3535
The algorithms live in the `aima` package, so you import them as `from aima.search import astar_search` (or `from aima import search`). You can install the package in editable mode with `pip install -e .` and then run the code in an IDE, or from the command line with `python -i -m aima.search` where the `-i` option puts you in an interactive loop where you can run Python functions. All notebooks are available in a [binder environment](https://mybinder.org/v2/gh/aimacode/aima-python/master). Alternatively, visit [jupyter.org](http://jupyter.org/) for instructions on setting up your own Jupyter notebook environment.
3636

3737
Features from Python 3.6 and 3.7 that we will be using for this version of the code:

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "aima"
77
version = "4.0.0"
88
description = "Python implementations of the algorithms from Artificial Intelligence: A Modern Approach (4th edition)"
99
readme = "README.md"
10-
requires-python = ">=3.9"
10+
requires-python = ">=3.11"
1111
license = { file = "LICENSE" }
1212
authors = [{ name = "aima-python contributors" }]
1313
urls = { Homepage = "https://github.com/aimacode/aima-python", Documentation = "https://aimacode.github.io/aima-python/" }

0 commit comments

Comments
 (0)