Skip to content

Commit a86d2cf

Browse files
authored
Merge pull request #48 from eli5-org/py39
Drop python<3.9, support modern libraries
2 parents 8eed51a + 0756b9f commit a86d2cf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+580
-841
lines changed

.github/workflows/python-package.yml

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,24 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
include:
20-
- python-version: '3.6'
20+
- python-version: '3.10'
2121
tox-env: 'mypy'
22-
- python-version: '3.9'
22+
- python-version: '3.10'
2323
tox-env: 'docs'
24-
- python-version: '3.6'
25-
tox-env: 'py36'
26-
- python-version: '3.6'
27-
tox-env: 'py36-nodeps'
28-
- python-version: '3.6'
29-
tox-env: 'py36-extra'
30-
- python-version: '3.7'
31-
tox-env: 'py37'
32-
- python-version: '3.8'
33-
tox-env: 'py38'
34-
- python-version: '3.8'
35-
tox-env: 'py38-nodeps'
3624
- python-version: '3.9'
3725
tox-env: 'py39'
38-
- python-version: '3.9'
39-
tox-env: 'py39-nodeps'
26+
- python-version: '3.10'
27+
tox-env: 'py310'
28+
- python-version: '3.10'
29+
tox-env: 'py310-nodeps'
30+
- python-version: '3.10'
31+
tox-env: 'py310-extra'
32+
- python-version: '3.11'
33+
tox-env: 'py311'
34+
- python-version: '3.12'
35+
tox-env: 'py312'
36+
- python-version: '3.13'
37+
tox-env: 'py313'
4038

4139
steps:
4240
- uses: actions/checkout@v2

CHANGES.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
Changelog
22
=========
33

4+
0.14.0 (?)
5+
-------------------
6+
7+
* drop support for python 3.6, 3.7, 3.8
8+
* add support for python 3.11, 3.12, 3.13
9+
410
0.13.0 (2022-05-11)
511
-------------------
612

_ci/runtests_default.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.

_ci/runtests_default_with_crfsuite.sh

Lines changed: 0 additions & 10 deletions
This file was deleted.

_ci/runtests_extra.sh

Lines changed: 0 additions & 12 deletions
This file was deleted.

_ci/runtests_nodeps.sh

Lines changed: 0 additions & 13 deletions
This file was deleted.

docs/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ sphinx_rtd_theme
44
ipython
55
scipy
66
numpy > 1.9.0
7-
scikit-learn >= 0.20
8-
typing
7+
pandas
8+
scikit-learn >= 1.6.0

docs/source/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def __getattr__(cls, name):
5454
'keras.models',
5555
'keras.layers',
5656
'keras.preprocessing.image',
57-
'pandas',
57+
# 'pandas',
5858
'PIL',
5959
'matplotlib',
6060
'matplotlib.pyplot',
@@ -69,7 +69,7 @@ def __getattr__(cls, name):
6969

7070
def setup(app):
7171
# see https://github.com/snide/sphinx_rtd_theme/issues/117
72-
app.add_stylesheet("rtfd_overrides.css")
72+
app.add_css_file("rtfd_overrides.css")
7373

7474
suppress_warnings = ['image.nonlocal_uri']
7575

@@ -123,7 +123,7 @@ def setup(app):
123123
#
124124
# This is also used if you do content translation via gettext catalogs.
125125
# Usually you set "language" from the command line for these cases.
126-
language = None
126+
language = 'en'
127127

128128
# There are two options for replacing |today|: either, you set today to some
129129
# non-false value, then it is used:

docs/source/libraries/keras.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Keras_ is "a high-level neural networks API, written in Python and capable of ru
88
Keras can be used for many Machine Learning tasks, and it has support for both popular
99
and experimental neural network architectures.
1010

11-
Note: only TensorFlow 1.x is supported, recommended Keras version is 2.3.1 or earlier.
11+
Note: only TensorFlow 1.x is supported, recommended Keras version is 2.3.1 or earlier, and eli5 version 0.13 or earlier, as you can't install TensorFlow 1.x on Python 3.9+ which is required for eli5 0.14+
1212

1313
.. _Keras: https://keras.io/
1414

docs/source/libraries/xgboost.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ XGBoost
66
XGBoost_ is a popular Gradient Boosting library with Python interface.
77
eli5 supports :func:`eli5.explain_weights` and :func:`eli5.explain_prediction`
88
for XGBClassifer_, XGBRegressor_ and Booster_ estimators. It is tested for
9-
xgboost >= 0.6a2.
9+
xgboost >= 0.6a2 and < 2.0.0.
10+
Versions starting from 2.0.0 likely produce incorrect results in
11+
:func:`eli5.explain_prediction`, and will issue a warning.
1012

1113
.. _XGBoost: https://github.com/dmlc/xgboost
1214
.. _XGBClassifer: https://xgboost.readthedocs.io/en/latest/python/python_api.html#xgboost.XGBClassifier

0 commit comments

Comments
 (0)