Skip to content

Commit

Permalink
Merge pull request #62 from MAIF/fix/warnings
Browse files Browse the repository at this point in the history
warning fix; pandas>=2 ; 
support of python 3.11;support drop python 3.8 
github action updated for pyproject.toml
  • Loading branch information
guillaume-vignal authored Sep 16, 2024
2 parents eaba28e + bb7be1f commit 3a16f0f
Show file tree
Hide file tree
Showing 7 changed files with 708 additions and 95 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,35 @@ jobs:
strategy:
max-parallel: 1
matrix:
python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel setuptools
pip install flake8 pytest
python -m pip install --upgrade pip
pip install build flake8 pytest
if [ -f requirements.dev.txt ]; then pip install -r requirements.dev.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
python -m pytest
- name: Build python package
run: |
python setup.py sdist bdist_wheel
python -m build
- name: Deploy to PyPI
if: success() && startsWith(github.ref, 'refs/tags') && matrix.python-version == '3.10'
uses: pypa/gh-action-pypi-publish@master
Expand Down
4 changes: 2 additions & 2 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ build:

# Optionally set the version of Python and requirements required to build your docs
python:
install:
- requirements: requirements.dev.txt
install:
- requirements: requirements.dev.txt
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ sd.generate_report(

## 🛠 Installation

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

```
pip install eurybia
Expand Down
2 changes: 1 addition & 1 deletion eurybia/core/smartplotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def generate_fig_univariate_continuous(
-------
plotly.graph_objs._figure.Figure
"""
df_all.loc[:, col].fillna(0, inplace=True)
df_all[col] = df_all[col].fillna(0)
datasets = [df_all[df_all[hue] == val][col].values.tolist() for val in df_all[hue].unique()]
group_labels = [str(val) for val in df_all[hue].unique()]
colors = list(self._style_dict["univariate_cont_bar"].values())
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ authors = [
]
description = "Eurybia monitor model drift over time and securize model deployment with data validation"
readme = "README.md"
requires-python = ">=3.8"
requires-python = ">=3.9"
license = {text = "Apache Software License 2.0"}
classifiers = [
"Programming Language :: Python :: 3",
"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",
]
dependencies = [
"pandas",
"pandas>=2",
"catboost>=1.0.1",
"panel>=1.4.1",
"ipywidgets>=7.4.2",
Expand Down
2 changes: 1 addition & 1 deletion requirements.dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ catboost>=1.0.1
category-encoders>=2.6.0
lightgbm>=2.3.1
numpy>=1.18.0
pandas
pandas>=2
plotly>=4.12.0
shapash>=2.0.0
Sphinx==4.5.0
Expand Down
Loading

0 comments on commit 3a16f0f

Please sign in to comment.