Hello community, here is the log from the commit of package python-oslo.utils for openSUSE:Factory checked in at 2015-09-09 20:20:52 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-oslo.utils (Old) and /work/SRC/openSUSE:Factory/.python-oslo.utils.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-oslo.utils" Changes: -------- --- /work/SRC/openSUSE:Factory/python-oslo.utils/python-oslo.utils.changes 2015-08-27 08:54:53.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-oslo.utils.new/python-oslo.utils.changes 2015-09-09 20:20:54.000000000 +0200 @@ -1,0 +2,15 @@ +Thu Sep 3 19:29:38 UTC 2015 - [email protected] + +- update to 2.4.0: + * Updated from global requirements + * Updated from global requirements + * flake8 - remove unused rules + * Bump monotonic to 0.3 to remove exception catching on import + * Provide a common exception caused by base class + * Imported Translations from Transifex + * Allow access to reflection 'get_members' + * Updated from global requirements + * Imported Translations from Transifex + * Updated from global requirements + +------------------------------------------------------------------- Old: ---- oslo.utils-2.1.0.tar.gz New: ---- oslo.utils-2.4.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-oslo.utils.spec ++++++ --- /var/tmp/diff_new_pack.OX0NbT/_old 2015-09-09 20:20:54.000000000 +0200 +++ /var/tmp/diff_new_pack.OX0NbT/_new 2015-09-09 20:20:54.000000000 +0200 @@ -17,7 +17,7 @@ Name: python-oslo.utils -Version: 2.1.0 +Version: 2.4.0 Release: 0 Summary: Oslo utils library License: Apache-2.0 @@ -31,7 +31,7 @@ Requires: python-Babel >= 1.3 Requires: python-debtcollector >= 0.3.0 Requires: python-iso8601 >= 0.1.9 -Requires: python-monotonic >= 0.1 +Requires: python-monotonic >= 0.3 Requires: python-netaddr >= 0.7.12 Requires: python-netifaces >= 0.10.4 Requires: python-oslo.i18n >= 1.5.0 ++++++ oslo.utils-2.1.0.tar.gz -> oslo.utils-2.4.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.utils-2.1.0/AUTHORS new/oslo.utils-2.4.0/AUTHORS --- old/oslo.utils-2.1.0/AUTHORS 2015-07-27 21:59:38.000000000 +0200 +++ new/oslo.utils-2.4.0/AUTHORS 2015-08-24 23:36:26.000000000 +0200 @@ -48,6 +48,7 @@ Joshua Harlow <[email protected]> Joshua Harlow <[email protected]> Julien Danjou <[email protected]> +Kevin Houdebert <[email protected]> Mehdi Abaakouk <[email protected]> Michael Wilson <[email protected]> Monty Taylor <[email protected]> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.utils-2.1.0/ChangeLog new/oslo.utils-2.4.0/ChangeLog --- old/oslo.utils-2.1.0/ChangeLog 2015-07-27 21:59:38.000000000 +0200 +++ new/oslo.utils-2.4.0/ChangeLog 2015-08-24 23:36:26.000000000 +0200 @@ -1,6 +1,28 @@ CHANGES ======= +2.4.0 +----- + + +2.3.0 +----- + +* Updated from global requirements +* Updated from global requirements +* flake8 - remove unused rules +* Bump monotonic to 0.3 to remove exception catching on import +* Provide a common exception caused by base class +* Imported Translations from Transifex +* Allow access to reflection 'get_members' +* Updated from global requirements + +2.2.0 +----- + +* Imported Translations from Transifex +* Updated from global requirements + 2.1.0 ----- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.utils-2.1.0/PKG-INFO new/oslo.utils-2.4.0/PKG-INFO --- old/oslo.utils-2.1.0/PKG-INFO 2015-07-27 21:59:38.000000000 +0200 +++ new/oslo.utils-2.4.0/PKG-INFO 2015-08-24 23:36:26.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: oslo.utils -Version: 2.1.0 +Version: 2.4.0 Summary: Oslo Utility library Home-page: http://launchpad.net/oslo Author: OpenStack diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.utils-2.1.0/oslo.utils/locale/de/LC_MESSAGES/oslo.utils-log-info.po new/oslo.utils-2.4.0/oslo.utils/locale/de/LC_MESSAGES/oslo.utils-log-info.po --- old/oslo.utils-2.1.0/oslo.utils/locale/de/LC_MESSAGES/oslo.utils-log-info.po 2015-07-27 21:59:09.000000000 +0200 +++ new/oslo.utils-2.4.0/oslo.utils/locale/de/LC_MESSAGES/oslo.utils-log-info.po 2015-08-24 23:35:55.000000000 +0200 @@ -8,16 +8,16 @@ msgstr "" "Project-Id-Version: oslo.utils\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2015-07-23 06:18+0000\n" +"POT-Creation-Date: 2015-08-04 06:33+0000\n" "PO-Revision-Date: 2014-12-07 06:44+0000\n" "Last-Translator: Andreas Jaeger <[email protected]>\n" -"Language-Team: German (http://www.transifex.com/projects/p/osloutils/" -"language/de/)\n" +"Language-Team: German (http://www.transifex.com/openstack/osloutils/language/" +"de/)\n" "Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 1.3\n" +"Generated-By: Babel 2.0\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #, python-format diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.utils-2.1.0/oslo.utils/locale/de/LC_MESSAGES/oslo.utils.po new/oslo.utils-2.4.0/oslo.utils/locale/de/LC_MESSAGES/oslo.utils.po --- old/oslo.utils-2.1.0/oslo.utils/locale/de/LC_MESSAGES/oslo.utils.po 2015-07-27 21:59:09.000000000 +0200 +++ new/oslo.utils-2.4.0/oslo.utils/locale/de/LC_MESSAGES/oslo.utils.po 2015-08-24 23:35:55.000000000 +0200 @@ -9,16 +9,16 @@ msgstr "" "Project-Id-Version: oslo.utils\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2015-07-23 06:18+0000\n" +"POT-Creation-Date: 2015-08-04 06:33+0000\n" "PO-Revision-Date: 2015-07-16 14:25+0000\n" "Last-Translator: openstackjenkins <[email protected]>\n" -"Language-Team: German (http://www.transifex.com/projects/p/osloutils/" -"language/de/)\n" +"Language-Team: German (http://www.transifex.com/openstack/osloutils/language/" +"de/)\n" "Plural-Forms: nplurals=2; plural=(n != 1)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 1.3\n" +"Generated-By: Babel 2.0\n" #, python-format msgid "Invalid string format: %s" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.utils-2.1.0/oslo.utils/locale/en_GB/LC_MESSAGES/oslo.utils-log-error.po new/oslo.utils-2.4.0/oslo.utils/locale/en_GB/LC_MESSAGES/oslo.utils-log-error.po --- old/oslo.utils-2.1.0/oslo.utils/locale/en_GB/LC_MESSAGES/oslo.utils-log-error.po 2015-07-27 21:59:09.000000000 +0200 +++ new/oslo.utils-2.4.0/oslo.utils/locale/en_GB/LC_MESSAGES/oslo.utils-log-error.po 2015-08-24 23:35:55.000000000 +0200 @@ -8,16 +8,16 @@ msgstr "" "Project-Id-Version: oslo.utils\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2015-07-23 06:18+0000\n" +"POT-Creation-Date: 2015-08-04 06:33+0000\n" "PO-Revision-Date: 2014-09-02 09:07+0000\n" "Last-Translator: Andi Chandler <[email protected]>\n" -"Language-Team: English (United Kingdom) (http://www.transifex.com/projects/p/" +"Language-Team: English (United Kingdom) (http://www.transifex.com/openstack/" "osloutils/language/en_GB/)\n" "Language: en_GB\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 1.3\n" +"Generated-By: Babel 2.0\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #, python-format diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.utils-2.1.0/oslo.utils/locale/en_GB/LC_MESSAGES/oslo.utils-log-info.po new/oslo.utils-2.4.0/oslo.utils/locale/en_GB/LC_MESSAGES/oslo.utils-log-info.po --- old/oslo.utils-2.1.0/oslo.utils/locale/en_GB/LC_MESSAGES/oslo.utils-log-info.po 2015-07-27 21:59:09.000000000 +0200 +++ new/oslo.utils-2.4.0/oslo.utils/locale/en_GB/LC_MESSAGES/oslo.utils-log-info.po 2015-08-24 23:35:55.000000000 +0200 @@ -8,16 +8,16 @@ msgstr "" "Project-Id-Version: oslo.utils\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2015-07-23 06:18+0000\n" +"POT-Creation-Date: 2015-08-04 06:33+0000\n" "PO-Revision-Date: 2015-04-22 17:28+0000\n" "Last-Translator: Andi Chandler <[email protected]>\n" -"Language-Team: English (United Kingdom) (http://www.transifex.com/projects/p/" +"Language-Team: English (United Kingdom) (http://www.transifex.com/openstack/" "osloutils/language/en_GB/)\n" "Language: en_GB\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 1.3\n" +"Generated-By: Babel 2.0\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #, python-format diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.utils-2.1.0/oslo.utils/locale/en_GB/LC_MESSAGES/oslo.utils-log-warning.po new/oslo.utils-2.4.0/oslo.utils/locale/en_GB/LC_MESSAGES/oslo.utils-log-warning.po --- old/oslo.utils-2.1.0/oslo.utils/locale/en_GB/LC_MESSAGES/oslo.utils-log-warning.po 2015-07-27 21:59:09.000000000 +0200 +++ new/oslo.utils-2.4.0/oslo.utils/locale/en_GB/LC_MESSAGES/oslo.utils-log-warning.po 2015-08-24 23:35:55.000000000 +0200 @@ -8,16 +8,16 @@ msgstr "" "Project-Id-Version: oslo.utils\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2015-07-23 06:18+0000\n" +"POT-Creation-Date: 2015-08-04 06:33+0000\n" "PO-Revision-Date: 2014-09-02 09:08+0000\n" "Last-Translator: Andi Chandler <[email protected]>\n" -"Language-Team: English (United Kingdom) (http://www.transifex.com/projects/p/" +"Language-Team: English (United Kingdom) (http://www.transifex.com/openstack/" "osloutils/language/en_GB/)\n" "Language: en_GB\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 1.3\n" +"Generated-By: Babel 2.0\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" msgid "tcp_keepcnt not available on your system" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.utils-2.1.0/oslo.utils/locale/en_GB/LC_MESSAGES/oslo.utils.po new/oslo.utils-2.4.0/oslo.utils/locale/en_GB/LC_MESSAGES/oslo.utils.po --- old/oslo.utils-2.1.0/oslo.utils/locale/en_GB/LC_MESSAGES/oslo.utils.po 2015-07-27 21:59:09.000000000 +0200 +++ new/oslo.utils-2.4.0/oslo.utils/locale/en_GB/LC_MESSAGES/oslo.utils.po 2015-08-24 23:35:55.000000000 +0200 @@ -8,16 +8,16 @@ msgstr "" "Project-Id-Version: oslo.utils\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2015-07-23 06:18+0000\n" +"POT-Creation-Date: 2015-08-04 06:33+0000\n" "PO-Revision-Date: 2015-07-16 14:25+0000\n" "Last-Translator: openstackjenkins <[email protected]>\n" -"Language-Team: English (United Kingdom) (http://www.transifex.com/projects/p/" +"Language-Team: English (United Kingdom) (http://www.transifex.com/openstack/" "osloutils/language/en_GB/)\n" "Plural-Forms: nplurals=2; plural=(n != 1)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 1.3\n" +"Generated-By: Babel 2.0\n" #, python-format msgid "" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.utils-2.1.0/oslo.utils/locale/fr/LC_MESSAGES/oslo.utils-log-error.po new/oslo.utils-2.4.0/oslo.utils/locale/fr/LC_MESSAGES/oslo.utils-log-error.po --- old/oslo.utils-2.1.0/oslo.utils/locale/fr/LC_MESSAGES/oslo.utils-log-error.po 2015-07-27 21:59:09.000000000 +0200 +++ new/oslo.utils-2.4.0/oslo.utils/locale/fr/LC_MESSAGES/oslo.utils-log-error.po 2015-08-24 23:35:55.000000000 +0200 @@ -9,16 +9,16 @@ msgstr "" "Project-Id-Version: oslo.utils\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2015-07-23 06:18+0000\n" +"POT-Creation-Date: 2015-08-04 06:33+0000\n" "PO-Revision-Date: 2014-10-08 05:32+0000\n" "Last-Translator: Corina Roe <[email protected]>\n" -"Language-Team: French (http://www.transifex.com/projects/p/osloutils/" -"language/fr/)\n" +"Language-Team: French (http://www.transifex.com/openstack/osloutils/language/" +"fr/)\n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 1.3\n" +"Generated-By: Babel 2.0\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #, python-format diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.utils-2.1.0/oslo.utils/locale/fr/LC_MESSAGES/oslo.utils-log-info.po new/oslo.utils-2.4.0/oslo.utils/locale/fr/LC_MESSAGES/oslo.utils-log-info.po --- old/oslo.utils-2.1.0/oslo.utils/locale/fr/LC_MESSAGES/oslo.utils-log-info.po 2015-07-27 21:59:09.000000000 +0200 +++ new/oslo.utils-2.4.0/oslo.utils/locale/fr/LC_MESSAGES/oslo.utils-log-info.po 2015-08-24 23:35:55.000000000 +0200 @@ -8,16 +8,16 @@ msgstr "" "Project-Id-Version: oslo.utils\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2015-07-23 06:18+0000\n" +"POT-Creation-Date: 2015-08-04 06:33+0000\n" "PO-Revision-Date: 2015-03-08 16:45+0000\n" "Last-Translator: Maxime COQUEREL <[email protected]>\n" -"Language-Team: French (http://www.transifex.com/projects/p/osloutils/" -"language/fr/)\n" +"Language-Team: French (http://www.transifex.com/openstack/osloutils/language/" +"fr/)\n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 1.3\n" +"Generated-By: Babel 2.0\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #, python-format diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.utils-2.1.0/oslo.utils/locale/fr/LC_MESSAGES/oslo.utils-log-warning.po new/oslo.utils-2.4.0/oslo.utils/locale/fr/LC_MESSAGES/oslo.utils-log-warning.po --- old/oslo.utils-2.1.0/oslo.utils/locale/fr/LC_MESSAGES/oslo.utils-log-warning.po 2015-07-27 21:59:09.000000000 +0200 +++ new/oslo.utils-2.4.0/oslo.utils/locale/fr/LC_MESSAGES/oslo.utils-log-warning.po 2015-08-24 23:35:55.000000000 +0200 @@ -8,16 +8,16 @@ msgstr "" "Project-Id-Version: oslo.utils\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2015-07-23 06:18+0000\n" +"POT-Creation-Date: 2015-08-04 06:33+0000\n" "PO-Revision-Date: 2014-09-25 09:15+0000\n" "Last-Translator: Maxime COQUEREL <[email protected]>\n" -"Language-Team: French (http://www.transifex.com/projects/p/osloutils/" -"language/fr/)\n" +"Language-Team: French (http://www.transifex.com/openstack/osloutils/language/" +"fr/)\n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 1.3\n" +"Generated-By: Babel 2.0\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" msgid "tcp_keepcnt not available on your system" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.utils-2.1.0/oslo.utils/locale/fr/LC_MESSAGES/oslo.utils.po new/oslo.utils-2.4.0/oslo.utils/locale/fr/LC_MESSAGES/oslo.utils.po --- old/oslo.utils-2.1.0/oslo.utils/locale/fr/LC_MESSAGES/oslo.utils.po 2015-07-27 21:59:09.000000000 +0200 +++ new/oslo.utils-2.4.0/oslo.utils/locale/fr/LC_MESSAGES/oslo.utils.po 2015-08-24 23:35:55.000000000 +0200 @@ -8,16 +8,16 @@ msgstr "" "Project-Id-Version: oslo.utils\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2015-07-23 06:18+0000\n" -"PO-Revision-Date: 2015-07-16 14:25+0000\n" -"Last-Translator: openstackjenkins <[email protected]>\n" -"Language-Team: French (http://www.transifex.com/projects/p/osloutils/" -"language/fr/)\n" +"POT-Creation-Date: 2015-08-04 06:33+0000\n" +"PO-Revision-Date: 2015-07-27 22:55+0000\n" +"Last-Translator: Maxime COQUEREL <[email protected]>\n" +"Language-Team: French (http://www.transifex.com/openstack/osloutils/language/" +"fr/)\n" "Plural-Forms: nplurals=2; plural=(n > 1)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 1.3\n" +"Generated-By: Babel 2.0\n" #, python-format msgid "" @@ -46,3 +46,7 @@ msgid "Unrecognized value '%(val)s', acceptable values are: %(acceptable)s" msgstr "" "Valeur non reconnue '%(val)s', les valeurs acceptables sont: %(acceptable)s" + +#, python-format +msgid "Version %s is invalid." +msgstr "La version %s est invalide." diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.utils-2.1.0/oslo.utils/locale/oslo.utils-log-critical.pot new/oslo.utils-2.4.0/oslo.utils/locale/oslo.utils-log-critical.pot --- old/oslo.utils-2.1.0/oslo.utils/locale/oslo.utils-log-critical.pot 2015-07-27 21:59:09.000000000 +0200 +++ new/oslo.utils-2.4.0/oslo.utils/locale/oslo.utils-log-critical.pot 2015-08-24 23:35:55.000000000 +0200 @@ -1,19 +1,19 @@ # Translations template for oslo.utils. -# Copyright (C) 2014 ORGANIZATION +# Copyright (C) 2015 ORGANIZATION # This file is distributed under the same license as the oslo.utils project. -# FIRST AUTHOR <EMAIL@ADDRESS>, 2014. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2015. # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: oslo.utils 0.1.1\n" +"Project-Id-Version: oslo.utils 2.1.1.dev1\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2014-08-11 06:10+0000\n" +"POT-Creation-Date: 2015-07-29 06:41+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <[email protected]>\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 1.3\n" +"Generated-By: Babel 2.0\n" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.utils-2.1.0/oslo.utils/locale/oslo.utils-log-error.pot new/oslo.utils-2.4.0/oslo.utils/locale/oslo.utils-log-error.pot --- old/oslo.utils-2.1.0/oslo.utils/locale/oslo.utils-log-error.pot 2015-07-27 21:59:09.000000000 +0200 +++ new/oslo.utils-2.4.0/oslo.utils/locale/oslo.utils-log-error.pot 2015-08-24 23:35:55.000000000 +0200 @@ -1,28 +1,28 @@ # Translations template for oslo.utils. -# Copyright (C) 2014 ORGANIZATION +# Copyright (C) 2015 ORGANIZATION # This file is distributed under the same license as the oslo.utils project. -# FIRST AUTHOR <EMAIL@ADDRESS>, 2014. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2015. # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: oslo.utils 0.1.1\n" +"Project-Id-Version: oslo.utils 2.1.1.dev1\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2014-08-11 06:10+0000\n" +"POT-Creation-Date: 2015-07-29 06:41+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <[email protected]>\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 1.3\n" +"Generated-By: Babel 2.0\n" -#: oslo/utils/excutils.py:76 +#: oslo_utils/excutils.py:113 #, python-format msgid "Original exception being dropped: %s" msgstr "" -#: oslo/utils/excutils.py:105 +#: oslo_utils/excutils.py:142 #, python-format msgid "Unexpected exception occurred %d time(s)... retrying." msgstr "" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.utils-2.1.0/oslo.utils/locale/oslo.utils-log-info.pot new/oslo.utils-2.4.0/oslo.utils/locale/oslo.utils-log-info.pot --- old/oslo.utils-2.1.0/oslo.utils/locale/oslo.utils-log-info.pot 2015-07-27 21:59:09.000000000 +0200 +++ new/oslo.utils-2.4.0/oslo.utils/locale/oslo.utils-log-info.pot 2015-08-24 23:35:55.000000000 +0200 @@ -1,34 +1,34 @@ # Translations template for oslo.utils. -# Copyright (C) 2014 ORGANIZATION +# Copyright (C) 2015 ORGANIZATION # This file is distributed under the same license as the oslo.utils project. -# FIRST AUTHOR <EMAIL@ADDRESS>, 2014. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2015. # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: oslo.utils 1.1.0.4.ga2a9b82\n" +"Project-Id-Version: oslo.utils 2.1.1.dev1\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2014-12-10 06:12+0000\n" +"POT-Creation-Date: 2015-07-29 06:41+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <[email protected]>\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 1.3\n" +"Generated-By: Babel 2.0\n" -#: oslo/utils/netutils.py:143 +#: oslo_utils/netutils.py:207 msgid "" "Could not determine default network interface, using 127.0.0.1 for IPv4 " "address" msgstr "" -#: oslo/utils/netutils.py:148 +#: oslo_utils/netutils.py:214 #, python-format msgid "Could not determine IPv4 address for interface %s, using 127.0.0.1" msgstr "" -#: oslo/utils/netutils.py:152 +#: oslo_utils/netutils.py:218 #, python-format msgid "Could not determine IPv4 address for interface %(interface)s: %(error)s" msgstr "" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.utils-2.1.0/oslo.utils/locale/oslo.utils-log-warning.pot new/oslo.utils-2.4.0/oslo.utils/locale/oslo.utils-log-warning.pot --- old/oslo.utils-2.1.0/oslo.utils/locale/oslo.utils-log-warning.pot 2015-07-27 21:59:09.000000000 +0200 +++ new/oslo.utils-2.4.0/oslo.utils/locale/oslo.utils-log-warning.pot 2015-08-24 23:35:55.000000000 +0200 @@ -1,31 +1,31 @@ # Translations template for oslo.utils. -# Copyright (C) 2014 ORGANIZATION +# Copyright (C) 2015 ORGANIZATION # This file is distributed under the same license as the oslo.utils project. -# FIRST AUTHOR <EMAIL@ADDRESS>, 2014. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2015. # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: oslo.utils 0.1.1\n" +"Project-Id-Version: oslo.utils 2.1.1.dev1\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2014-08-11 06:10+0000\n" +"POT-Creation-Date: 2015-07-29 06:41+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <[email protected]>\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 1.3\n" +"Generated-By: Babel 2.0\n" -#: oslo/utils/netutils.py:151 +#: oslo_utils/netutils.py:328 msgid "tcp_keepidle not available on your system" msgstr "" -#: oslo/utils/netutils.py:158 +#: oslo_utils/netutils.py:335 msgid "tcp_keepintvl not available on your system" msgstr "" -#: oslo/utils/netutils.py:165 +#: oslo_utils/netutils.py:342 msgid "tcp_keepcnt not available on your system" msgstr "" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.utils-2.1.0/oslo.utils/locale/oslo.utils.pot new/oslo.utils-2.4.0/oslo.utils/locale/oslo.utils.pot --- old/oslo.utils-2.1.0/oslo.utils/locale/oslo.utils.pot 2015-07-27 21:59:09.000000000 +0200 +++ new/oslo.utils-2.4.0/oslo.utils/locale/oslo.utils.pot 2015-08-24 23:35:55.000000000 +0200 @@ -6,16 +6,16 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: oslo.utils 2.0.1.dev2\n" +"Project-Id-Version: oslo.utils 2.1.1.dev1\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2015-07-23 06:18+0000\n" +"POT-Creation-Date: 2015-07-29 06:41+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <[email protected]>\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 1.3\n" +"Generated-By: Babel 2.0\n" #: oslo_utils/netutils.py:123 msgid "Unable to generate IP address by EUI64 for IPv4 prefix" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.utils-2.1.0/oslo.utils.egg-info/PKG-INFO new/oslo.utils-2.4.0/oslo.utils.egg-info/PKG-INFO --- old/oslo.utils-2.1.0/oslo.utils.egg-info/PKG-INFO 2015-07-27 21:59:38.000000000 +0200 +++ new/oslo.utils-2.4.0/oslo.utils.egg-info/PKG-INFO 2015-08-24 23:36:26.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: oslo.utils -Version: 2.1.0 +Version: 2.4.0 Summary: Oslo Utility library Home-page: http://launchpad.net/oslo Author: OpenStack diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.utils-2.1.0/oslo.utils.egg-info/pbr.json new/oslo.utils-2.4.0/oslo.utils.egg-info/pbr.json --- old/oslo.utils-2.1.0/oslo.utils.egg-info/pbr.json 2015-07-27 21:59:38.000000000 +0200 +++ new/oslo.utils-2.4.0/oslo.utils.egg-info/pbr.json 2015-08-24 23:36:26.000000000 +0200 @@ -1 +1 @@ -{"git_version": "485222b", "is_release": true} \ No newline at end of file +{"is_release": true, "git_version": "4f1adea"} \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.utils-2.1.0/oslo.utils.egg-info/requires.txt new/oslo.utils-2.4.0/oslo.utils.egg-info/requires.txt --- old/oslo.utils-2.1.0/oslo.utils.egg-info/requires.txt 2015-07-27 21:59:38.000000000 +0200 +++ new/oslo.utils-2.4.0/oslo.utils.egg-info/requires.txt 2015-08-24 23:36:26.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.i18n>=1.5.0 # Apache-2.0 -monotonic>=0.1 # Apache-2.0 +oslo.i18n>=1.5.0 +monotonic>=0.3 pytz>=2013.6 netaddr>=0.7.12 netifaces>=0.10.4 -debtcollector>=0.3.0 # Apache-2.0 +debtcollector>=0.3.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.utils-2.1.0/oslo_utils/excutils.py new/oslo.utils-2.4.0/oslo_utils/excutils.py --- old/oslo.utils-2.1.0/oslo_utils/excutils.py 2015-07-27 21:59:09.000000000 +0200 +++ new/oslo.utils-2.4.0/oslo_utils/excutils.py 2015-08-24 23:35:55.000000000 +0200 @@ -18,6 +18,7 @@ """ import logging +import os import sys import time import traceback @@ -25,6 +26,80 @@ import six from oslo_utils._i18n import _LE +from oslo_utils import reflection + + +class CausedByException(Exception): + """Base class for exceptions which have associated causes. + + NOTE(harlowja): in later versions of python we can likely remove the need + to have a ``cause`` here as PY3+ have implemented :pep:`3134` which + handles chaining in a much more elegant manner. + + :param message: the exception message, typically some string that is + useful for consumers to view when debugging or analyzing + failures. + :param cause: the cause of the exception being raised, when provided this + should itself be an exception instance, this is useful for + creating a chain of exceptions for versions of python where + this is not yet implemented/supported natively. + """ + def __init__(self, message, cause=None): + super(CausedByException, self).__init__(message) + self.cause = cause + + def __bytes__(self): + return self.pformat().encode("utf8") + + def __str__(self): + return self.pformat() + + def _get_message(self): + # We must *not* call into the ``__str__`` method as that will + # reactivate the pformat method, which will end up badly (and doesn't + # look pretty at all); so be careful... + return self.args[0] + + def pformat(self, indent=2, indent_text=" ", show_root_class=False): + """Pretty formats a caused exception + any connected causes.""" + if indent < 0: + raise ValueError("Provided 'indent' must be greater than" + " or equal to zero instead of %s" % indent) + buf = six.StringIO() + if show_root_class: + buf.write(reflection.get_class_name(self, fully_qualified=False)) + buf.write(": ") + buf.write(self._get_message()) + active_indent = indent + next_up = self.cause + seen = [] + while next_up is not None and next_up not in seen: + seen.append(next_up) + buf.write(os.linesep) + if isinstance(next_up, CausedByException): + buf.write(indent_text * active_indent) + buf.write(reflection.get_class_name(next_up, + fully_qualified=False)) + buf.write(": ") + buf.write(next_up._get_message()) + else: + lines = traceback.format_exception_only(type(next_up), next_up) + for i, line in enumerate(lines): + buf.write(indent_text * active_indent) + if line.endswith("\n"): + # We'll add our own newlines on... + line = line[0:-1] + buf.write(line) + if i + 1 != len(lines): + buf.write(os.linesep) + if not isinstance(next_up, CausedByException): + # Don't go deeper into non-caused-by exceptions... as we + # don't know if there exception 'cause' attributes are even + # useable objects... + break + active_indent += indent + next_up = getattr(next_up, 'cause', None) + return buf.getvalue() def raise_with_cause(exc_cls, message, *args, **kwargs): @@ -40,7 +115,8 @@ inspected/retained on py2.x to get *similar* information as would be automatically included/obtainable in py3.x. - :param exc_cls: the exception class to raise. + :param exc_cls: the exception class to raise (typically one derived + from :py:class:`.CausedByException` or equivalent). :param message: the text/str message that will be passed to the exceptions constructor as its first positional argument. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.utils-2.1.0/oslo_utils/reflection.py new/oslo.utils-2.4.0/oslo_utils/reflection.py --- old/oslo.utils-2.1.0/oslo_utils/reflection.py 2015-07-27 21:59:09.000000000 +0200 +++ new/oslo.utils-2.4.0/oslo_utils/reflection.py 2015-08-24 23:35:55.000000000 +0200 @@ -30,7 +30,7 @@ _BUILTIN_MODULES = ('builtins', '__builtin__', '__builtins__', 'exceptions') -def _get_members(obj, exclude_hidden): +def get_members(obj, exclude_hidden=True): """Yields the members of an object, filtering by hidden/not hidden.""" for (name, value) in inspect.getmembers(obj): if name.startswith("_") and exclude_hidden: @@ -40,7 +40,8 @@ def get_member_names(obj, exclude_hidden=True): """Get all the member names for a object.""" - return [name for (name, _obj) in _get_members(obj, exclude_hidden)] + return [name for (name, _obj) in + get_members(obj, exclude_hidden=exclude_hidden)] def get_class_name(obj, fully_qualified=True): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.utils-2.1.0/oslo_utils/tests/test_excutils.py new/oslo.utils-2.4.0/oslo_utils/tests/test_excutils.py --- old/oslo.utils-2.1.0/oslo_utils/tests/test_excutils.py 2015-07-27 21:59:09.000000000 +0200 +++ new/oslo.utils-2.4.0/oslo_utils/tests/test_excutils.py 2015-08-24 23:35:55.000000000 +0200 @@ -25,6 +25,41 @@ mox = moxstubout.mox +class Fail1(excutils.CausedByException): + pass + + +class Fail2(excutils.CausedByException): + pass + + +class CausedByTest(test_base.BaseTestCase): + + def test_caused_by_explicit(self): + e = self.assertRaises(Fail1, + excutils.raise_with_cause, + Fail1, "I was broken", + cause=Fail2("I have been broken")) + self.assertIsInstance(e.cause, Fail2) + e_p = e.pformat() + self.assertIn("I have been broken", e_p) + self.assertIn("Fail2", e_p) + + def test_caused_by_implicit(self): + + def raises_chained(): + try: + raise Fail2("I have been broken") + except Fail2: + excutils.raise_with_cause(Fail1, "I was broken") + + e = self.assertRaises(Fail1, raises_chained) + self.assertIsInstance(e.cause, Fail2) + e_p = e.pformat() + self.assertIn("I have been broken", e_p) + self.assertIn("Fail2", e_p) + + class SaveAndReraiseTest(test_base.BaseTestCase): def test_save_and_reraise_exception(self): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.utils-2.1.0/oslo_utils/tests/test_reflection.py new/oslo.utils-2.4.0/oslo_utils/tests/test_reflection.py --- old/oslo.utils-2.1.0/oslo_utils/tests/test_reflection.py 2015-07-27 21:59:09.000000000 +0200 +++ new/oslo.utils-2.4.0/oslo_utils/tests/test_reflection.py 2015-08-24 23:35:55.000000000 +0200 @@ -50,6 +50,14 @@ pass +class TestObject(object): + def _hello(self): + pass + + def hi(self): + pass + + class Class(object): def method(self, c, d): @@ -74,6 +82,29 @@ pass +class MemberGetTest(test_base.BaseTestCase): + def test_get_members_exclude_hidden(self): + obj = TestObject() + members = list(reflection.get_members(obj, exclude_hidden=True)) + self.assertEqual(1, len(members)) + + def test_get_members_no_exclude_hidden(self): + obj = TestObject() + members = list(reflection.get_members(obj, exclude_hidden=False)) + self.assertGreater(len(members), 1) + + def test_get_members_names_exclude_hidden(self): + obj = TestObject() + members = list(reflection.get_member_names(obj, exclude_hidden=True)) + self.assertEqual(["hi"], members) + + def test_get_members_names_no_exclude_hidden(self): + obj = TestObject() + members = list(reflection.get_member_names(obj, exclude_hidden=False)) + members = [member for member in members if not member.startswith("__")] + self.assertEqual(["_hello", "hi"], sorted(members)) + + class CallbackEqualityTest(test_base.BaseTestCase): def test_different_simple_callbacks(self): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.utils-2.1.0/oslo_utils/timeutils.py new/oslo.utils-2.4.0/oslo_utils/timeutils.py --- old/oslo.utils-2.1.0/oslo_utils/timeutils.py 2015-07-27 21:59:09.000000000 +0200 +++ new/oslo.utils-2.4.0/oslo_utils/timeutils.py 2015-08-24 23:35:55.000000000 +0200 @@ -23,13 +23,7 @@ from debtcollector import removals import iso8601 -try: - from monotonic import monotonic as now # noqa -except RuntimeError: - try: - now = time.monotonic - except AttributeError: - now = time.time +from monotonic import monotonic as now # noqa from pytz import timezone import six diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.utils-2.1.0/requirements.txt new/oslo.utils-2.4.0/requirements.txt --- old/oslo.utils-2.1.0/requirements.txt 2015-07-27 21:59:09.000000000 +0200 +++ new/oslo.utils-2.4.0/requirements.txt 2015-08-24 23:35:55.000000000 +0200 @@ -7,12 +7,12 @@ # adding a new feature to oslo.utils means adding a new dependency, # that is a likely indicator that the feature belongs somewhere else. -pbr<2.0,>=1.3 +pbr<2.0,>=1.4 Babel>=1.3 six>=1.9.0 iso8601>=0.1.9 oslo.i18n>=1.5.0 # Apache-2.0 -monotonic>=0.1 # Apache-2.0 +monotonic>=0.3 # Apache-2.0 pytz>=2013.6 netaddr>=0.7.12 netifaces>=0.10.4 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.utils-2.1.0/test-requirements.txt new/oslo.utils-2.4.0/test-requirements.txt --- old/oslo.utils-2.1.0/test-requirements.txt 2015-07-27 21:59:09.000000000 +0200 +++ new/oslo.utils-2.4.0/test-requirements.txt 2015-08-24 23:35:55.000000000 +0200 @@ -10,7 +10,7 @@ testrepository>=0.0.18 testscenarios>=0.4 testtools>=1.4.0 -oslotest>=1.7.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] @@ -25,4 +25,4 @@ mock>=1.2 # used for oslotest cross-testing scripts -oslo.config>=1.11.0 # Apache-2.0 +oslo.config>=2.1.0 # Apache-2.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.utils-2.1.0/tox.ini new/oslo.utils-2.4.0/tox.ini --- old/oslo.utils-2.1.0/tox.ini 2015-07-27 21:59:09.000000000 +0200 +++ new/oslo.utils-2.4.0/tox.ini 2015-08-24 23:35:55.000000000 +0200 @@ -29,11 +29,8 @@ commands = python setup.py testr --coverage --testr-args='{posargs}' [flake8] -# H803 skipped on purpose per list discussion. -# E123, E125 skipped as they are invalid PEP-8. - +ignore = E123,H405 show-source = True -ignore = E123,E125,H302,H304,H405,H803 exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,__init__.py [testenv:pip-missing-reqs]
