Skip to content

Commit

Permalink
Release prep.
Browse files Browse the repository at this point in the history
  • Loading branch information
metasim committed Jan 17, 2020
1 parent 9770f36 commit fc9d48d
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 10 deletions.
23 changes: 23 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# RasterFrames Release Process

1. Make sure `release-notes.md` is updated.
2. Use `git flow release start x.y.z` to create release branch.
3. Manually edit `version.sbt` and `version.py` to set value to `x.y.z` and commit changes.
4. Do `docker login` if necessary.
5. `sbt` shell commands:
a. `clean`
b. `test it:test`
c. `makeSite`
d. `publishSigned` (LocationTech credentials required)
e. `sonatypeReleaseAll`. It can take a while, but should eventually show up [here](https://search.maven.org/search?q=g:org.locationtech.rasterframes).
f. `docs/ghpagesPushSite`
g. `rf-notebook/publish`
6. `cd pyrasterframes/target/python/dist`
7. `python3 -m twine upload pyrasterframes-x.y.z-py2.py3-none-any.whl`
8. Commit any changes that were necessary.
9. `git-flow finish release`. Make sure to push tags, develop and master
branches.
10. On `develop`, update `version.sbt` and `version.py` to next development
version (`x.y.(z+1)-SNAPSHOT` and `x.y.(z+1).dev0`). Commit and push.
11. In GitHub, create a new release with the created tag. Copy relevant
section of release notes into the description.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ case class ApproxCellQuantilesAggregate(probabilities: Seq[Double], relativeErro
tile.foreachDouble(d => if (!isNoData(d)) result = result.insert(d))
buffer.update(0, result.toRow)
}
else buffer
}

override def merge(buffer1: MutableAggregationBuffer, buffer2: Row): Unit = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

package org.locationtech.rasterframes

import org.locationtech.rasterframes.RasterFunctions
import org.apache.spark.sql.functions.{col, explode}

class RasterFramesStatsSpec extends TestEnvironment with TestData {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,8 @@

package org.locationtech.rasterframes

import java.io.ByteArrayInputStream

import geotrellis.raster._
import geotrellis.raster.render.ColorRamps
import geotrellis.raster.testkit.RasterMatchers
import javax.imageio.ImageIO
import org.apache.spark.sql.functions._
import org.locationtech.rasterframes.expressions.accessors.ExtractTile
import org.locationtech.rasterframes.tiles.ProjectedRasterTile
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import geotrellis.spark._
import geotrellis.spark.tiling._
import geotrellis.vector.{Extent, ProjectedExtent}
import org.apache.spark.sql.functions._
import org.apache.spark.sql.{Encoders, SQLContext, SparkSession}
import org.apache.spark.sql.{SQLContext, SparkSession}
import org.locationtech.rasterframes.model.TileDimensions
import org.locationtech.rasterframes.ref.RasterSource
import org.locationtech.rasterframes.tiles.ProjectedRasterTile
Expand Down
2 changes: 1 addition & 1 deletion docs/src/main/paradox/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* Added `rf_render_color_ramp_png` to compute PNG byte array for a single tile column, with specified color ramp.
* In `rf_ipython`, improved rendering of dataframe binary contents with PNG preamble.
* Throw an `IllegalArgumentException` when attempting to apply a mask to a `Tile` whose `CellType` has no NoData defined. ([#409](https://github.com/locationtech/rasterframes/issues/384))
* Add `rf_agg_approx-quantiles` function to compute cell quantiles across an entire column.
* Add `rf_agg_approx_quantiles` function to compute cell quantiles across an entire column.

### 0.8.4

Expand Down
2 changes: 1 addition & 1 deletion pyrasterframes/src/main/python/pyrasterframes/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
#

# Translating Java version from version.sbt to PEP440 norms
__version__ = '0.8.5.dev0'
__version__ = '0.8.5'
2 changes: 1 addition & 1 deletion version.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version in ThisBuild := "0.8.5-SNAPSHOT"
version in ThisBuild := "0.8.5"

0 comments on commit fc9d48d

Please sign in to comment.