Skip to content

Commit 6711e59

Browse files
committed
drop importlib_metadata, bump to python 3.9 minimum
1 parent b5f61fc commit 6711e59

File tree

10 files changed

+11
-16
lines changed

10 files changed

+11
-16
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Documentation is available on [ReadTheDocs](https://jupyter-ai.readthedocs.io/en
2222

2323
You will need to have installed the following software to use Jupyter AI:
2424

25-
- Python 3.8 - 3.12
25+
- Python 3.9 - 3.12
2626
- JupyterLab 4 or Notebook 7
2727

2828
In addition, you will need access to at least one model provider.

docs/source/users/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ please see the {doc}`developer's guide </developers/index>`.
1111
## Prerequisites
1212

1313
You can run Jupyter AI on any system that can run a supported Python version
14-
from 3.8 to 3.12, including recent Windows, macOS, and Linux versions.
14+
from 3.9 to 3.12, including recent Windows, macOS, and Linux versions. Python
15+
3.8 support is also available in Jupyter AI v2.29.1 and below.
1516

1617
If you use `conda`, you can install Python 3.12 in your environment by running:
1718

packages/jupyter-ai-magics/jupyter_ai_magics/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import logging
22
from typing import Dict, List, Literal, Optional, Tuple, Type, Union
33

4-
from importlib_metadata import entry_points
4+
from importlib.metadata import entry_points
55
from jupyter_ai_magics.aliases import MODEL_ID_ALIASES
66
from jupyter_ai_magics.embedding_providers import BaseEmbeddingsProvider
77
from jupyter_ai_magics.providers import BaseProvider

packages/jupyter-ai-magics/pyproject.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@ build-backend = "hatchling.build"
66
name = "jupyter_ai_magics"
77
readme = "README.md"
88
license = { file = "LICENSE" }
9-
requires-python = ">=3.8"
9+
requires-python = ">=3.9"
1010
classifiers = [
1111
"Framework :: Jupyter",
1212
"License :: OSI Approved :: BSD License",
1313
"Programming Language :: Python",
1414
"Programming Language :: Python :: 3",
15-
"Programming Language :: Python :: 3.8",
1615
"Programming Language :: Python :: 3.9",
1716
"Programming Language :: Python :: 3.10",
1817
"Programming Language :: Python :: 3.11",
@@ -23,7 +22,6 @@ dynamic = ["version", "description", "authors", "urls", "keywords"]
2322

2423
dependencies = [
2524
"ipython",
26-
"importlib_metadata>=5.2.0",
2725
"langchain>=0.3.0,<0.4.0",
2826
"langchain_community>=0.3.0,<0.4.0",
2927
# pydantic>=2.7.4 is required by langchain >=0.3.0

packages/jupyter-ai-module-cookiecutter/{{cookiecutter.root_dir_name}}/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ extension.
66

77
## Requirements
88

9-
- Python 3.8 - 3.12
9+
- Python 3.9 - 3.12
1010
- JupyterLab 4
1111

1212
## Install

packages/jupyter-ai-module-cookiecutter/{{cookiecutter.root_dir_name}}/pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,14 @@ build-backend = "hatchling.build"
66
name = "{{ cookiecutter.python_name }}"
77
readme = "README.md"
88
license = { file = "LICENSE" }
9-
requires-python = ">=3.8"
9+
requires-python = ">=3.9"
1010
classifiers = [
1111
"Framework :: Jupyter",
1212
"Framework :: Jupyter :: JupyterLab",
1313
"Framework :: Jupyter :: JupyterLab :: 4",
1414
"License :: OSI Approved :: BSD License",
1515
"Programming Language :: Python",
1616
"Programming Language :: Python :: 3",
17-
"Programming Language :: Python :: 3.8",
1817
"Programming Language :: Python :: 3.9",
1918
"Programming Language :: Python :: 3.10",
2019
"Programming Language :: Python :: 3.11",

packages/jupyter-ai-test/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ environment. This package should never published on NPM or PyPI.
66

77
## Requirements
88

9-
- Python 3.8 - 3.12
9+
- Python 3.9 - 3.12
1010
- JupyterLab 4
1111

1212
## Install

packages/jupyter-ai-test/pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,14 @@ build-backend = "hatchling.build"
66
name = "jupyter_ai_test"
77
readme = "README.md"
88
license = { file = "LICENSE" }
9-
requires-python = ">=3.8"
9+
requires-python = ">=3.9"
1010
classifiers = [
1111
"Framework :: Jupyter",
1212
"Framework :: Jupyter :: JupyterLab",
1313
"Framework :: Jupyter :: JupyterLab :: 4",
1414
"License :: OSI Approved :: BSD License",
1515
"Programming Language :: Python",
1616
"Programming Language :: Python :: 3",
17-
"Programming Language :: Python :: 3.8",
1817
"Programming Language :: Python :: 3.9",
1918
"Programming Language :: Python :: 3.10",
2019
"Programming Language :: Python :: 3.11",

packages/jupyter-ai/jupyter_ai/extension.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import traitlets
99
from dask.distributed import Client as DaskClient
10-
from importlib_metadata import entry_points
10+
from importlib.metadata import entry_points
1111
from jupyter_ai_magics import BaseProvider, JupyternautPersona
1212
from jupyter_ai_magics.utils import get_em_providers, get_lm_providers
1313
from jupyter_events import EventLogger

packages/jupyter-ai/pyproject.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "hatchling.build"
66
name = "jupyter_ai"
77
readme = "README.md"
88
license = { file = "LICENSE" }
9-
requires-python = ">=3.8"
9+
requires-python = ">=3.9"
1010
classifiers = [
1111
"Framework :: Jupyter",
1212
"Framework :: Jupyter :: JupyterLab",
@@ -16,7 +16,6 @@ classifiers = [
1616
"License :: OSI Approved :: BSD License",
1717
"Programming Language :: Python",
1818
"Programming Language :: Python :: 3",
19-
"Programming Language :: Python :: 3.8",
2019
"Programming Language :: Python :: 3.9",
2120
"Programming Language :: Python :: 3.10",
2221
"Programming Language :: Python :: 3.11",
@@ -25,7 +24,6 @@ classifiers = [
2524
dependencies = [
2625
# jupyter_server>=2.4 is required in JL4
2726
"jupyter_server>=2.4,<3",
28-
"importlib_metadata>=5.2.0",
2927
# pydantic>=2.7.4 is required by langchain >=v0.3.0
3028
# pydantic>=2.9.0 is required by ollama >=0.4.0
3129
"pydantic>=2.9.0,<3",

0 commit comments

Comments
 (0)