Hello community, here is the log from the commit of package python-zc.buildout for openSUSE:Factory checked in at 2019-02-26 22:20:32 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-zc.buildout (Old) and /work/SRC/openSUSE:Factory/.python-zc.buildout.new.28833 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-zc.buildout" Tue Feb 26 22:20:32 2019 rev:11 rq:679041 version:2.13.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-zc.buildout/python-zc.buildout.changes 2018-12-13 19:46:11.864875717 +0100 +++ /work/SRC/openSUSE:Factory/.python-zc.buildout.new.28833/python-zc.buildout.changes 2019-02-26 22:22:09.874071193 +0100 @@ -1,0 +2,12 @@ +Sat Feb 16 09:11:51 UTC 2019 - Sebastian Wagner <[email protected]> + +- Update to version 2.13.1: + - Documentation update for the new ``buildout query`` command. + +------------------------------------------------------------------- +Sun Jan 27 18:40:17 UTC 2019 - Sebastian Wagner <[email protected]> + +- Update to version 2.13.0: + * Get information about the configuration with new command ``buildout query``. + +------------------------------------------------------------------- Old: ---- zc.buildout-2.12.2.tar.gz New: ---- zc.buildout-2.13.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-zc.buildout.spec ++++++ --- /var/tmp/diff_new_pack.DsMjcD/_old 2019-02-26 22:22:10.358071021 +0100 +++ /var/tmp/diff_new_pack.DsMjcD/_new 2019-02-26 22:22:10.358071021 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-zc.buildout # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %{!?license: %global license %doc} Name: python-zc.buildout -Version: 2.12.2 +Version: 2.13.1 Release: 0 Url: http://pypi.python.org/pypi/zc.buildout Summary: System for managing development buildouts ++++++ zc.buildout-2.12.2.tar.gz -> zc.buildout-2.13.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zc.buildout-2.12.2/CHANGES.rst new/zc.buildout-2.13.1/CHANGES.rst --- old/zc.buildout-2.12.2/CHANGES.rst 2018-09-04 09:49:31.000000000 +0200 +++ new/zc.buildout-2.13.1/CHANGES.rst 2019-01-29 09:20:41.000000000 +0100 @@ -1,6 +1,18 @@ Change History ************** +2.13.1 (2019-01-29) +=================== + +- Documentation update for the new ``buildout query`` command. + + +2.13.0 (2019-01-17) +=================== + +- Get information about the configuration with new command ``buildout query``. + + 2.12.2 (2018-09-04) =================== diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zc.buildout-2.12.2/PKG-INFO new/zc.buildout-2.13.1/PKG-INFO --- old/zc.buildout-2.12.2/PKG-INFO 2018-09-04 09:49:31.000000000 +0200 +++ new/zc.buildout-2.13.1/PKG-INFO 2019-01-29 09:20:41.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: zc.buildout -Version: 2.12.2 +Version: 2.13.1 Summary: System for managing development buildouts Home-page: http://buildout.org Author: Jim Fulton @@ -63,6 +63,18 @@ Change History ************** + 2.13.1 (2019-01-29) + =================== + + - Documentation update for the new ``buildout query`` command. + + + 2.13.0 (2019-01-17) + =================== + + - Get information about the configuration with new command ``buildout query``. + + 2.12.2 (2018-09-04) =================== diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zc.buildout-2.12.2/setup.py new/zc.buildout-2.13.1/setup.py --- old/zc.buildout-2.12.2/setup.py 2018-09-04 09:49:31.000000000 +0200 +++ new/zc.buildout-2.13.1/setup.py 2019-01-29 09:20:41.000000000 +0100 @@ -12,7 +12,7 @@ # ############################################################################## name = "zc.buildout" -version = '2.12.2' +version = '2.13.1' import os from setuptools import setup diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zc.buildout-2.12.2/src/zc/buildout/buildout.py new/zc.buildout-2.13.1/src/zc/buildout/buildout.py --- old/zc.buildout-2.12.2/src/zc/buildout/buildout.py 2018-09-04 09:49:31.000000000 +0200 +++ new/zc.buildout-2.13.1/src/zc/buildout/buildout.py 2019-01-29 09:20:41.000000000 +0100 @@ -50,6 +50,19 @@ else: text_type = unicode + +def command(method): + method.buildout_command = True + return method + + +def commands(cls): + for name, method in cls.__dict__.items(): + if hasattr(method, "buildout_command"): + cls.COMMANDS.add(name) + return cls + + def _print_options(sep=' ', end='\n', file=None): return sep, end, file @@ -289,8 +302,11 @@ }, 'DEFAULT_VALUE') +@commands class Buildout(DictMixin): + COMMANDS = set() + def __init__(self, config_file, cloptions, user_defaults=True, command=None, args=()): @@ -555,6 +571,7 @@ return name return os.path.join(self._buildout_dir, name) + @command def bootstrap(self, args): __doing__ = 'Bootstrapping.' @@ -628,11 +645,13 @@ f.write('[buildout]\nparts =\n') f.close() + @command def init(self, args): self.bootstrap(()) if args: self.install(()) + @command def install(self, install_args): __doing__ = 'Installing.' @@ -848,7 +867,7 @@ __doing__ = 'Uninstalling %s.', part self._logger.info(*__doing__) - # run uuinstall recipe + # run uninstall recipe recipe, entry = _recipe(installed_part_options[part]) try: uninstaller = _install_and_load( @@ -1210,6 +1229,7 @@ print_("Picked versions have been written to " + self.update_versions_file) + @command def setup(self, args): if not args: raise zc.buildout.UserError( @@ -1236,8 +1256,33 @@ os.close(fd) os.remove(tsetup) - runsetup = setup # backward compat. + @command + def runsetup(self, args): + self.setup(args) + + @command + def query(self, args=None): + if args is None or len(args) != 1: + _error('The query command requires a single argument.') + option = args[0] + option = option.split(':') + if len(option) == 1: + option = 'buildout', option[0] + elif len(option) != 2: + _error('Invalid option:', args[0]) + section, option = option + verbose = self['buildout'].get('verbosity', 0) != 0 + if verbose: + print_('${%s:%s}' % (section, option)) + try: + print_(self._raw[section][option]) + except KeyError: + if section in self._raw: + _error('Key not found:', option) + else: + _error('Section not found:', section) + @command def annotate(self, args=None): verbose = self['buildout'].get('verbosity', 0) != 0 section = None @@ -2020,6 +2065,10 @@ alphabetically. For each section, all key-value pairs are displayed, sorted alphabetically, along with the origin of the value (file name or COMPUTED_VALUE, DEFAULT_VALUE, COMMAND_LINE_VALUE). + + query section:key + + Display value of given section key pair. """ def _help(): @@ -2113,10 +2162,7 @@ if args: command = args.pop(0) - if command not in ( - 'install', 'bootstrap', 'runsetup', 'setup', 'init', - 'annotate', - ): + if command not in Buildout.COMMANDS: _error('invalid command:', command) else: command = 'install' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zc.buildout-2.12.2/src/zc/buildout/buildout.txt new/zc.buildout-2.13.1/src/zc/buildout/buildout.txt --- old/zc.buildout-2.12.2/src/zc/buildout/buildout.txt 2018-09-04 09:49:31.000000000 +0200 +++ new/zc.buildout-2.13.1/src/zc/buildout/buildout.txt 2019-01-29 09:20:41.000000000 +0100 @@ -1038,6 +1038,71 @@ DEFAULT_VALUE <BLANKLINE> +Query values +------------ + +For continuous integration, it might be useful to query the buildout config. + + >>> write(sample_buildout, 'buildout.cfg', + ... """ + ... [buildout] + ... develop = . + ... + ... [values] + ... host = buildout.org + ... multiline = + ... first + ... second + ... """) + + >>> print_(system(buildout+ ' query buildout:develop'), end='') + . + + >>> print_(system(buildout+ ' query values:host'), end='') + buildout.org + + >>> print_(system(buildout+ ' query values:multiline'), end='') + first + second + +As with assignments, if the section is ommitted, 'buildout' section is assumed. + + >>> print_(system(buildout+ ' query develop'), end='') + . + +When used with -v option, the query command also displays section and key. + + >>> print_(system(buildout+ ' -v query develop'), end='') + ${buildout:develop} + . + + >>> print_(system(buildout+ ' -v query values:host'), end='') + ${values:host} + buildout.org + +The query commands outputs proper error messages. + + >>> print_(system(buildout+ ' query versions parts'), end='') + Error: The query command requires a single argument. + + >>> print_(system(buildout+ ' query'), end='') + Error: The query command requires a single argument. + + >>> print_(system(buildout+ ' query invalid:section:key'), end='') + Error: Invalid option: invalid:section:key + + >>> print_(system(buildout+ ' -v query values:port'), end='') + ${values:port} + Error: Key not found: port + + >>> print_(system(buildout+ ' -v query versionx'), end='') + ${buildout:versionx} + Error: Key not found: versionx + + >>> print_(system(buildout+ ' -v query specific:port'), end='') + ${specific:port} + Error: Section not found: specific + Variable substitutions ---------------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zc.buildout-2.12.2/src/zc.buildout.egg-info/PKG-INFO new/zc.buildout-2.13.1/src/zc.buildout.egg-info/PKG-INFO --- old/zc.buildout-2.12.2/src/zc.buildout.egg-info/PKG-INFO 2018-09-04 09:49:31.000000000 +0200 +++ new/zc.buildout-2.13.1/src/zc.buildout.egg-info/PKG-INFO 2019-01-29 09:20:41.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: zc.buildout -Version: 2.12.2 +Version: 2.13.1 Summary: System for managing development buildouts Home-page: http://buildout.org Author: Jim Fulton @@ -63,6 +63,18 @@ Change History ************** + 2.13.1 (2019-01-29) + =================== + + - Documentation update for the new ``buildout query`` command. + + + 2.13.0 (2019-01-17) + =================== + + - Get information about the configuration with new command ``buildout query``. + + 2.12.2 (2018-09-04) ===================
