Skip to content

Commit

Permalink
Merge pull request #512 from ThomasBouche/feature/suport_python311
Browse files Browse the repository at this point in the history
Feature/suport python311
  • Loading branch information
ThomasBouche authored Dec 1, 2023
2 parents 3b5640c + 8d0fb29 commit 06cfe7d
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
max-parallel: 1
matrix:
python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -33,7 +33,7 @@ jobs:
run: |
python setup.py sdist bdist_wheel
- name: Deploy to PyPI
if: success() && startsWith(github.ref, 'refs/tags') && matrix.python-version == '3.10'
if: success() && startsWith(github.ref, 'refs/tags') && matrix.python-version == '3.11'
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ Shapash can use category-encoders object, sklearn ColumnTransformer or simply fe

## 🛠 Installation

Shapash is intended to work with Python versions 3.8 to 3.10. Installation can be done with pip:
Shapash is intended to work with Python versions 3.8 to 3.11. Installation can be done with pip:

```python
pip install shapash
Expand Down
2 changes: 1 addition & 1 deletion docs/installation-instructions/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Installation instructions
Installing
----------

**Shapash** is intended to work with Python versions 3.8 to 3.10. Installation can be done with pip:
**Shapash** is intended to work with Python versions 3.8 to 3.11. Installation can be done with pip:

.. code:: bash
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
setup(
name="shapash",
version=version_d['__version__'],
python_requires='>3.7, <3.11',
python_requires='>3.7, <3.12',
url='https://github.com/MAIF/shapash',
author="Yann Golhen, Sebastien Bidault, Yann Lagre, Maxime Gendre",
author_email="[email protected]",
Expand All @@ -74,6 +74,7 @@
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
],
Expand Down
4 changes: 3 additions & 1 deletion tests/unit_tests/explainer/test_smart_explainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -692,9 +692,11 @@ def test_load_1(self):
pkl_file = path.join(current, 'data/xpl_to_load_39.pkl')
elif str(sys.version)[0:4] == '3.10':
pkl_file = path.join(current, 'data/xpl_to_load_310.pkl')
elif str(sys.version)[0:4] == '3.11':
pkl_file = path.join(current, 'data/xpl_to_load_311.pkl')
else:
raise NotImplementedError

xpl.save(pkl_file)
xpl2 = SmartExplainer.load(pkl_file)

Expand Down
2 changes: 2 additions & 0 deletions tests/unit_tests/utils/test_load_smartpredictor.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ def test_load_smartpredictor_1(self):
pkl_file = path.join(current, 'data/predictor_to_load_38.pkl')
elif str(sys.version)[0:3] == '3.9':
pkl_file = path.join(current, 'data/predictor_to_load_39.pkl')
elif str(sys.version)[0:4] == '3.11':
pkl_file = path.join(current, 'data/predictor_to_load_311.pkl')
else:
raise NotImplementedError

Expand Down

0 comments on commit 06cfe7d

Please sign in to comment.