[Asterisk-code-review] mkrelease: Add a Python script that creates tarballs for Ast... (repotools[master])
Matt Jordan
asteriskteam at digium.com
Tue May 19 21:00:12 CDT 2015
Hello Samuel Galarneau,
I'd like you to reexamine a change. Please visit
https://gerrit.asterisk.org/383
to look at the new patch set (#4).
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, 624 insertions(+), 0 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/repotools refs/changes/83/383/4
--
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: 4
Gerrit-Project: repotools
Gerrit-Branch: master
Gerrit-Owner: Matt Jordan <mjordan at digium.com>
Gerrit-Reviewer: Ashley Sanders <asanders at digium.com>
Gerrit-Reviewer: Matt Jordan <mjordan at digium.com>
Gerrit-Reviewer: Samuel Galarneau <sgalarneau at digium.com>
More information about the asterisk-code-review
mailing list