[Git][debian-gis-team/grass][upstream-7.8] New upstream version 7.8.7
Bas Couwenberg (@sebastic)
gitlab at salsa.debian.org
Wed Feb 23 18:32:44 GMT 2022
Bas Couwenberg pushed to branch upstream-7.8 at Debian GIS Project / grass
Commits:
4264ccc6 by Bas Couwenberg at 2022-02-23T18:44:01+01:00
New upstream version 7.8.7
- - - - -
4 changed files:
- doc/howto_release.md
- gui/wxpython/gui_core/query.py
- include/VERSION
- tools/mkhtml.py
Changes:
=====================================
doc/howto_release.md
=====================================
@@ -111,17 +111,19 @@ Example:
```bash
7
8
-1RC1
-2019
+7RC1
+2022
```
+Commit with version message, e.g. "GRASS GIS 7.8.7RC1".
+
### Create release tag
-(see <https://help.github.com/en/articles/creating-releases>)
+(For background, see <https://help.github.com/en/articles/creating-releases>)
Preparation:
-### Changelog and tagging etc
+#### Changelog and tagging etc preparations
```bash
# update from GH
@@ -144,7 +146,7 @@ RELEASETAG=release_${TODAY}_grass_${MAJOR}_${MINOR}_${RELEASE}
echo $RELEASETAG
```
-### Tag release (on GitHub)
+#### Tag release (on GitHub)
```bash
echo "$VERSION"
@@ -155,25 +157,20 @@ To be done in GH interface:
<https://github.com/OSGeo/grass/releases/new>
- select release_branch first, then
-- write into "Create tag" field:
+- fill in "Release Title" (e.g., GRASS GIS 7.8.7RC1)
+- fill in "Create tag" field: 7.8.7RC1
Tag version | target (examples):
7.8.7RC1 | releasebranch_7_8
+- click on "Create new tag: ... on publish"
+
Add release desciption (re-use existing texts as possible, from
<https://github.com/OSGeo/grass/releases>)
If RC, then check
[x] This is a pre-release
-### Packaging of source code tarball
-
-```bash
-# fetch tarball from GitHub
-wget https://github.com/OSGeo/grass/archive/${VERSION}.tar.gz -O grass-${VERSION}.tar.gz
-md5sum grass-${VERSION}.tar.gz > grass-${VERSION}.md5sum
-```
-
### Changelog from GitHub for GH release notes
Using GH API here, see also
@@ -184,12 +181,22 @@ Using GH API here, see also
gh api repos/OSGeo/grass/releases/generate-notes -f tag_name="7.8.7" -f previous_tag_name=7.8.6 -f target_commitish=releasebranch_7_8 -q .body
```
-Importantly, these notes need to be manually sorted into the various categories.
+If this fails, also a date may be used (that of the last release):
+
+```bash
+# GitHub style
+git log --pretty=format:"* %s by %an" --after="2022-01-28" | sort
+
+# trac style
+git log --oneline --after="2022-01-28" | cut -d' ' -f2- | sed 's+^+* +g' | sed 's+(#+https://github.com/OSGeo/grass/pull/+g' | sed 's+)$++g' | sort -u
+```
+
+Importantly, these notes need to be manually sorted into the various categories (modules, wxGUI, library, docker, ...).
### Changelog file for upload
```bash
-python3 utils/gitlog2changelog.py
+python3 tools/gitlog2changelog.py
mv ChangeLog ChangeLog_$VERSION
head ChangeLog_$VERSION
gzip ChangeLog_$VERSION
@@ -221,6 +228,13 @@ Reset local copy to GH:
# - remote repo as "upstream"
git fetch --all --prune && git checkout releasebranch_7_8 && \
git merge upstream/releasebranch_7_8 && git push origin releasebranch_7_8
+
+### Getting the source code tarball for upload on OSGeo server
+
+```bash
+# fetch tarball from GitHub
+wget https://github.com/OSGeo/grass/archive/${VERSION}.tar.gz -O grass-${VERSION}.tar.gz
+md5sum grass-${VERSION}.tar.gz > grass-${VERSION}.md5sum
```
### Upload source code tarball to OSGeo servers
@@ -261,7 +275,7 @@ vim wingrass-maintenance-scripts/grass_addons.sh
vim wingrass-maintenance-scripts/grass_copy_wwwroot.sh
vim wingrass-maintenance-scripts/cronjob.sh # major/minor release only
-# update addons - major/minor release only
+# update addons - major/minor release only <<-- outdated?!
vim grass-addons/tools/addons/grass-addons-publish.sh
vim grass-addons/tools/addons/grass-addons-build.sh
vim grass-addons/tools/addons/grass-addons.sh
@@ -279,7 +293,7 @@ Release is done.
### Advertise the new release
-#### Write trac Wiki release page
+#### Write trac Wiki release page (probably to be dropped)
To easily generate the entries for the trac Wiki release page, use the `git log` approach:
- extract entries from oneline git log and prepare for trac Wiki copy-paste:
@@ -287,10 +301,10 @@ To easily generate the entries for the trac Wiki release page, use the `git log`
```
# get date of previous release from https://github.com/OSGeo/grass/releases
# verify
-git log --oneline --after="2021-10-10" | tac
+git log --oneline --after="2022-01-28" | tac
# prepare for trac Wiki release page (incl. PR trac macro)
-git log --oneline --after="2021-10-10" | cut -d' ' -f2- | sed 's+^+ * G78:+g' | sed 's+(#+(PR:+g' | sort -u
+git log --oneline --after="2022-01-28" | cut -d' ' -f2- | sed 's+^+ * G78:+g' | sed 's+(#+(PR:+g' | sort -u
```
- store changelog entries in trac, by section:
@@ -382,22 +396,8 @@ Software pages:
- <https://lists.osgeo.org/mailman/listinfo/grass-dev> | <grass-dev at lists.osgeo.org>
- <https://lists.osgeo.org/mailman/listinfo/grass-user> | <grass-user at lists.osgeo.org>
- FreeGIS: <freegis-list at intevation.de>
-- Geowanking: <geowanking at geowanking.org>
- OSGeo.org: <news_item at osgeo.org>, <info at osgeo.org>
-- Geo Connexion: <editor-geo at geoconnexion.com>
-
-Via Web:
-
-- <http://linuxtoday.com/contribute.php3>
-- <https://joinup.ec.europa.eu/software/grassgis/home> (submit news, MN)
-- <http://www.macnn.com/contact/newstips/1>
-- <http://www10.giscafe.com/submit_material/submit_options.php#Press> (MN) -->
- Press releases
-- <http://www.directionsmag.com/pressreleases/> (News -> Submit Press Release)
-- <http://directory.fsf.org/wiki/GRASS_%28Geographic_Resources_Analysis_Support_System%29>
-- <https://www.linux-apps.com/p/1128004/edit/> (MN)
-- <https://news.eoportal.org/web/eoportal/share-your-news> (MN) -> Share your
- news with the EO community
-- <https://www.heise.de/download/product/grass-gis-7105> (update, MN)
-- See also: <https://grass.osgeo.org/wiki/Contact_Databases>
-- ... anywhere else? Please add here.
+
+Via Web / Social media:
+
+- See: <https://grass.osgeo.org/wiki/Contact_Databases>
=====================================
gui/wxpython/gui_core/query.py
=====================================
@@ -144,13 +144,11 @@ class QueryDialog(wx.Dialog):
else:
label1 = nodes[0].label
texts.append((_("Copy '%s'" % self._cutLabel(label1)), label1))
- if nodes[0].data and nodes[0].data[self._colNames[1]]:
- label2 = nodes[0].data[self._colNames[1]]
- texts.insert(
- 0, (_(
- "Copy '%s'" %
- self._cutLabel(label2)), label2))
- texts.append((_("Copy line"), label1 + ': ' + label2))
+ col1 = self._colNames[1]
+ if nodes[0].data and col1 in nodes[0].data and nodes[0].data[col1]:
+ label2 = nodes[0].data[col1]
+ texts.insert(0, (_("Copy '%s'" % self._cutLabel(label2)), label2))
+ texts.append((_("Copy line"), label1 + ": " + label2))
ids = []
for text in texts:
=====================================
include/VERSION
=====================================
@@ -1,4 +1,4 @@
7
8
-7RC1
+7
2022
=====================================
tools/mkhtml.py
=====================================
@@ -48,7 +48,15 @@ try:
import grass.script as gs
except ImportError:
# During compilation GRASS GIS
- gs = None
+ _ = str
+
+ class gs:
+ def warning(message):
+ pass
+
+ def fatal(message):
+ pass
+
HEADERS = {
"User-Agent": "Mozilla/5.0",
View it on GitLab: https://salsa.debian.org/debian-gis-team/grass/-/commit/4264ccc6d8cc5dffdc5bbb46e0012decd87f8830
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/grass/-/commit/4264ccc6d8cc5dffdc5bbb46e0012decd87f8830
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20220223/112c142f/attachment-0001.htm>
More information about the Pkg-grass-devel
mailing list