Difference between revisions of "What to do for a release"

From Gramps
m (Check the About box year)
m (Clarify what to add in metainfo xml file)
 
(25 intermediate revisions by 3 users not shown)
Line 22: Line 22:
 
:That will create a file called <code>missing</code>in the <code>po</code> directory if there are new files that need to be scanned for translatable strings. Examine each of the files listed in <code>missing</code>, adding each to <code>POTFILES.in</code> if it contains translatable string constants and to <code>POTFILES.skip</code> if it does not.
 
:That will create a file called <code>missing</code>in the <code>po</code> directory if there are new files that need to be scanned for translatable strings. Examine each of the files listed in <code>missing</code>, adding each to <code>POTFILES.in</code> if it contains translatable string constants and to <code>POTFILES.skip</code> if it does not.
 
* Generate a new template file:
 
* Generate a new template file:
   python3 update_po.py -p # makes a new gramps.pot template file
+
   python update_po.py -p # makes a new gramps.pot template file
 
   git diff gramps.pot
 
   git diff gramps.pot
 
:Examine the changes. If they're all just comments about where a string is found you need not commit the change (so the next line will restore the official file, instead of the one you just made):
 
:Examine the changes. If they're all just comments about where a string is found you need not commit the change (so the next line will restore the official file, instead of the one you just made):
Line 29: Line 29:
 
   git add gramps.pot
 
   git add gramps.pot
 
   git commit -m "Update translation template for new release"
 
   git commit -m "Update translation template for new release"
 
+
  git push
 +
:After updating the <code>pot</code> file, push the changes and wait for Weblate to update the <code>po</code> files.  Merge the corresponding pull request from Weblate.
 
* Check current translation files:
 
* Check current translation files:
   python3 update_po.py -k all
+
   python update_po.py -k all
:There should be very few warnings or fatal errors. Warnings related to new languages using default values in their headers are acceptable. There will also be some fatal errors reported due to the non-standard way we handle inflected dates. See the section on [https://gramps-project.org/wiki/index.php/Date_Handler#Localizing_the_date_formats Localizing the date formats] in the [https://gramps-project.org/wiki/index.php/Date_Handler Date Handler] wiki page for further details.  For example "{long_month}" may be translated as "{long_month.f[Р]}".
+
:There should be very few warnings and no fatal errors. Warnings related to new languages using default values in their headers are acceptable. All fatal errors should be fixed.
:All other fatal errors should be fixed.
 
 
Also see:
 
Also see:
 
* [[Template:Gramps_translations#INCOMPLETE_TRANSLATIONS]] - Update if any translation needs to be added or excluded due to not meeting the minimum 70% completion requirement.
 
* [[Template:Gramps_translations#INCOMPLETE_TRANSLATIONS]] - Update if any translation needs to be added or excluded due to not meeting the minimum 70% completion requirement.
Line 40: Line 40:
 
For a major release, announce a string freeze on the ''gramps-devel'' mailing list and on Weblate.
 
For a major release, announce a string freeze on the ''gramps-devel'' mailing list and on Weblate.
 
This will usually be about 2 weeks before the release date.
 
This will usually be about 2 weeks before the release date.
 +
 +
In the ''Program'' component on Weblate, select "Manage⟶Post announcement" from the menu.  Enter an ''Expiry date'' the day before the release date, and select the ''Notify users'' checkbox to send a notification to all subscribed users.
  
 
==Prepare your repository==
 
==Prepare your repository==
Line 59: Line 61:
  
 
eg:
 
eg:
   ''© 2007-2023 The Gramps Developers''  
+
   ''© 2007-2025 The Gramps Developers''  
 
to
 
to
   ''© 2007-'''2024''' The Gramps Developers''.
+
   ''© 2007-'''2026''' The Gramps Developers''.
  
 
Found in <code>gramps/gen/const.py</code>
 
Found in <code>gramps/gen/const.py</code>
Line 73: Line 75:
 
Update the year for the copyright.
 
Update the year for the copyright.
  
  copyright = '2001-2022, The Gramps Project'
+
  copyright = '2001-2026, The Gramps Project'
  
===Update Classifier in setup.py===
+
===Update Classifier in pyproject.toml===
Change [https://pypi.python.org/pypi?%3Aaction=list_classifiers Classifier] to the appropriate one in [https://github.com/gramps-project/gramps/blob/maintenance/gramps50/setup.py setup.py]  (master is always the first one)
+
Change [https://pypi.python.org/pypi?%3Aaction=list_classifiers Classifier] to the appropriate one in [https://github.com/gramps-project/gramps/blob/maintenance/gramps61/pyproject.toml pyproject.toml]  (master is always the first one)
  
 
<pre>
 
<pre>
Line 87: Line 89:
  
 
Check if any additional language classifier needs to be added also.
 
Check if any additional language classifier needs to be added also.
 
 
===Update the 'behavior.betawarn' key value===
 
 
If the release is '''Production/Stable''' make sure that the '''behavior.betawarn''' key value has been set to '''False''' e.g., https://github.com/gramps-project/gramps/commit/9dc976f28dc16c514e9e8e0b0fa09338bfe04f8a#diff-3d9e6dc03ea37a4b7f7975db17f16509
 
 
Found in
 
gramps/gen/config.py
 
and
 
gramps/gui/grampsgui.py
 
 
 
Please note that in Gramps master this key is always '''True'''.
 
 
See also {{bug|11274}}
 
  
 
==Release name==
 
==Release name==
Line 112: Line 99:
 
==Changelog and NEWS file==
 
==Changelog and NEWS file==
  
[https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html#section2 Section ''2a''] of the '''G'''eneral '''P'''ublic '''L'''icense says that if you distribute a modified version of a program: ''you must cause the modified files to carry prominent notices stating that you changed the files and the date of any change''.  
+
[https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html#section2 Section ''2a''] of the '''G'''eneral '''P'''ublic '''L'''icense says that if you distribute a modified version of a program: ''you must cause the modified files to carry prominent notices stating that you changed the files and the date of any change''. The change log can be generated in GNU ChangeLog format using git2cl which you may need to install on your system.  
  
 
Note that the <code>{{version}}</code> below means the ''previous'' version, not the one you're about to release (which is the
 
Note that the <code>{{version}}</code> below means the ''previous'' version, not the one you're about to release (which is the
Line 123: Line 110:
 
Commit the NEWS file:
 
Commit the NEWS file:
 
  git add NEWS
 
  git add NEWS
  git commit -m "Update Changelog and NEWS files"
+
  git commit -m "Update ChangeLog and NEWS files"
  
 
==Working on VERSION==
 
==Working on VERSION==
+
* Modify <code>[https://github.com/gramps-project/gramps/blob/master/gramps/version.py gramps/version.py]</code>. Update <code>VERSION_TUPLE</code> to the new version and set <code>DEV_VERSION</code> to indicate an official release:
* Modify <code>[https://github.com/gramps-project/gramps/blob/master/gramps/version.py gramps/version.py]</code> to indicate an official release:
+
 
 +
VERSION_TUPLE = (4, 2, ...)
 +
 
 
  - DEV_VERSION = True
 
  - DEV_VERSION = True
 
  + DEV_VERSION = False
 
  + DEV_VERSION = False
  
* Check that the <code>VERSION_TUPLE</code> reflects the release you're about to make. It should if the version was bumped after the last release. If not, fix it.
+
* Add an entry to the list of releases in [https://github.com/gramps-project/gramps/blob/maintenance/gramps52/data/org.gramps_project.Gramps.metainfo.xml.in org.gramps_project.Gramps.metainfo.xml.in] file.
  
 
* Save the changes:
 
* Save the changes:
Line 137: Line 126:
  
 
* Check that the version number is correct:
 
* Check that the version number is correct:
  python3 Gramps.py -v
+
  python Gramps.py -v
  
 
* If everything looks good, push the changes:
 
* If everything looks good, push the changes:
Line 151: Line 140:
 
  git push origin v{{version}}
 
  git push origin v{{version}}
  
===Move to the new release number on branch ===
+
===Update DEV_VERSION to indicate a development version===
 
 
Bump the version number in <code>gramps/version.py</code>
 
 
 
Update the version for the release:
 
VERSION_TUPLE = (4, 2, ...)
 
  
Revert change on <code>DEV_VERSION</code> so that the git revision is appended to the reported version in non-release builds:
+
Revert change on <code>DEV_VERSION</code> in <code>gramps/version.py</code> so that the git revision is appended to the reported version in non-release builds:
 
  - DEV_VERSION = False
 
  - DEV_VERSION = False
 
  + DEV_VERSION = True
 
  + DEV_VERSION = True
  
 
Save change:
 
Save change:
  git commit -am "Bump to <new version number>"
+
  git commit -am "Set to development version"
 
  git push
 
  git push
  
Line 172: Line 156:
 
* Find the tag you just pushed and click it, or click the "Draft a new release" button.
 
* Find the tag you just pushed and click it, or click the "Draft a new release" button.
 
* Copy the NEWS file contents into the '''Write''' tab. You can use the '''Preview''' tab to check your formatting.
 
* Copy the NEWS file contents into the '''Write''' tab. You can use the '''Preview''' tab to check your formatting.
 +
* Add the sh256sum of the source distribution to the bottom of the release notes.
 +
 +
You can obtain the sha256sum with the following command:
 +
 +
git archive --format=tar --prefix=gramps-{{version}} v{{version}} | gzip | sha256sum
 +
 +
Alternatively, download it and use:
 +
 +
sha256sum gramps-{{version}}.tar.gz
 +
 
* Click '''Publish Release''' at the bottom of the edit area when you're satisfied with the contents.
 
* Click '''Publish Release''' at the bottom of the edit area when you're satisfied with the contents.
  
Line 179: Line 173:
 
* Click '''Add Folder''' and name the directory for the release version. Click "'Create'". Click your new folder to enter it.
 
* Click '''Add Folder''' and name the directory for the release version. Click "'Create'". Click your new folder to enter it.
 
* You can either download the GitHub-generated tarball or create one locally:
 
* You can either download the GitHub-generated tarball or create one locally:
   python3 setup.py sdist
+
   python -m build --sdist
 
* Click '''Add File''' and drag the tarball to the drop area on the web page.
 
* Click '''Add File''' and drag the tarball to the drop area on the web page.
 
* Copy the release notes from GitHub into a file called README.md and upload it.
 
* Copy the release notes from GitHub into a file called README.md and upload it.
Line 190: Line 184:
 
* update [[News]] section on this wiki (not needed for an alpha or beta release)
 
* update [[News]] section on this wiki (not needed for an alpha or beta release)
 
* update the list of [[Previous releases of Gramps|previous releases]]
 
* update the list of [[Previous releases of Gramps|previous releases]]
* update reference to the new version on the [[Template:Version|wiki template]] (not needed for an alpha or beta release)
+
* update reference to the new version on the [[Template:Version|wiki template]] <small>{{version}}</small>  (not needed for an alpha or beta release)
 
* Verify other [[:Category:Versions|"version" Wiki templates]] values: Last version, Stable version, etc.
 
* Verify other [[:Category:Versions|"version" Wiki templates]] values: Last version, Stable version, etc.
 
* update [[HeadlineNews]] (not needed for an alpha or beta release)
 
* update [[HeadlineNews]] (not needed for an alpha or beta release)
* update release date on the [[Download]] page (not needed for an alpha or beta release)
+
* update <nowiki>{{version-released}}</nowiki> [https://gramps-project.org/wiki/index.php/Template:Version-released date template] for the [[Download]] pages <small>{{version-released}}</small> (not needed for an alpha or beta release)
 
* change the Matrix room title and IRC channel title (not needed for an alpha or beta release)  
 
* change the Matrix room title and IRC channel title (not needed for an alpha or beta release)  
 
* update the version number at [https://en.wikipedia.org/wiki/Gramps_(software) Wikipedia] (not needed for an alpha or beta release)
 
* update the version number at [https://en.wikipedia.org/wiki/Gramps_(software) Wikipedia] (not needed for an alpha or beta release)
Line 203: Line 197:
 
*Category [[:Category:Versions|Versions]] : [[Template:Version_Templates|Template]]
 
*Category [[:Category:Versions|Versions]] : [[Template:Version_Templates|Template]]
 
*Building a distribution to share as on the [[Download]] page
 
*Building a distribution to share as on the [[Download]] page
:[[File:Windows_32x32.png]] [[Building Gramps AIO cx freeze-based]] - Updating the MS-Windows 32-bit and 64-bit All-In-One packages
+
:[[File:Windows_32x32.png]] [[Building Gramps AIO cx freeze-based]] - Updating the MS-Windows All-In-One package
 
<!--
 
<!--
 
:[[File:Linux 32x32.png]]  please add link to instructions on building Gramps installers for Linux. proofed while building v5.1.3   
 
:[[File:Linux 32x32.png]]  please add link to instructions on building Gramps installers for Linux. proofed while building v5.1.3   
Line 214: Line 208:
 
* [[:Category:AppData]] - Screenshots used by Appdata - Debian
 
* [[:Category:AppData]] - Screenshots used by Appdata - Debian
 
* [[.dtd and .rng]]
 
* [[.dtd and .rng]]
* [[Rollover_for_the_manual|Rollover for the Wiki]] - for major and minor releases. No rollover for maintenance releases.
+
* [[Rollover_for_the_manual|Rollover for the Wiki]] - for major and feature releases. No rollover for maintenance releases.
 
* [[Special:WhatLinksHere/Template:Bug|List of pages linked to Bug Report template]] - verify the reported issues still apply to the new release. Leave links in place for any issue fixed in maintenance releases. Simply add notations for the version where the fix was applied. Remove links for fixed issues in Rollovers.
 
* [[Special:WhatLinksHere/Template:Bug|List of pages linked to Bug Report template]] - verify the reported issues still apply to the new release. Leave links in place for any issue fixed in maintenance releases. Simply add notations for the version where the fix was applied. Remove links for fixed issues in Rollovers.
  

Latest revision as of 15:44, 1 July 2026

Gramps-notes.png
'Developer notes for What to do for a release '

Note that the main use of this page will be for making a normal "minor" release. If you are making a "major" release (e.g. x.y.0) then you will need to update this page first, to change the numbers. But if you are only making an "alpha" or "beta" release, some steps may be skipped, or altered slightly.

Note also that there are additional necessary Post release tasks which are related to making a new release. For instance, the wiki will require making a new release-section and updating "General" version templates. For the making a new release-section on the bug tracker. Or when making new Debian and Mac and Windows packaging, they will need to be coordinated with the appropriate package maintainers and updating the corresponding Versions : Templates.

Pre-release

Agree a release timetable

Co-ordinate with the package maintainers to agree a release timetable. For a major release there may be a schedule on the Roadmap

Announce a feature freeze

For a major release, announce a feature freeze on the gramps-devel mailing list. This will usually be about 4 weeks before the release date.

Translation update

The translation template should be updated, if necessary, just before the string freeze is announced.

  • Check for new files since the last release:
 cd po
 intltool-update -m 
That will create a file called missingin the po directory if there are new files that need to be scanned for translatable strings. Examine each of the files listed in missing, adding each to POTFILES.in if it contains translatable string constants and to POTFILES.skip if it does not.
  • Generate a new template file:
 python update_po.py -p # makes a new gramps.pot template file
 git diff gramps.pot
Examine the changes. If they're all just comments about where a string is found you need not commit the change (so the next line will restore the official file, instead of the one you just made):
 git restore gramps.pot
If there have been changes on msgid entries, you'll need to commit gramps.pot and ask translators to update their .po files before you can make a release:
 git add gramps.pot
 git commit -m "Update translation template for new release"
 git push
After updating the pot file, push the changes and wait for Weblate to update the po files. Merge the corresponding pull request from Weblate.
  • Check current translation files:
 python update_po.py -k all
There should be very few warnings and no fatal errors. Warnings related to new languages using default values in their headers are acceptable. All fatal errors should be fixed.

Also see:

Announce a string freeze

For a major release, announce a string freeze on the gramps-devel mailing list and on Weblate. This will usually be about 2 weeks before the release date.

In the Program component on Weblate, select "Manage⟶Post announcement" from the menu. Enter an Expiry date the day before the release date, and select the Notify users checkbox to send a notification to all subscribed users.

Prepare your repository

  • Check out the current stable branch:
 git checkout maintenance/gramps60
That branch name assumes that you're using the same name as the Github repository; if you're not (perhaps you don't use maintenance in the name) use your local name.
  • Make sure that your local copy is clean:
 git status
If you have any uncommitted changes, either commit them now or stash them until after you've completed the release.
  • Clean up any untracked files and make sure that the local repo is up to date:
 git clean -fdx
 git pull --rebase
If you had commits that hadn't been pushed yet they'll show up as "applying" messages in the output of this command. If that's the case re-run the tests and push as usual.
  • Build and test to make sure that everything works, then clean the repo of all build products.

Check the About box year

Check if the year in the About box needs to be updated

eg:

  © 2007-2025 The Gramps Developers 

to

  © 2007-2026 The Gramps Developers.

Found in gramps/gen/const.py

API docs update year

If needed in the file:

docs/conf.py


Update the year for the copyright.

copyright = '2001-2026, The Gramps Project'

Update Classifier in pyproject.toml

Change Classifier to the appropriate one in pyproject.toml (master is always the first one)

Development Status :: 1 - Planning
Development Status :: 2 - Pre-Alpha
Development Status :: 3 - Alpha
Development Status :: 4 - Beta
Development Status :: 5 - Production/Stable

Check if any additional language classifier needs to be added also.

Release name

Refer to (and update) the list of previous releases.

Previously you needed to select an appropriate name but we have not named releases for several years now. You will still need to add the release though, including things like its relevant color.

  • Suggestions : For Gramps 5.0 Just remember that you're standing on a planet that's evolving

Changelog and NEWS file

Section 2a of the General Public License says that if you distribute a modified version of a program: you must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. The change log can be generated in GNU ChangeLog format using git2cl which you may need to install on your system.

Note that the 6.0.8 below means the previous version, not the one you're about to release (which is the ..).

git log v6.0.8.. --pretty --numstat --summary --no-merges | git2cl > ChangeLog
git log v6.0.8.. --pretty --numstat --summary --no-merges -- po/*.po | git2cl > po/ChangeLog
git add ChangeLog
git add po/ChangeLog
  • Edit and update the NEWS file using the new ChangeLog entries as a guide. If this is the first branch in a new series there will be no NEWS file, so look at a previous release and mimic the format.

Commit the NEWS file:

git add NEWS
git commit -m "Update ChangeLog and NEWS files"

Working on VERSION

  • Modify gramps/version.py. Update VERSION_TUPLE to the new version and set DEV_VERSION to indicate an official release:
VERSION_TUPLE = (4, 2, ...)
- DEV_VERSION = True
+ DEV_VERSION = False
  • Save the changes:
git commit -am "Release Gramps 6.0.8"
  • Check that the version number is correct:
python Gramps.py -v
  • If everything looks good, push the changes:
 git push origin maintenance/gramps60
  • If that fails then someone pushed a commit while you were working. Return to Prepare your repository and start over.

Create a tag

Create the release tag; note the v leading the actual tag.:

git tag -am "Tag 6.0.8" v6.0.8

Push to repository

Push the changes to the repository:

git push origin v6.0.8

Update DEV_VERSION to indicate a development version

Revert change on DEV_VERSION in gramps/version.py so that the git revision is appended to the reported version in non-release builds:

- DEV_VERSION = False
+ DEV_VERSION = True

Save change:

git commit -am "Set to development version"
git push

Github

  • Github generates a tarball automatically when we push a tag.
  • Go to Github and log in if necessary.
  • Select NN Releases from the line of items just above the thick line (NN is the number of releases so far).
  • Find the tag you just pushed and click it, or click the "Draft a new release" button.
  • Copy the NEWS file contents into the Write tab. You can use the Preview tab to check your formatting.
  • Add the sh256sum of the source distribution to the bottom of the release notes.

You can obtain the sha256sum with the following command:

git archive --format=tar --prefix=gramps-6.0.8 v6.0.8 | gzip | sha256sum

Alternatively, download it and use:

sha256sum gramps-6.0.8.tar.gz
  • Click Publish Release at the bottom of the edit area when you're satisfied with the contents.

SourceForge

  • Go to the SourceForge files page and log in if necessary.
  • Click on Stable or Unstable depending on the class of the release you're making.
  • Click Add Folder and name the directory for the release version. Click "'Create'". Click your new folder to enter it.
  • You can either download the GitHub-generated tarball or create one locally:
 python -m build --sdist
  • Click Add File and drag the tarball to the drop area on the web page.
  • Copy the release notes from GitHub into a file called README.md and upload it.

Announcing the new release

  • update mantisdb(Bug/issue database) and enable the new version via Admin:Projects item for reporting issues. (You will need a high-enough status on the bug tracker in order to do this, so you can ask an appropriate person if you aren't.)
  • announce on [email protected], [email protected] and [email protected] (You will need to be a member of all three lists first, to send to them.)
  • announce on the Discourse forum in the "Announcements" category.
  • announce on Gramps blog (File under: Gramps Releases and News) (not needed for an alpha or beta release)
  • update News section on this wiki (not needed for an alpha or beta release)
  • update the list of previous releases
  • update reference to the new version on the wiki template 6.0.8 (not needed for an alpha or beta release)
  • Verify other "version" Wiki templates values: Last version, Stable version, etc.
  • update HeadlineNews (not needed for an alpha or beta release)
  • update {{version-released}} date template for the Download pages 2026-04-09 (not needed for an alpha or beta release)
  • change the Matrix room title and IRC channel title (not needed for an alpha or beta release)
  • update the version number at Wikipedia (not needed for an alpha or beta release)

Post-release

  • merge forward the NEWS file

See also

Windows 32x32.png Building Gramps AIO cx freeze-based - Updating the MS-Windows All-In-One package

External links