Update Help for release actions authored by Tristan Laurent's avatar Tristan Laurent
......@@ -77,7 +77,7 @@ As proposed [here](https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/-/issues/19
The release note is divided into five categories: Feature, Bug, Refactoring, CI, and Documentation.
Make sure all the MR related to this release are attributed to the corresponding [milestone](https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/-/milestones). Assigned a label ( ~feature, ~bug, ~refactoring, \~CI or ~documentation) to each MR that do not already have one of these labels.
Make sure all the MR related to this release are attributed to the corresponding [milestone](https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/-/milestones). Assigned a label ( ~feature, ~bug, ~refactoring, ~ci or ~documentation) to each MR that do not already have one of these labels.
Generate the release notes category by category, using the gitlab API and the `jq` command line program (json processing). For example, to fetch all %7.0.0 MR labeled ~feature:
......@@ -184,13 +184,31 @@ Then, cleanup in the packages folder if relevant:
- make sure older release and release candidate packages are in 'archives/OTB'
- keep latest release and clean older binaries
For final release, update the symlinks in `/var/www/archives/qgis` :
For final release, update the symlinks in `/var/www/archives/packages` :
- `OTB-VERSION-Win64.zip -> /var/www/archives/packages/OTB-MAJOR.MINOR.PATCH-Win64.zip`
- `OTB-VERSION-Linux.tar.gz -> /var/www/archives/packages/OTB-MAJOR.MINOR.PATCH-Linux.tar.gz`
- `OTB-VERSION-RedHat-Linux.tar.gz -> /var/www/archives/packages/OTB-MAJOR.MINOR.PATCH-RedHat-Linux.tar.gz`
> :warning: :exclamation: Important for Centos:
> For centos, you should download the packages from GitLab artifacts jobs and rename them with an additionnal "Linux_Redhat", then do the same steps as for windows and linux.
### GDAL bindings
To create gdal bindings for given version of python, you need to compile gdal with correct version of python. You can do it by compiling only xdk or from gdal sources from a docker with the python version required. Then you need to create an archive that will be exported later:
```shell
OTB_VERSION=<MAJOR>.<MINOR>
PYTHON_VERSION=310 # 3.10 check with python --version
find xdk/lib/python3/dist-packages/osgeo/ -type f -name "*.so" -printf "%P\n" | tar -czf OTB-${OTB_VERSION}-GDAL-bindings-py${PYTHON_VERSION}.tar.gz --no-recursion -C xdk/lib/python3/dist-packages/osgeo -T -
```
### Update docker
Since OTB 9.0 we are providing three dockers per version:
* otb on ubuntu 20 with python 3.8
* otb on ubuntu 22 with python 3.10
* otb on ubuntu 24 with python 3.12
Before building these dockers, as docker download gdal bindings, you must ensure that gdal bindings for correct python version are available at https://www.orfeo-toolbox.org/packages/archives/OTB/ .
### Update documentation
......@@ -226,7 +244,7 @@ ln -nsf CookBook-MAJOR.MINOR CookBook
#### Update version list in CookBook
In the develop branch, update the file `Documentation/Cookbook/_static/html/versions.html` with the new version and link.
In the develop branch, update the file `Documentation/Cookbook/_static/html/versions.html` with the new version and link. Refresh the page without the cache (Ctrl+F5) to see changes on new cookbook.
#### Doxygen
......
......