Skip to content

Commit 1b43827

Browse files
authored
Update changelog and version for 0.31.0 release (#2218)
* update version to 0.31.0 * update changelog and add migration guide for v0.31
1 parent 03426f5 commit 1b43827

File tree

25 files changed

+73
-32
lines changed

25 files changed

+73
-32
lines changed

cookiecutter_template/cookiecutter.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"caps_project_name": "MY_PROJECT",
33
"project_name": "my_project",
44
"docker_image": "my_project",
5-
"parent_docker_image": "quay.io/azavea/raster-vision:pytorch-0.30.2-dev",
6-
"version": "0.30.2-dev",
5+
"parent_docker_image": "quay.io/azavea/raster-vision:pytorch-0.31.0",
6+
"version": "0.31.0",
77
"description": "A Raster Vision plugin",
88
"url": "https://github.com/azavea/raster-vision",
99
"author": "Azavea",
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
rastervision==0.30.2-dev
1+
rastervision==0.31.0

docs/changelog.rst

+28
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,34 @@ CHANGELOG
22
=========
33

44

5+
Raster Vision 0.31.0
6+
--------------------
7+
8+
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>`.
9+
10+
* Features:
11+
12+
* Add ``MultiRasterSource.from_stac()`` constructor (`#2156 <https://github.com/azavea/raster-vision/pull/2156>`__)
13+
* Use smarter default padding value for sliding windows (`#2190 <https://github.com/azavea/raster-vision/pull/2190>`__)
14+
* Use rasterio AWS session in ``RasterioSource`` when reading files on S3 (`#2197 <https://github.com/azavea/raster-vision/pull/2197>`__)
15+
* Determine ``num_channels`` and ``dtype`` in ``RasterSource`` statically without reading a chip (`#2212 <https://github.com/azavea/raster-vision/pull/2212>`__)
16+
17+
* Refactor:
18+
19+
* Compute ``RasterStats`` from transformed ``RasterSource`` (`#2211 <https://github.com/azavea/raster-vision/pull/2211>`__)
20+
21+
* Fixes:
22+
23+
* Migrate to pydantic v2 (`#2178 <https://github.com/azavea/raster-vision/pull/2178>`__)
24+
* Fix bug in ``ChipClassificationSource.__getitem__()`` when bbox is specified (`#2193 <https://github.com/azavea/raster-vision/pull/2193>`__)
25+
26+
* Maintenance:
27+
28+
* Update codecov action to v4 and use token (`#2172 <https://github.com/azavea/raster-vision/pull/2172>`__)
29+
* 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>`__)
30+
* Update CLA instructions (`#2196 <https://github.com/azavea/raster-vision/pull/2196>`__)
31+
32+
533
Raster Vision 0.30.1
634
--------------------
735

docs/conf.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ def setup(app: 'Sphinx') -> None:
7272
# built documents.
7373
#
7474
# The short X.Y version.
75-
version = u'0.30'
75+
version = u'0.31'
7676
# The full version, including alpha/beta/rc tags
77-
release = u'0.30.2-dev'
77+
release = u'0.31.0'
7878

7979
# -- Extension configuration --------------------------------------------------
8080

docs/framework/examples.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ Note that the input file is assumed to have the same channel order and statistic
274274

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

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

279279
.. list-table:: Model Zoo
280280
:header-rows: 1

docs/migration/index.rst

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Migration guides
44
.. toctree::
55
:maxdepth: 1
66

7+
v0-30_to_v0-31
78
v0-21_to_v0-30
89
v0-20_to_v0-21
910
v0-13_to_v0-20

docs/migration/v0-30_to_v0-31.rst

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
v0.30 to v0.31
2+
==============
3+
4+
5+
* You will need to have ``pydantic>=2`` installed.
6+
* :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``.
7+
8+
* Backward compatibility has been maintained for older model-bundles, so they should work as before without modification.
9+
10+
* Default padding behavior has changed. See `SlidingWindowGeoDataset <https://docs.rastervision.io/en/0.31/usage/tutorials/sampling_training_data.html#SlidingWindowGeoDataset>`_.
11+
* 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.
12+
* ``force_same_dtype`` has been removed from :class:`.MultiRasterSource` and :class:`.MultiRasterSourceConfig`. Sub-raster sources are now always expected to have the same dtype.
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
rastervision_pipeline==0.30.2-dev
1+
rastervision_pipeline==0.31.0
22
boto3==1.34.155
33
awscli==1.33.37

rastervision_aws_batch/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import re
66

77
name = 'rastervision_aws_batch'
8-
version = '0.30.2-dev'
8+
version = '0.31.0'
99
description = 'A rastervision plugin that adds an AWS Batch pipeline runner'
1010
requirement_constraints = {}
1111

rastervision_aws_s3/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
rastervision_pipeline==0.30.2-dev
1+
rastervision_pipeline==0.31.0
22
boto3==1.34.155
33
awscli==1.33.37
44
tqdm==4.66.5

rastervision_aws_s3/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import re
66

77
name = 'rastervision_aws_s3'
8-
version = '0.30.2-dev'
8+
version = '0.31.0'
99
description = 'A rastervision plugin that adds an AWS S3 file system'
1010
requirement_constraints = {}
1111

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
rastervision_pipeline==0.30.2-dev
1+
rastervision_pipeline==0.31.0
22
sagemaker==2.227.0

rastervision_aws_sagemaker/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import re
66

77
name = 'rastervision_aws_sagemaker'
8-
version = '0.30.2-dev'
8+
version = '0.31.0'
99
description = 'A rastervision plugin that adds an AWS SageMaker pipeline runner'
1010
requirement_constraints = {}
1111

rastervision_core/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
rastervision_pipeline==0.30.2-dev
1+
rastervision_pipeline==0.31.0
22
shapely==2.0.5
33
geopandas==1.0.1
44
numpy==1.26.4

rastervision_core/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import re
66

77
name = 'rastervision_core'
8-
version = '0.30.2-dev'
8+
version = '0.31.0'
99
description = 'A rastervision plugin that adds geospatial machine learning pipelines'
1010
requirement_constraints = {}
1111

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
rastervision_pipeline==0.30.2-dev
1+
rastervision_pipeline==0.31.0
22
gdal>=3.4.1,<=3.6.3

rastervision_gdal_vsi/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import re
66

77
name = 'rastervision_gdal_vsi'
8-
version = '0.30.2-dev'
8+
version = '0.31.0'
99
description = 'A rastervision plugin that adds a GDAL VSI file system'
1010
requirement_constraints = {}
1111

Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
"""Library version"""
2-
__version__ = '0.30.2-dev'
2+
__version__ = '0.31.0'

rastervision_pipeline/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import re
66

77
name = 'rastervision_pipeline'
8-
version = '0.30.2-dev'
8+
version = '0.31.0'
99
description = 'The main rastervision package for configuring, defining, and running pipelines'
1010
requirement_constraints = {
1111
'pydantic': '>=2',
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
rastervision_pipeline==0.30.2-dev
2-
rastervision_core==0.30.2-dev
3-
rastervision_pytorch_learner==0.30.2-dev
1+
rastervision_pipeline==0.31.0
2+
rastervision_core==0.31.0
3+
rastervision_pytorch_learner==0.31.0

rastervision_pytorch_backend/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import re
66

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

rastervision_pytorch_learner/requirements.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
rastervision_pipeline==0.30.2-dev
2-
rastervision_core==0.30.2-dev
1+
rastervision_pipeline==0.31.0
2+
rastervision_core==0.31.0
33
numpy==1.26.4
44
pillow==10.4.0
55
torch==2.4.0

rastervision_pytorch_learner/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import re
66

77
name = 'rastervision_pytorch_learner'
8-
version = '0.30.2-dev'
8+
version = '0.31.0'
99
description = 'A rastervision plugin that adds PyTorch training pipelines'
1010
requirement_constraints = {}
1111

requirements.txt

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
rastervision_pipeline==0.30.2-dev
2-
rastervision_aws_s3==0.30.2-dev
3-
rastervision_aws_batch==0.30.2-dev
4-
rastervision_core==0.30.2-dev
5-
rastervision_pytorch_learner==0.30.2-dev
6-
rastervision_pytorch_backend==0.30.2-dev
1+
rastervision_pipeline==0.31.0
2+
rastervision_aws_s3==0.31.0
3+
rastervision_aws_batch==0.31.0
4+
rastervision_core==0.31.0
5+
rastervision_pytorch_learner==0.31.0
6+
rastervision_pytorch_backend==0.31.0

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from setuptools import setup, find_namespace_packages
55
import re
66

7-
__version__ = '0.30.2-dev'
7+
__version__ = '0.31.0'
88
requirement_constraints = {}
99

1010
here = abspath(dirname(__file__))

0 commit comments

Comments
 (0)