Skip to content

Commit d9dcffe

Browse files
Matic LubejzigaLuksic
Matic Lubej
andauthored
Merge separate extras into a single one (#753)
* avoid underscore in extras * switch to single extra extra --------- Co-authored-by: Ziga Luksic <[email protected]>
1 parent 5fbdbb8 commit d9dcffe

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

README.md

+2-5
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,6 @@ shapely
8181
fiona
8282
```
8383

84-
One of the `[MASK_EXTRA]` dependencies is the `lightgbm` package. On Windows it requires 64 bit Python distribution. If having problems during installation please check [LightGBM installation guide](https://lightgbm.readthedocs.io/en/latest/Installation-Guide.html).
85-
8684
### PyPI distribution
8785

8886
`eo-learn` is available on PyPI and can be installed with:
@@ -94,16 +92,15 @@ pip install eo-learn
9492
For some modules there are extra dependencies available, related to specific tasks. These were kept separate in order to keep the `eo-learn` installation light. You can install these with, e.g.:
9593

9694
```bash
97-
pip install "eo-learn[MASK_EXTRA]"
95+
pip install "eo-learn[EXTRA]"
9896
pip install "eo-learn[VISUALIZATION]"
9997
```
10098

10199
The full list (including their descriptions) is available here:
102100

103101
- `RAY` for installing ray and its dependencies
104102
- `ZARR` for installing the zarr functionality for chunked timestamp saving/loading
105-
- `FEATURES_EXTRA` for installing interpolation- and clustering-specific dependencies
106-
- `MASK_EXTRA` for installing `s2cloudless` for cloud masking
103+
- `EXTRA` for installing interpolation- and clustering-specific dependencies, or for installing `s2cloudless` in cloud masking
107104
- `VISUALIZATION` for using plotting libraries and utilities
108105
- `FULL` for installing all dependencies described so far
109106
- `DOCS` for developers, dependencies for building documentation

eolearn/features/extra/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
"""
2-
A collection of EOTasks with non-standard dependencies. Use the extra `FEATURES_EXTRA` to install dependencies or
2+
A collection of EOTasks with non-standard dependencies. Use the extra `[EXTRA]` to install dependencies or
33
install the module-specific dependencies by hand.
44
"""

eolearn/mask/extra/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
"""
2-
A collection of EOTasks with non-standard dependencies. Use the extra `MASK_EXTRA` to install dependencies or
2+
A collection of EOTasks with non-standard dependencies. Use the extra `[EXTRA]` to install dependencies or
33
install the module-specific dependencies by hand.
44
"""

pyproject.toml

+2-3
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,10 @@ dependencies = [
6262

6363
[project.optional-dependencies]
6464

65-
full = ["eo-learn[RAY,ZARR,FEATURES_EXTRA,MASK_EXTRA,VISUALIZATION]"]
65+
full = ["eo-learn[RAY,ZARR,EXTRA,VISUALIZATION]"]
6666
ray = ["ray[default]"]
6767
zarr = ["s3fs", "zarr"]
68-
features_extra = ["numba>=0.53.0", "scikit-learn", "scipy"]
69-
mask_extra = ["s2cloudless"]
68+
extra = ["numba>=0.53.0", "scikit-learn", "scipy", "s2cloudless"]
7069
visualization = ["graphviz>=0.10.1", "jinja2", "matplotlib", "pygments"]
7170
docs = [
7271
"eo-learn[FULL]",

0 commit comments

Comments
 (0)