Skip to content

Commit

Permalink
Increase version to 1.3.0 (#489)
Browse files Browse the repository at this point in the history
* increase versions

* bump requirement for typing-extensions

* Update changelog

* add py.typed to package data
  • Loading branch information
zigaLuksic committed Oct 6, 2022
1 parent a17056b commit ecc8d80
Show file tree
Hide file tree
Showing 14 changed files with 34 additions and 19 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
## [Version 1.3.0] - 2022-10-06

- (**codebreaking**) Adapted Sentinel Hub tasks to `sentinelhub-py 3.8.0` which switched to Catalog 1.0.0.
- (**codebreaking**) Removed support for loading pickled objects in EOPatches (deprecated since version 1.0.0).
- (**codebreaking**) Various improvements of `FeatureIO` class. Only affects direct use of class.
- Added type annotations to majority of `eolearn.core`. The types are now exposed via `py.typed` file, which enables use of `mypy`. Added type-checking to CI for the `core` module.
- Numpy-array based features can now save and load `object` populated arrays.
- Improved documentation building, fixed links to GitHub.
- Improved test coverage.
- Added pre-commit hooks to repository for easier development.
- Various minor improvements.


## [Version 1.2.1] - 2022-09-12

- Corrected the default for `no_data_value` in `ImportFromTiffTask` and `ExportToTiffTask` to `None`. The previous default of `0` was a poor choice in many scenarios. The switch might alter behavior in existing code.
Expand Down
1 change: 1 addition & 0 deletions core/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
include requirements*.txt
include LICENSE
include README.md
include eolearn/core/py.typed
exclude eolearn/tests/*
exclude eolearn/tests/test_extra/*
exclude eolearn/tests/test_utils/*
Expand Down
2 changes: 1 addition & 1 deletion core/eolearn/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
from .utils.parallelize import execute_with_mp_lock, join_futures, join_futures_iter, parallelize
from .utils.parsing import FeatureParser

__version__ = "1.2.1"
__version__ = "1.3.0"
2 changes: 1 addition & 1 deletion core/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ numpy>=1.20.0
python-dateutil
sentinelhub>=3.4.4
tqdm>=4.27
typing-extensions;python_version<"3.8"
typing-extensions;python_version<"3.10"
1 change: 1 addition & 0 deletions core/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def get_version():
author_email="eoresearch@sinergise.com",
license="MIT",
packages=find_packages(exclude=["eolearn.tests*"]),
package_data={"eolearn": ["core/py.typed"]},
include_package_data=True,
install_requires=parse_requirements("requirements.txt"),
extras_require={"RAY": parse_requirements("requirements-ray.txt")},
Expand Down
2 changes: 1 addition & 1 deletion coregistration/eolearn/coregistration/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

from .coregistration import ECCRegistrationTask, InterpolationType, PointBasedRegistrationTask, RegistrationTask

__version__ = "1.2.1"
__version__ = "1.3.0"
2 changes: 1 addition & 1 deletion features/eolearn/features/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@
AddSpatioTemporalFeaturesTask,
)

__version__ = "1.2.1"
__version__ = "1.3.0"
2 changes: 1 addition & 1 deletion geometry/eolearn/geometry/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
)
from .transformations import RasterToVectorTask, VectorToRasterTask

__version__ = "1.2.1"
__version__ = "1.3.0"
2 changes: 1 addition & 1 deletion io/eolearn/io/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
get_available_timestamps,
)

__version__ = "1.2.1"
__version__ = "1.3.0"
2 changes: 1 addition & 1 deletion io/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ fiona>=1.8.18
geopandas>=0.8.1
rasterio>=1.2.7
rtree
sentinelhub>=3.5.1
sentinelhub>=3.8.0
2 changes: 1 addition & 1 deletion mask/eolearn/mask/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
from .snow_mask import SnowMaskTask, TheiaSnowMaskTask
from .utils import resize_images

__version__ = "1.2.1"
__version__ = "1.3.0"
2 changes: 1 addition & 1 deletion ml_tools/eolearn/ml_tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
from .sampling import BlockSamplingTask, FractionSamplingTask, GridSamplingTask, sample_by_values
from .train_test_split import TrainTestSplitTask

__version__ = "1.2.1"
__version__ = "1.3.0"
18 changes: 9 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def parse_requirements(file):
setup(
name="eo-learn",
python_requires=">=3.7",
version="1.2.1",
version="1.3.0",
description="Earth observation processing framework for machine learning in Python",
long_description=get_long_description(),
long_description_content_type="text/markdown",
Expand All @@ -38,14 +38,14 @@ def parse_requirements(file):
packages=[],
include_package_data=True,
install_requires=[
"eo-learn-core==1.2.1",
"eo-learn-coregistration==1.2.1",
"eo-learn-features==1.2.1",
"eo-learn-geometry==1.2.1",
"eo-learn-io==1.2.1",
"eo-learn-mask==1.2.1",
"eo-learn-ml-tools==1.2.1",
"eo-learn-visualization==1.2.1",
"eo-learn-core==1.3.0",
"eo-learn-coregistration==1.3.0",
"eo-learn-features==1.3.0",
"eo-learn-geometry==1.3.0",
"eo-learn-io==1.3.0",
"eo-learn-mask==1.3.0",
"eo-learn-ml-tools==1.3.0",
"eo-learn-visualization==1.3.0",
],
extras_require={"DEV": parse_requirements("requirements-dev.txt")},
zip_safe=False,
Expand Down
2 changes: 1 addition & 1 deletion visualization/eolearn/visualization/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

from .eopatch import PlotBackend, PlotConfig

__version__ = "1.2.1"
__version__ = "1.3.0"

0 comments on commit ecc8d80

Please sign in to comment.