Skip to content

Commit

Permalink
chore: make matplotlib and pandas in dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Yazawazi committed May 17, 2024
1 parent 482a470 commit 7823a29
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 28 deletions.
18 changes: 3 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -538,31 +538,19 @@ def gray_it(image: funix.hint.BytesImage) -> funix.hint.Image:

### Additional type support

1. If you want to use `matplotlib` features, install funix by:

```bash
pip install funix[plot]
```

2. If you want to use `pandas` features, install funix by:

```bash
pip install funix[pandas]
```

3. If you want to use `git` related features (use project from GitHub), install funix by:
1. If you want to use `git` related features (use project from GitHub), install funix by:

```bash
pip install funix[git]
```

4. If you want to use `ipython` features, install funix by:
2. If you want to use `ipython` features, install funix by:

```bash
pip install funix[ipython]
``
5. If you need to have more than one feature, you can try installing them together:
3. If you need to have more than one feature, you can try installing them together:
```bash
pip install funix[all]
Expand Down
18 changes: 5 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,33 +24,25 @@ dependencies = [
"plac>=1.3.5",
"gitignore-parser>=0.1.9",
"flask-sock>=0.7.0",
"SQLAlchemy>=2.0.23"
]

[project.optional-dependencies]
plot = [
"SQLAlchemy>=2.0.23",
"matplotlib>=3.4.3",
"mpld3>=0.5.8",
"pandera>=0.17.2",
"pandas>=2.0.3",
]

[project.optional-dependencies]
git = [
"GitPython>=3.1.31",
]
ipython = [
"IPython>=8.14.0",
"ipywidgets>=8.0.7",
]
pandas = [
"pandera>=0.17.2",
"pandas>=2.0.3",
]
all = [
"matplotlib>=3.4.3",
"mpld3>=0.5.8",
"GitPython>=3.1.31",
"IPython>=8.14.0",
"ipywidgets>=8.0.7",
"pandera>=0.17.2",
"pandas>=2.0.3",
]

[project.urls]
Expand Down

0 comments on commit 7823a29

Please sign in to comment.