Skip to content

Commit 905a069

Browse files
authored
Merge pull request #98 from MAIF/feature/update_python_v38_v39
Support python 3.8
2 parents da1f66e + 63e8a64 commit 905a069

File tree

8 files changed

+13
-10
lines changed

8 files changed

+13
-10
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
max-parallel: 1
1010
matrix:
11-
python-version: [3.6, 3.7]
11+
python-version: [3.6, 3.7, 3.8]
1212
steps:
1313
- uses: actions/checkout@v2
1414
- name: Set up Python ${{ matrix.python-version }}
@@ -32,8 +32,8 @@ jobs:
3232
- name: Build python package
3333
run: |
3434
python setup.py sdist bdist_wheel
35-
- name: Trigger next workflow
36-
if: success() && startsWith(github.ref, 'refs/tags') && matrix.python-version == 3.7
35+
- name: Deploy to PyPI
36+
if: success() && startsWith(github.ref, 'refs/tags') && matrix.python-version == 3.8
3737
uses: pypa/gh-action-pypi-publish@master
3838
with:
3939
user: __token__

requirements.dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ pytest==5.2.3
2525
pytest-cov==2.8.1
2626
scikit-learn==0.23.2
2727
xgboost==1.0.0
28-
nbformat==5.0.8
28+
nbformat>4.2.0
2929
numba==0.51.2

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 1.0.1
2+
current_version = 1.1.0
33
commit = True
44
tag = True
55

setup.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
'dash-html-components==1.1.1',
2121
'dash-renderer==1.8.3',
2222
'dash-table==4.11.0',
23-
'nbformat==5.0.8',
23+
'nbformat>4.2.0',
2424
'numba==0.51.2',
2525
]
2626

@@ -30,8 +30,8 @@
3030

3131
setup(
3232
name="shapash", # Replace with your own username
33-
version="1.0.1",
34-
python_requires='>3.5, < 3.8',
33+
version="1.1.0",
34+
python_requires='>3.5, < 3.9',
3535
url='https://github.com/MAIF/shapash',
3636
author="Yann Golhen, Sebastien Bidault, Yann Lagre, Maxime Gendre",
3737
author_email="[email protected]",
@@ -42,6 +42,7 @@
4242
"Programming Language :: Python :: 3",
4343
'Programming Language :: Python :: 3.6',
4444
'Programming Language :: Python :: 3.7',
45+
'Programming Language :: Python :: 3.8',
4546
"License :: OSI Approved :: Apache Software License",
4647
"Operating System :: OS Independent",
4748
],

shapash/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33

44
__author__ = """Yann Golhen, Yann Lagré, Sebastien Bidault, Maxime Gendre, Thomas Bouche, Johann Martin"""
55
6-
__version__ = '1.0.1'
6+
__version__ = '1.1.0'
8.63 KB
Binary file not shown.

tests/unit_tests/utils/test_load_smartpredictor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ def test_load_smartpredictor_1(self):
2828
pkl_file = path.join(current, 'data/predictor_to_load_37.pkl')
2929
elif str(sys.version)[0:3] == '3.6':
3030
pkl_file = path.join(current, 'data/predictor_to_load_36.pkl')
31+
elif str(sys.version)[0:3] == '3.8':
32+
pkl_file = path.join(current, 'data/predictor_to_load_38.pkl')
3133

3234
predictor2 = load_smartpredictor(pkl_file)
3335

tests/unit_tests/utils/test_shap_backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def test_check_explainer_1(self):
7878
Unit test check explainer 1
7979
"""
8080
explainer = None
81-
self.assertRaises(ValueError, check_explainer(explainer))
81+
assert check_explainer(explainer) == None
8282

8383
def test_check_explainer_2(self):
8484
"""

0 commit comments

Comments
 (0)