commit python-oslo.log for openSUSE:Factory
Hello community, here is the log from the commit of package python-oslo.log for openSUSE:Factory checked in at 2015-08-29 20:05:05 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-oslo.log (Old) and /work/SRC/openSUSE:Factory/.python-oslo.log.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-oslo.log" Changes: -------- --- /work/SRC/openSUSE:Factory/python-oslo.log/python-oslo.log.changes 2015-08-27 08:54:55.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-oslo.log.new/python-oslo.log.changes 2015-08-29 20:05:08.000000000 +0200 @@ -1,0 +2,15 @@ +Thu Aug 27 14:34:35 UTC 2015 - tbechtold@suse.com + +- update to 1.10.0: + * Fix package name for PublishErrorsHandler + * Updated from global requirements + * Fix duplicate-key pylint issue + * Maintain old oslo logger names + * Add Mitaka release to versionutils + * Update single letter release names to full names + * Provide a way to register versionutils options + * Imported Translations from Transifex + * Updated from global requirements +- Adjust Requires according to requirements.txt + +------------------------------------------------------------------- Old: ---- oslo.log-1.8.0.tar.gz New: ---- oslo.log-1.10.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-oslo.log.spec ++++++ --- /var/tmp/diff_new_pack.eS1HEp/_old 2015-08-29 20:05:08.000000000 +0200 +++ /var/tmp/diff_new_pack.eS1HEp/_new 2015-08-29 20:05:08.000000000 +0200 @@ -17,7 +17,7 @@ Name: python-oslo.log -Version: 1.8.0 +Version: 1.10.0 Release: 0 Summary: OpenStack logging API License: Apache-2.0 @@ -48,11 +48,11 @@ Requires: python-Babel >= 1.3 Requires: python-debtcollector >= 0.3.0 Requires: python-iso8601 >= 0.1.9 -Requires: python-oslo.config >= 1.11.0 +Requires: python-oslo.config >= 2.1.0 Requires: python-oslo.context >= 0.2.0 Requires: python-oslo.i18n >= 1.5.0 Requires: python-oslo.serialization >= 1.4.0 -Requires: python-oslo.utils >= 1.9.0 +Requires: python-oslo.utils >= 2.0.0 Requires: python-six >= 1.9.0 BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} && 0%{?suse_version} <= 1110 ++++++ oslo.log-1.8.0.tar.gz -> oslo.log-1.10.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.log-1.8.0/AUTHORS new/oslo.log-1.10.0/AUTHORS --- old/oslo.log-1.8.0/AUTHORS 2015-08-03 19:20:43.000000000 +0200 +++ new/oslo.log-1.10.0/AUTHORS 2015-08-24 23:34:29.000000000 +0200 @@ -41,6 +41,7 @@ Joe Gordon <joe.gordon0@gmail.com> Joe Gordon <jogo@cloudscaling.com> John Griffith <john.griffith8@gmail.com> +John L. Villalovos <john.l.villalovos@intel.com> John Stanford <john@solinea.com> Joshua Harlow <harlowja@gmail.com> Joshua Harlow <harlowja@yahoo-inc.com> @@ -62,6 +63,7 @@ Nataliia Uvarova <grafinya.uvarova@gmail.com> Pádraig Brady <pbrady@redhat.com> Radomir Dopieralski <openstack@sheep.art.pl> +Rajesh Tailor <rajesh.tailor@nttdata.com> Rick Harris <rconradharris@gmail.com> Roman Podoliaka <rpodolyaka@mirantis.com> Russell Bryant <rbryant@redhat.com> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.log-1.8.0/ChangeLog new/oslo.log-1.10.0/ChangeLog --- old/oslo.log-1.8.0/ChangeLog 2015-08-03 19:20:42.000000000 +0200 +++ new/oslo.log-1.10.0/ChangeLog 2015-08-24 23:34:29.000000000 +0200 @@ -1,6 +1,23 @@ CHANGES ======= +1.10.0 +------ + +* Fix package name for PublishErrorsHandler +* Updated from global requirements +* Fix duplicate-key pylint issue +* Maintain old oslo logger names + +1.9.0 +----- + +* Add Mitaka release to versionutils +* Update single letter release names to full names +* Provide a way to register versionutils options +* Imported Translations from Transifex +* Updated from global requirements + 1.8.0 ----- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.log-1.8.0/PKG-INFO new/oslo.log-1.10.0/PKG-INFO --- old/oslo.log-1.8.0/PKG-INFO 2015-08-03 19:20:43.000000000 +0200 +++ new/oslo.log-1.10.0/PKG-INFO 2015-08-24 23:34:30.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: oslo.log -Version: 1.8.0 +Version: 1.10.0 Summary: oslo.log library Home-page: http://launchpad.net/oslo Author: OpenStack diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.log-1.8.0/oslo.log/locale/es/LC_MESSAGES/oslo.log.po new/oslo.log-1.10.0/oslo.log/locale/es/LC_MESSAGES/oslo.log.po --- old/oslo.log-1.8.0/oslo.log/locale/es/LC_MESSAGES/oslo.log.po 2015-08-03 19:20:11.000000000 +0200 +++ new/oslo.log-1.10.0/oslo.log/locale/es/LC_MESSAGES/oslo.log.po 2015-08-24 23:33:49.000000000 +0200 @@ -8,10 +8,10 @@ msgstr "" "Project-Id-Version: oslo.log\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2015-07-29 06:31+0000\n" +"POT-Creation-Date: 2015-08-04 06:24+0000\n" "PO-Revision-Date: 2015-06-22 20:59+0000\n" "Last-Translator: Adriana Chisco Landazábal <achisco94@gmail.com>\n" -"Language-Team: Spanish (http://www.transifex.com/projects/p/oslolog/language/" +"Language-Team: Spanish (http://www.transifex.com/openstack/oslolog/language/" "es/)\n" "Plural-Forms: nplurals=2; plural=(n != 1)\n" "MIME-Version: 1.0\n" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.log-1.8.0/oslo.log.egg-info/PKG-INFO new/oslo.log-1.10.0/oslo.log.egg-info/PKG-INFO --- old/oslo.log-1.8.0/oslo.log.egg-info/PKG-INFO 2015-08-03 19:20:43.000000000 +0200 +++ new/oslo.log-1.10.0/oslo.log.egg-info/PKG-INFO 2015-08-24 23:34:29.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: oslo.log -Version: 1.8.0 +Version: 1.10.0 Summary: oslo.log library Home-page: http://launchpad.net/oslo Author: OpenStack diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.log-1.8.0/oslo.log.egg-info/pbr.json new/oslo.log-1.10.0/oslo.log.egg-info/pbr.json --- old/oslo.log-1.8.0/oslo.log.egg-info/pbr.json 2015-08-03 19:20:43.000000000 +0200 +++ new/oslo.log-1.10.0/oslo.log.egg-info/pbr.json 2015-08-24 23:34:29.000000000 +0200 @@ -1 +1 @@ -{"is_release": true, "git_version": "f464d9f"} \ No newline at end of file +{"git_version": "a0e50f8", "is_release": true} \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.log-1.8.0/oslo.log.egg-info/requires.txt new/oslo.log-1.10.0/oslo.log.egg-info/requires.txt --- old/oslo.log-1.8.0/oslo.log.egg-info/requires.txt 2015-08-03 19:20:43.000000000 +0200 +++ new/oslo.log-1.10.0/oslo.log.egg-info/requires.txt 2015-08-24 23:34:29.000000000 +0200 @@ -1,10 +1,10 @@ -pbr<2.0,>=1.3 +pbr<2.0,>=1.4 Babel>=1.3 six>=1.9.0 iso8601>=0.1.9 -oslo.config>=1.11.0 # Apache-2.0 +oslo.config>=2.1.0 # Apache-2.0 oslo.context>=0.2.0 # Apache-2.0 oslo.i18n>=1.5.0 # Apache-2.0 -oslo.utils>=1.9.0 # Apache-2.0 +oslo.utils>=2.0.0 # Apache-2.0 oslo.serialization>=1.4.0 # Apache-2.0 debtcollector>=0.3.0 # Apache-2.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.log-1.8.0/oslo_log/_options.py new/oslo.log-1.10.0/oslo_log/_options.py --- old/oslo.log-1.8.0/oslo_log/_options.py 2015-08-03 19:20:11.000000000 +0200 +++ new/oslo.log-1.10.0/oslo_log/_options.py 2015-08-24 23:33:49.000000000 +0200 @@ -74,8 +74,8 @@ help='(Optional) Enables or disables syslog rfc5424 format ' 'for logging. If enabled, prefixes the MSG part of the ' 'syslog message with APP-NAME (RFC5424). The ' - 'format without the APP-NAME is deprecated in K, ' - 'and will be removed in M, along with this option.'), + 'format without the APP-NAME is deprecated in Kilo, ' + 'and will be removed in Mitaka, along with this option.'), cfg.StrOpt('syslog-log-facility', default='LOG_USER', help='Syslog facility to receive log lines.') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.log-1.8.0/oslo_log/log.py new/oslo.log-1.10.0/oslo_log/log.py --- old/oslo.log-1.8.0/oslo_log/log.py 2015-08-03 19:20:11.000000000 +0200 +++ new/oslo.log-1.10.0/oslo_log/log.py 2015-08-24 23:33:51.000000000 +0200 @@ -326,7 +326,7 @@ if conf.publish_errors: handler = importutils.import_object( - "oslo.messaging.notify.log_handler.PublishErrorsHandler", + "oslo_messaging.notify.log_handler.PublishErrorsHandler", logging.ERROR) log_root.addHandler(handler) @@ -404,6 +404,13 @@ messages. For example, ``'2014.2'``. :type version: string """ + # NOTE(dhellmann): To maintain backwards compatibility with the + # old oslo namespace package logger configurations, and to make it + # possible to control all oslo logging with one logger node, we + # replace "oslo_" with "oslo." so that modules under the new + # non-namespaced packages get loggers as though they are. + if name and name.startswith('oslo_'): + name = 'oslo.' + name[5:] if name not in _loggers: _loggers[name] = KeywordArgumentAdapter(logging.getLogger(name), {'project': project, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.log-1.8.0/oslo_log/tests/unit/test_log.py new/oslo.log-1.10.0/oslo_log/tests/unit/test_log.py --- old/oslo.log-1.8.0/oslo_log/tests/unit/test_log.py 2015-08-03 19:20:11.000000000 +0200 +++ new/oslo.log-1.10.0/oslo_log/tests/unit/test_log.py 2015-08-24 23:33:51.000000000 +0200 @@ -709,6 +709,24 @@ self.assertIsInstance(logger.handlers[0], logging.handlers.WatchedFileHandler) + def test_log_publish_errors_handlers(self): + fake_handler = mock.MagicMock() + with mock.patch('oslo_utils.importutils.import_object', + return_value=fake_handler) as mock_import: + log_dir = tempfile.mkdtemp() + self.CONF(['--log-dir', log_dir]) + self.CONF.set_default('use_stderr', False) + self.CONF.set_default('publish_errors', True) + log._setup_logging_from_conf(self.CONF, 'test', 'test') + logger = log._loggers[None].logger + self.assertEqual(2, len(logger.handlers)) + self.assertIsInstance(logger.handlers[0], + logging.handlers.WatchedFileHandler) + self.assertEqual(logger.handlers[1], fake_handler) + mock_import.assert_called_once_with( + 'oslo_messaging.notify.log_handler.PublishErrorsHandler', + logging.ERROR) + def test_logfile_deprecated(self): logfile = '/some/other/path/foo-bar.log' self.CONF(['--logfile', logfile]) @@ -842,8 +860,7 @@ 'extra_keys': ['anything', 'context', 'instance', 'resource_uuid'], 'instance': 'instance identifier', - 'resource_uuid': 'UUID for instance', - 'anything': 'goes'}}, + 'resource_uuid': 'UUID for instance'}}, ) def test_pass_args_to_log(self): @@ -912,3 +929,14 @@ result = log._ensure_unicode(exc) self.assertEqual(msg, result) self.assertIsInstance(result, six.text_type) + + +class LoggerNameTestCase(LoggerTestCase): + + def test_oslo_dot(self): + l = log.getLogger('oslo.subname') + self.assertEqual(l.logger.name, 'oslo.subname') + + def test_oslo_underscore(self): + l = log.getLogger('oslo_subname') + self.assertEqual(l.logger.name, 'oslo.subname') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.log-1.8.0/oslo_log/tests/unit/test_versionutils.py new/oslo.log-1.10.0/oslo_log/tests/unit/test_versionutils.py --- old/oslo.log-1.8.0/oslo_log/tests/unit/test_versionutils.py 2015-08-03 19:20:11.000000000 +0200 +++ new/oslo.log-1.10.0/oslo_log/tests/unit/test_versionutils.py 2015-08-24 23:33:49.000000000 +0200 @@ -317,3 +317,12 @@ pass mock_log.assert_not_called() + + @mock.patch.object(versionutils.CONF, 'register_opts') + def test_register_options(self, mock_register_opts): + # Calling register_options registers the config options. + + versionutils.register_options() + + mock_register_opts.assert_called_once_with( + versionutils.deprecated_opts) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.log-1.8.0/oslo_log/versionutils.py new/oslo.log-1.10.0/oslo_log/versionutils.py --- old/oslo.log-1.8.0/oslo_log/versionutils.py 2015-08-03 19:20:11.000000000 +0200 +++ new/oslo.log-1.10.0/oslo_log/versionutils.py 2015-08-24 23:33:49.000000000 +0200 @@ -39,6 +39,16 @@ ] +def register_options(): + """Register configuration options used by this library. + + .. note: This is optional since the options are also registered + automatically when the functions in this module are used. + + """ + CONF.register_opts(deprecated_opts) + + class deprecated(object): """A decorator to mark callables as deprecated. @@ -95,6 +105,7 @@ JUNO = 'J' KILO = 'K' LIBERTY = 'L' + MITAKA = 'M' _RELEASES = { # NOTE(morganfainberg): Bexar is used for unit test purposes, it is @@ -107,6 +118,7 @@ 'J': 'Juno', 'K': 'Kilo', 'L': 'Liberty', + 'M': 'Mitaka', } _deprecated_msg_with_alternative = _( @@ -246,7 +258,7 @@ fatal deprecations. """ stdmsg = _("Deprecated: %s") % msg - CONF.register_opts(deprecated_opts) + register_options() if CONF.fatal_deprecations: logger.critical(stdmsg, *args, **kwargs) raise DeprecatedConfig(msg=stdmsg) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.log-1.8.0/requirements.txt new/oslo.log-1.10.0/requirements.txt --- old/oslo.log-1.8.0/requirements.txt 2015-08-03 19:20:11.000000000 +0200 +++ new/oslo.log-1.10.0/requirements.txt 2015-08-24 23:33:49.000000000 +0200 @@ -2,13 +2,13 @@ # of appearance. Changing the order has an impact on the overall integration # process, which may cause wedges in the gate later. -pbr<2.0,>=1.3 +pbr<2.0,>=1.4 Babel>=1.3 six>=1.9.0 iso8601>=0.1.9 -oslo.config>=1.11.0 # Apache-2.0 +oslo.config>=2.1.0 # Apache-2.0 oslo.context>=0.2.0 # Apache-2.0 oslo.i18n>=1.5.0 # Apache-2.0 -oslo.utils>=1.9.0 # Apache-2.0 +oslo.utils>=2.0.0 # Apache-2.0 oslo.serialization>=1.4.0 # Apache-2.0 debtcollector>=0.3.0 # Apache-2.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.log-1.8.0/setup.cfg new/oslo.log-1.10.0/setup.cfg --- old/oslo.log-1.8.0/setup.cfg 2015-08-03 19:20:43.000000000 +0200 +++ new/oslo.log-1.10.0/setup.cfg 2015-08-24 23:34:30.000000000 +0200 @@ -56,7 +56,7 @@ universal = 1 [egg_info] -tag_svn_revision = 0 tag_date = 0 +tag_svn_revision = 0 tag_build = diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.log-1.8.0/test-requirements.txt new/oslo.log-1.10.0/test-requirements.txt --- old/oslo.log-1.8.0/test-requirements.txt 2015-08-03 19:20:11.000000000 +0200 +++ new/oslo.log-1.10.0/test-requirements.txt 2015-08-24 23:33:49.000000000 +0200 @@ -11,7 +11,7 @@ testscenarios>=0.4 testtools>=1.4.0 mock>=1.2 -oslotest>=1.9.0 # Apache-2.0 +oslotest>=1.10.0 # Apache-2.0 # when we can require tox>= 1.4, this can go into tox.ini: # [testenv:cover]
participants (1)
-
root@hilbert.suse.de