Skip to content

Commit 89e87cb

Browse files
committed
feat!: add initial support for python 3.12
NOTE: extras umap-learn is not supported in Python 3.12 since umap-learn does not currently support Python 3.12. BREAKING CHANGE: Support for Python 3.8 is dropped.
1 parent f7b00be commit 89e87cb

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

.github/workflows/test.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
matrix:
2222
# Test against all supported Python minor versions
2323
# Specified only minor version: the latest patch is used
24-
python-version: ['3.11', '3.10', '3.9', '3.8']
24+
python-version: ['3.12', '3.11', '3.10', '3.9']
2525
steps:
2626
- uses: actions/checkout@v3
2727
- uses: actions/setup-python@v4

pyproject.toml

+8-7
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@ exclude = ["tests"]
1010
readme = "README.md"
1111

1212
[tool.poetry.dependencies]
13-
python = ">=3.8, <3.12"
13+
python = ">=3.9, <=3.12"
1414
ipykernel = "*"
15-
pandas = [
16-
{ version = ">=1.5, <2.1", python = "~3.8" },
17-
{ version = ">=1.5, <2.3", python = ">=3.9" }
15+
pandas = ">=1.5, <2.3"
16+
numpy = [
17+
{ version = "*", python = "<3.12" },
18+
{ version = "^1.26.0", python = ">=3.12" },
1819
]
19-
numpy = "*"
20+
scipy = { version = "^1.11", python = ">=3.12" }
2021
matplotlib = "^3.3"
2122
seaborn = "^0.13"
2223
plotly = ">=4.0.0, <6"
@@ -26,12 +27,12 @@ ipywidgets = ">=7.5, <9"
2627
colorlover = "*"
2728
scikit-learn = ">=0.22.1"
2829
nbconvert = "^7.0.0" # Required for exporting to HTML
29-
umap-learn = { version = "^0.5.4", optional = true}
30+
umap-learn = { version = "^0.5.4", optional = true, python = "<3.12"}
3031
# umap-learn dependes on numba. It is specified explicitly to install
3132
# a newer version, since by default it installs an older version of numba,
3233
# which also installs an older version of llmvlite, which is incompatible
3334
# with newer version of LLVM binaries.
34-
numba = { version = "^0.57", optional = true }
35+
numba = { version = "^0.59", optional = true }
3536
pyarrow = { version = "^14.0.1", optional = true }
3637
isort = "^5.10.1"
3738

0 commit comments

Comments
 (0)