[Asterisk-code-review] mkrelease: Add a Python script that creates tarballs for Ast... (repotools[master])

Matt Jordan asteriskteam at digium.com
Thu May 7 15:37:40 CDT 2015


Matt Jordan has uploaded a new patch set (#3).

Change subject: mkrelease: Add a Python script that creates tarballs for Asterisk
......................................................................

mkrelease: Add a Python script that creates tarballs for Asterisk

This patch adds a Python script that generates the artifacts for an
Asterisk release. This includes:
 * Manipulating a local Git repository, creating the necessary branches,
   tags, and pushing those changes to the upstream repo when
   appropriate.
 * Generating the release summaries, ChangeLog, .version file, and other
   necessary files for a release.
 * Creating the following archives:
   - A diff archive containing the diff of the previous release with
     this newly created release.
   - An archive creating the newly created tag, as well as documentation
     downloaded from wiki.asterisk.org, and sounds downloaded from
     downloads.asterisk.org.
 * Signing the archives and generating sha1, sha256, and md5 hash sums.

Note that there are a few reasons why this script was rewritten in
Python:
 (1) The previous mkrelease script had a very arcane invocation. Since
     the migration to Git necessitated managing the tag/branch creation
     process more closely, it also meant that we had an opportunity to
     simplify invocation of the script. This means some extra Asterisk
     Version parsing had to occur. Once we had to add a lot of string
     manipulation into the mix, Python felt like a more natural fit for
     this script than bash.
 (2) While Git has a natural ability to generate tarballs from a checked
     out repo, much like the Asterisk ChangeLog and Release Summaries,
     the Asterisk project has some extra "stuff" that it needs to do
     that go beyond Git's capabilities. In this case, that included
     downloading documentation, adding sound files, etc. Combined with
     the version manipulation requirements, and given Python's plethora
     of libraries that aid in the manipulation of files, GPG keys, and
     other systems, Python felt like a natural choice.

REP-15 #close

Change-Id: Ibab7643d501085bcb2aad13915d4b0f6b24cded4
---
A mkrelease.py
1 file changed, 607 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/repotools refs/changes/83/383/3
-- 
To view, visit https://gerrit.asterisk.org/383
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ibab7643d501085bcb2aad13915d4b0f6b24cded4
Gerrit-PatchSet: 3
Gerrit-Project: repotools
Gerrit-Branch: master
Gerrit-Owner: Matt Jordan <mjordan at digium.com>



More information about the asterisk-code-review mailing list