Skip to content

Commit 2b4014e

Browse files
authored
Merge pull request #10 from edahelsinki/python311
Enable Python 3.11 and test it
2 parents e9ddb6a + 5764a8c commit 2b4014e

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

.github/workflows/python-pytest.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
strategy:
1818
matrix:
19-
python-version: ["3.8", "3.9", "3.10"]
19+
python-version: ["3.8", "3.9", "3.10", "3.11"]
2020

2121
steps:
2222
- uses: actions/checkout@v3

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ Alternatively you can download the repo and run `python -m build` to build a whe
5252

5353
### Numba
5454

55-
SLISE uses [Numba](https://numba.pydata.org/) to speed up the calculations. You might want to install the following optional libraries to get the most out of Numba:
55+
SLISE uses [Numba](https://numba.pydata.org/) to speed up the calculations. You might want to install the optional libraries to get the most out of Numba:
5656

5757
```sh
58-
pip install tbb icc_rt
58+
pip install "slise[tbb]"
5959
```
6060

6161
## Other implementations

pyproject.toml

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "slise"
3-
version = "2.2.2"
3+
version = "2.2.3"
44
authors = [{ name = "Anton Björklund", email = "[email protected]" }]
55
description = "The SLISE algorithm for robust regression and explanations of black box models"
66
readme = "README.md"
@@ -18,9 +18,8 @@ classifiers = [
1818
"Topic :: Scientific/Engineering :: Artificial Intelligence",
1919
"Topic :: Scientific/Engineering :: Visualization",
2020
]
21-
requires-python = ">=3.6,<3.11" # Python>=3.11 is not supported due to PyLBFGS not being updated to cython>=3.0
21+
requires-python = ">=3.6"
2222
dependencies = [
23-
"cython < 3.0", # PyLBFGS is not updated to support cython>=3.0
2423
"numpy >= 1.20",
2524
"scipy >= 1.6",
2625
"numba >= 0.53",
@@ -29,7 +28,7 @@ dependencies = [
2928
]
3029

3130
[project.optional-dependencies]
32-
dev = ["pytest", "black[jupyter]", "pylint", "icc_rt", "IPython"]
31+
dev = ["pytest", "black[jupyter]", "pylint", "IPython"]
3332
tbb = ["tbb"]
3433

3534
[project.urls]

tests/test_optim.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,9 @@ def test_weights():
250250
regularised_regression(X, Y, 1e-4, 1e-4, weight=w2),
251251
)
252252
assert np.allclose(
253-
regularised_regression(X2, Y2, 1e-4, 1e-4, weight=w1, max_iterations=300),
254-
regularised_regression(X, Y, 1e-4, 1e-4, weight=w3, max_iterations=300),
253+
regularised_regression(X2, Y2, 1e-4, 1e-4, weight=w1),
254+
regularised_regression(X, Y, 1e-4, 1e-4, weight=w3),
255+
atol=1e-5
255256
)
256257

257258

0 commit comments

Comments
 (0)