Skip to content

Commit

Permalink
Update changelog and version for 0.31.0 release (#2218)
Browse files Browse the repository at this point in the history
* update version to 0.31.0

* update changelog and add migration guide for v0.31
  • Loading branch information
AdeelH authored Aug 7, 2024
1 parent 03426f5 commit 1b43827
Show file tree
Hide file tree
Showing 25 changed files with 73 additions and 32 deletions.
4 changes: 2 additions & 2 deletions cookiecutter_template/cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"caps_project_name": "MY_PROJECT",
"project_name": "my_project",
"docker_image": "my_project",
"parent_docker_image": "quay.io/azavea/raster-vision:pytorch-0.30.2-dev",
"version": "0.30.2-dev",
"parent_docker_image": "quay.io/azavea/raster-vision:pytorch-0.31.0",
"version": "0.31.0",
"description": "A Raster Vision plugin",
"url": "https://github.com/azavea/raster-vision",
"author": "Azavea",
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
rastervision==0.30.2-dev
rastervision==0.31.0
28 changes: 28 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,34 @@ CHANGELOG
=========


Raster Vision 0.31.0
--------------------

This release migrates Raster Vision to pydantic v2 (it will no longer work with v1) and makes several other improvements and fixes. There are a few breaking changes; see the :doc:`migration guide <migration/v0-30_to_v0-31>`.

* Features:

* Add ``MultiRasterSource.from_stac()`` constructor (`#2156 <https://github.com/azavea/raster-vision/pull/2156>`__)
* Use smarter default padding value for sliding windows (`#2190 <https://github.com/azavea/raster-vision/pull/2190>`__)
* Use rasterio AWS session in ``RasterioSource`` when reading files on S3 (`#2197 <https://github.com/azavea/raster-vision/pull/2197>`__)
* Determine ``num_channels`` and ``dtype`` in ``RasterSource`` statically without reading a chip (`#2212 <https://github.com/azavea/raster-vision/pull/2212>`__)

* Refactor:

* Compute ``RasterStats`` from transformed ``RasterSource`` (`#2211 <https://github.com/azavea/raster-vision/pull/2211>`__)

* Fixes:

* Migrate to pydantic v2 (`#2178 <https://github.com/azavea/raster-vision/pull/2178>`__)
* Fix bug in ``ChipClassificationSource.__getitem__()`` when bbox is specified (`#2193 <https://github.com/azavea/raster-vision/pull/2193>`__)

* Maintenance:

* Update codecov action to v4 and use token (`#2172 <https://github.com/azavea/raster-vision/pull/2172>`__)
* Type hint improvements (`#2192 <https://github.com/azavea/raster-vision/pull/2192>`__, `#2195 <https://github.com/azavea/raster-vision/pull/2195>`__, `#2210 <https://github.com/azavea/raster-vision/pull/2210>`__)
* Update CLA instructions (`#2196 <https://github.com/azavea/raster-vision/pull/2196>`__)


Raster Vision 0.30.1
--------------------

Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ def setup(app: 'Sphinx') -> None:
# built documents.
#
# The short X.Y version.
version = u'0.30'
version = u'0.31'
# The full version, including alpha/beta/rc tags
release = u'0.30.2-dev'
release = u'0.31.0'

# -- Extension configuration --------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion docs/framework/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ Note that the input file is assumed to have the same channel order and statistic

When unzipped, the model bundle contains a ``model.pth`` file which can be used for fine-tuning.

.. note:: The model bundles linked below are only compatible with Raster Vision version ``0.30`` or greater.
.. note:: The model bundles linked below are only compatible with Raster Vision version ``0.31`` or greater.

.. list-table:: Model Zoo
:header-rows: 1
Expand Down
1 change: 1 addition & 0 deletions docs/migration/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Migration guides
.. toctree::
:maxdepth: 1

v0-30_to_v0-31
v0-21_to_v0-30
v0-20_to_v0-21
v0-13_to_v0-20
12 changes: 12 additions & 0 deletions docs/migration/v0-30_to_v0-31.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
v0.30 to v0.31
==============


* You will need to have ``pydantic>=2`` installed.
* :class:`.StatsTransformer` no longer applies ``channel_order`` to the stats. The stats are now expected to already be in the same order as the channels in the output of the ``RasterSource``.

* Backward compatibility has been maintained for older model-bundles, so they should work as before without modification.

* Default padding behavior has changed. See `SlidingWindowGeoDataset <https://docs.rastervision.io/en/0.31/usage/tutorials/sampling_training_data.html#SlidingWindowGeoDataset>`_.
* You no longer need to manually figure out the right padding value to use when using ``crop_sz`` during prediction. It is determined automatically such that no pixels around the edges are left out.
* ``force_same_dtype`` has been removed from :class:`.MultiRasterSource` and :class:`.MultiRasterSourceConfig`. Sub-raster sources are now always expected to have the same dtype.
2 changes: 1 addition & 1 deletion rastervision_aws_batch/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
rastervision_pipeline==0.30.2-dev
rastervision_pipeline==0.31.0
boto3==1.34.155
awscli==1.33.37
2 changes: 1 addition & 1 deletion rastervision_aws_batch/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import re

name = 'rastervision_aws_batch'
version = '0.30.2-dev'
version = '0.31.0'
description = 'A rastervision plugin that adds an AWS Batch pipeline runner'
requirement_constraints = {}

Expand Down
2 changes: 1 addition & 1 deletion rastervision_aws_s3/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
rastervision_pipeline==0.30.2-dev
rastervision_pipeline==0.31.0
boto3==1.34.155
awscli==1.33.37
tqdm==4.66.5
Expand Down
2 changes: 1 addition & 1 deletion rastervision_aws_s3/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import re

name = 'rastervision_aws_s3'
version = '0.30.2-dev'
version = '0.31.0'
description = 'A rastervision plugin that adds an AWS S3 file system'
requirement_constraints = {}

Expand Down
2 changes: 1 addition & 1 deletion rastervision_aws_sagemaker/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
rastervision_pipeline==0.30.2-dev
rastervision_pipeline==0.31.0
sagemaker==2.227.0
2 changes: 1 addition & 1 deletion rastervision_aws_sagemaker/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import re

name = 'rastervision_aws_sagemaker'
version = '0.30.2-dev'
version = '0.31.0'
description = 'A rastervision plugin that adds an AWS SageMaker pipeline runner'
requirement_constraints = {}

Expand Down
2 changes: 1 addition & 1 deletion rastervision_core/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
rastervision_pipeline==0.30.2-dev
rastervision_pipeline==0.31.0
shapely==2.0.5
geopandas==1.0.1
numpy==1.26.4
Expand Down
2 changes: 1 addition & 1 deletion rastervision_core/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import re

name = 'rastervision_core'
version = '0.30.2-dev'
version = '0.31.0'
description = 'A rastervision plugin that adds geospatial machine learning pipelines'
requirement_constraints = {}

Expand Down
2 changes: 1 addition & 1 deletion rastervision_gdal_vsi/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
rastervision_pipeline==0.30.2-dev
rastervision_pipeline==0.31.0
gdal>=3.4.1,<=3.6.3
2 changes: 1 addition & 1 deletion rastervision_gdal_vsi/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import re

name = 'rastervision_gdal_vsi'
version = '0.30.2-dev'
version = '0.31.0'
description = 'A rastervision plugin that adds a GDAL VSI file system'
requirement_constraints = {}

Expand Down
2 changes: 1 addition & 1 deletion rastervision_pipeline/rastervision/pipeline/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"""Library version"""
__version__ = '0.30.2-dev'
__version__ = '0.31.0'
2 changes: 1 addition & 1 deletion rastervision_pipeline/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import re

name = 'rastervision_pipeline'
version = '0.30.2-dev'
version = '0.31.0'
description = 'The main rastervision package for configuring, defining, and running pipelines'
requirement_constraints = {
'pydantic': '>=2',
Expand Down
6 changes: 3 additions & 3 deletions rastervision_pytorch_backend/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
rastervision_pipeline==0.30.2-dev
rastervision_core==0.30.2-dev
rastervision_pytorch_learner==0.30.2-dev
rastervision_pipeline==0.31.0
rastervision_core==0.31.0
rastervision_pytorch_learner==0.31.0
2 changes: 1 addition & 1 deletion rastervision_pytorch_backend/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import re

name = 'rastervision_pytorch_backend'
version = '0.30.2-dev'
version = '0.31.0'
description = 'A rastervision plugin that adds PyTorch backends for rastervision.core pipelines'
requirement_constraints = {}

Expand Down
4 changes: 2 additions & 2 deletions rastervision_pytorch_learner/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
rastervision_pipeline==0.30.2-dev
rastervision_core==0.30.2-dev
rastervision_pipeline==0.31.0
rastervision_core==0.31.0
numpy==1.26.4
pillow==10.4.0
torch==2.4.0
Expand Down
2 changes: 1 addition & 1 deletion rastervision_pytorch_learner/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import re

name = 'rastervision_pytorch_learner'
version = '0.30.2-dev'
version = '0.31.0'
description = 'A rastervision plugin that adds PyTorch training pipelines'
requirement_constraints = {}

Expand Down
12 changes: 6 additions & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
rastervision_pipeline==0.30.2-dev
rastervision_aws_s3==0.30.2-dev
rastervision_aws_batch==0.30.2-dev
rastervision_core==0.30.2-dev
rastervision_pytorch_learner==0.30.2-dev
rastervision_pytorch_backend==0.30.2-dev
rastervision_pipeline==0.31.0
rastervision_aws_s3==0.31.0
rastervision_aws_batch==0.31.0
rastervision_core==0.31.0
rastervision_pytorch_learner==0.31.0
rastervision_pytorch_backend==0.31.0
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from setuptools import setup, find_namespace_packages
import re

__version__ = '0.30.2-dev'
__version__ = '0.31.0'
requirement_constraints = {}

here = abspath(dirname(__file__))
Expand Down

0 comments on commit 1b43827

Please sign in to comment.