By using changelog file as an input (can be generated with 'generate_changelog.py' script), this script goes through all packages in changelog file (in order listed), tags them correctly as per the file, an releases them one by one. This script uses python-gitlab package for accessing GitLab's API.
By using changelog file as an input (can be generated with 'generate_changelog.py' script),
this script goes through all packages in changelog file (in order listed), tags them correctly
as per the file, and releases them one by one. A script can also be used to release a single package.
This script uses python-gitlab package for accessing GitLab's API.
Usage:
Usage:
{0} [-v...] [options] [--] <private_token>
{0} [-v...] [options] [--] <private_token>
{0} -h | --help
{0} -h | --help
{0} --version
{0} --version
Arguments:
Arguments:
<private_token> Private token used to access GitLab.
<private_token> Private token used to access GitLab.
Options:
Options:
-h --help Show this screen.
-h --help Show this screen.
--version Show version.
--version Show version.
-c, --changelog-file STR A changelog file with all packages to release with their tags, listed in order.
-c, --changelog-file STR A changelog file with all packages to release with their tags, listed in order.
[default: changelog_since_last_release.rst].
[default: changelog_since_last_release.rst].
-g, --group-name STR Group name where we are assuming that all packages are located.
-g, --group-name STR Group name where we are assuming that all packages are located.
[default: bob].
[default: bob].
-p, --package STR If the name of a package is provided, then this package will be found
in the changelog file and the release will resume from it (if option --resume is set)
or only this package will be released.
-r, --resume The overall release will resume from the provided package name.
-q, --dry-run Only print the actions, but do not execute them.