summaryrefslogtreecommitdiff
path: root/gbp/config.py
AgeCommit message (Collapse)Author
2015-03-16Allow to set upstream-vcs-tag via gbp.confDaniel Kahn Gillmor
Also pass it through version_to_tag so upstream-vcs-tag = libgpg-error-%(version)s properly expands the version replacement. Closes: #780602
2015-02-25config: modify configparser import statementMarkus Lehtonen
Usage of six.moves.configparser in the previous way failed at least with some versions of python-six (e.g. 1.4.1) like > >>> from six.moves.configparser import SafeConfigParser > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > ImportError: No module named configparser Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2015-02-20Handle ConfigParser -> configparser renameGuido Günther
to work towards Python3 support Gbp-Dch: Ignore
2015-02-20Remove unused importGuido Günther
Gbp-Dch: Ignore
2015-01-25config: Deprecate legacy config sectionsGuido Günther
We deprecate sections starting with git- and gbp- to reduce the confusion about what gets parsed first.
2014-12-29Introduce gbp-pq-rpmMarkus Lehtonen
Initial version of gbp-pq-rpm - a tool for managing patch queues for rpm packages. The functionality more or less corresponds to that of the (Debian) gbp-pq. The only major difference probably being (in addition to the obvious of working with .spec files instead of debian/) is that patches are always imported on top of the upstream version, not on top of the packaging branch (which might not even contain any source code). Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Olev Kartau <olev.kartau@intel.com>
2014-12-28Fix argument typeGuido Günther
2014-12-28config: read the right config if run from subdirMarkus Lehtonen
A step towards being able to run GBP tools from subdirectories. Now expands '%(top_dir)s' and '%(git_dir)s' in config file path to root of the working directory and git metadata directory, respectively. Also, adds a new method _read_config_file() in preparation for supporting per-tree config files. Fixes tests.test_Config: currently the only correct way to define the config file(s) to be parsed is by using the GBP_CONF_FILES environment variable. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-12-05gbp-dch: fix handling of the '--meta' optionMarkus Lehtonen
Make it effective again - previously it was totally ignored. Also, change it's default value to True to match the current behavior. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-10-12pq: Add "pq export --commit" optionGuido Günther
This commits the changes in the pq right away. This is currently experimental and subject to change.
2014-09-26meta-closes: Move help text to GbpOptionParser.helpGuido Günther
2014-09-12Allow to always drop pq branch after exportGuido Günther
Closes: #761160
2014-08-19buildpackage: Make debian-tag message configurableKamal Mostafa
New config option --git-debian-tag-msg allows for the specification of the message format string for signed debian-tags. When left unset, the default debian-tag-msg format is still: %(pkg)s Debian release %(version)s Signed-off-by: Kamal Mostafa <kamal@whence.com>
2014-07-24import-srpm: add 'vendor' config optionMarkus Lehtonen
Intended to represent the distribution vendor (e.g. 'Debian'). Currently, this can be used in tag format strings. NOTE: the vendor name is converted to lowercase when used in tag names. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-07-24Introduce git-import-srpm toolMarkus Lehtonen
Initial version of the git-import-srpm: a tool for importing source rpms. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
2014-05-16Fix comitter vs committer typosGuido Günther
Thanks: Sandro Tosi Closes: #748339
2014-04-03config: add decorator to add_option_* functionsGuido Günther
This allows us to build an internal list of valid options and print these.
2014-04-01Add minimal 'config' commandGuido Günther
This only allows to print single config values so far. Closes: #733470
2014-04-01Test option parser fallbacks more thoroughlyGuido Günther
revealing another bug where we overwrote parsed values with defaults Closes: #733759
2014-03-29Use a much simpler version to fix the command name in --helpGuido Günther
mostly reverting e1780f0. Closes: #742907
2014-03-27Fix command outputGuido Günther
The first line lacked the subcommand like: $ gbp pull --help Usage: gbp [options] - safely update a repository from remote instead of $ gbp pull --help Usage: gbp pull [options] - safely update a repository from remote ^^^^
2014-02-19config: Don't pull in config defaults twiceGuido Günther
This would otherwise overwrite values set in the legacy config sections. Closes: #733759
2014-02-18config: Don't pull in config defaults twiceGuido Günther
This would otherwise overwrite values set in the legacy config sections. Closes: #733759
2014-01-05Change the default of cleaner to /bin/trueGuido Günther
Running a clean command within version control by default nowadays causes more trouble than it helps. It's unnecessary with pbuilder/cowbuilder/sbuild and with export-dir. So change the default from 'debuild clean' to a noop ('/bin/true'). Closes: #670624
2014-01-05Make parsing config file sections symmetricGuido Günther
Always read the legacy command's config file section prior to the subcommand's config file section. Until now 'gbp <subcommand>' would read '[subcommand]' as well as '[gbp-<subcommand>]' sections while 'gbp-<subcommand>' would only read '[gbp-<subcommand>]' sections. Closes: #733759
2013-09-04config: restore mangled env in doctestsMarkus Lehtonen
Otherwise the mangled GBP_CONF_FILES affects also other doctests when run with python-nose. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-06-26config: Don't fill in the parser with all defaultsGuido Günther
There's no need to fill the parser with all the built in defaults since we can simply copy them to the config from the class dict. This allows us to first set the values from the old {git,gbp}-* commands and then only overwrite changed values from the newer "gbp <command>" versions. Otherwise we'd overwite all old style config with the new style one. This also fixes the problem where the default section wouldn't be read at all if the command doesn't even have an empty section in any gbp.conf file.
2013-06-26Consistently call gbp the supercommandGuido Günther
and robustify against invalid modules names.
2013-06-19GbpOptionParser: Make sure we parse the old config sectionsGuido Günther
For backward compatibility between {gbp,git}-<subcommand> and "gbp <subcommand>" make sure we parse the former sections if using the later.
2013-06-19GbpOptionParser: Make sure we access the GbpOptionParser*'s default dictGuido Günther
and not the one from the OptionParser. The instance's default dict this gets reset to empty when invoking OptionParser.__init__.
2013-04-26buildpackage: implement --[no-]hooks optionMarkus Lehtonen
For enabling/disabling all hooks. This option does not affect the builder command, though. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-03-22Purging of the build dir should be configurable via a config fileGuido Günther
so introdice --git[-no]-purge which is consistent with the other boolean options and deprecate --git-dont-purge. Closes: #702200
2012-11-25New configuration option for setting the output color schemeMarkus Lehtonen
Adds a new command line and config file option 'color-scheme' for selecting the colors used in log output. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2012-11-08Allow to remove the orig tarball symlinkGuido Günther
that's used make pristine-tar see the correct orig tarball name. Closes: #692401
2012-07-02Make exception syntax consistentGuido Günther
2012-06-08gbp.conf: Make config option printing more consistentGuido Günther
2012-05-24import_dsc: add --allow-unauthenticatedGuido Günther
Closes: #670623
2012-05-12Config help fixJérémy Lal
Signed-off-by: Guido Günther <agx@sigxcpu.org>
2012-04-19Bug#669145: [PATCH] Add git-dch --commit and --commit-msg optionsMatthijs Kooijman
Closes: #669145 Signed-off-by: Guido Günther <agx@sigxcpu.org>
2012-03-21gbp-create-remote-repo: add --remote-configGuido Günther
This specifies an additional config file section that can be used to preconfigure different remote locations.
2012-03-21gbp.config: add list of config file sections to constructorGuido Günther
This makes it possible to parse additional mandatory sections from config files to prefill defaults. Git-Dch: Ignore
2012-03-21gbp.confing: add docstringGuido Günther
Git-Dch: Ignore
2012-03-21gbp create-remote-repo: allow to pass template directoryGuido Günther
to git init so it's possible to set up remote hooks.
2012-03-08GbpOptionParser: allow to modify list of parsed conf filesGuido Günther
by setting the GBP_CONF_FILES environment variable.
2012-02-26config.py: Add default value print out to all optionsGuido Günther
2012-02-13Rename GbpOptionParserCommon common to GbpOptionParserGuido Günther
2012-02-13Refactor config.py as preparation for rpm support.Markus Lehtonen
Split GbpOptionParser in to a common base class and a Debian specific subclass, as a preparation for upcoming RPM support. This allows having different default values (and help texts) for common options between different package types, and, clearer separation of package type specific options. Signed-off-by: Guido Günther <agx@sigxcpu.org>
2012-01-22buildpackage: Add pristine-tar-commit optionGuido Günther
This option allows to auto commit a generated tarball to the pristine-tar branch to simplify building non-dfsg clean packages and to make it easier to track uptream git.
2012-01-18Don't assume gzip compression of the orig tarballGuido Günther
2012-01-11buildpackage: Allow to pass pbuilder optionsGuido Günther
via commandline or gbp.conf