Hello community,
here is the log from the commit of package python-oslo.i18n for
openSUSE:Factory checked in at 2019-05-03 22:42:19
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-oslo.i18n (Old)
and /work/SRC/openSUSE:Factory/.python-oslo.i18n.new.5148 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-oslo.i18n"
Fri May 3 22:42:19 2019 rev:13 rq:692857 version:3.23.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-oslo.i18n/python-oslo.i18n.changes
2018-09-07 15:38:55.594566878 +0200
+++
/work/SRC/openSUSE:Factory/.python-oslo.i18n.new.5148/python-oslo.i18n.changes
2019-05-03 22:42:20.663231085 +0200
@@ -1,0 +2,21 @@
+Mon Apr 8 11:39:44 UTC 2019 - [email protected]
+
+- update to version 3.23.1
+ - Update hacking version
+ - Update mailinglist from dev to discuss
+ - Remove unused code
+ - add lib-forward-testing-python3 test job
+ - Override getttext.find to cache result
+ - Imported Translations from Zanata
+ - Always build universal wheels
+ - Update reno for stable/rocky
+ - Remove references to log translation functions
+ - Clean up .gitignore references to personal tools
+ - Don't quote {posargs} in tox.ini
+ - Change python3.5 job to python3.7 job on Stein+
+ - add python 3.6 unit test job
+ - add python 3.7 unit test job
+ - import zuul job settings from project-config
+ - Use templates for cover and lower-constraints
+
+-------------------------------------------------------------------
Old:
----
oslo.i18n-3.21.0.tar.gz
New:
----
oslo.i18n-3.23.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-oslo.i18n.spec ++++++
--- /var/tmp/diff_new_pack.VEGylw/_old 2019-05-03 22:42:21.051231902 +0200
+++ /var/tmp/diff_new_pack.VEGylw/_new 2019-05-03 22:42:21.055231911 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-oslo.i18n
#
-# 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
@@ -12,18 +12,18 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: python-oslo.i18n
-Version: 3.21.0
+Version: 3.23.1
Release: 0
Summary: OpenStack i18n library
License: Apache-2.0
Group: Development/Languages/Python
URL: https://launchpad.net/oslo.i18n
-Source0:
https://files.pythonhosted.org/packages/source/o/oslo.i18n/oslo.i18n-3.21.0.tar.gz
+Source0:
https://files.pythonhosted.org/packages/source/o/oslo.i18n/oslo.i18n-3.23.1.tar.gz
BuildRequires: openstack-macros
BuildRequires: python2-Babel >= 2.3.4
BuildRequires: python2-mock
@@ -57,9 +57,8 @@
Documentation for the oslo.i18n library.
%prep
-%autosetup -p1 -n oslo.i18n-3.21.0
+%autosetup -p1 -n oslo.i18n-3.23.1
%py_req_cleanup
-sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg
%build
%{python_build}
++++++ _service ++++++
--- /var/tmp/diff_new_pack.VEGylw/_old 2019-05-03 22:42:21.079231961 +0200
+++ /var/tmp/diff_new_pack.VEGylw/_new 2019-05-03 22:42:21.079231961 +0200
@@ -1,8 +1,8 @@
<services>
<service mode="disabled" name="renderspec">
- <param
name="input-template">https://raw.githubusercontent.com/openstack/rpm-packaging/stable/rocky/openstack/oslo.i18n/oslo.i18n.spec.j2</param>
+ <param
name="input-template">https://raw.githubusercontent.com/openstack/rpm-packaging/stable/stein/openstack/oslo.i18n/oslo.i18n.spec.j2</param>
<param name="output-name">python-oslo.i18n.spec</param>
- <param
name="requirements">https://raw.githubusercontent.com/openstack/oslo.i18n/stable/rocky/requirements.txt</param>
+ <param
name="requirements">https://raw.githubusercontent.com/openstack/oslo.i18n/stable/stein/requirements.txt</param>
<param name="changelog-email">[email protected]</param>
<param name="changelog-provider">gh,openstack,oslo.i18n</param>
</service>
++++++ oslo.i18n-3.21.0.tar.gz -> oslo.i18n-3.23.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.i18n-3.21.0/.zuul.yaml
new/oslo.i18n-3.23.1/.zuul.yaml
--- old/oslo.i18n-3.21.0/.zuul.yaml 2018-07-20 03:06:47.000000000 +0200
+++ new/oslo.i18n-3.23.1/.zuul.yaml 2019-02-28 19:06:04.000000000 +0100
@@ -1,7 +1,13 @@
- project:
- check:
- jobs:
- - openstack-tox-lower-constraints
- gate:
- jobs:
- - openstack-tox-lower-constraints
+ templates:
+ - check-requirements
+ - lib-forward-testing
+ - lib-forward-testing-python3
+ - openstack-cover-jobs
+ - openstack-lower-constraints-jobs
+ - openstack-python-jobs
+ - openstack-python36-jobs
+ - openstack-python37-jobs
+ - periodic-stable-jobs
+ - publish-openstack-docs-pti
+ - release-notes-jobs-python3
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.i18n-3.21.0/AUTHORS new/oslo.i18n-3.23.1/AUTHORS
--- old/oslo.i18n-3.21.0/AUTHORS 2018-07-20 03:10:15.000000000 +0200
+++ new/oslo.i18n-3.23.1/AUTHORS 2019-02-28 19:08:12.000000000 +0100
@@ -6,14 +6,17 @@
Andreas Jaeger <[email protected]>
Andrey Kurilin <[email protected]>
Balazs Gibizer <[email protected]>
+Ben Nemec <[email protected]>
Ben Nemec <[email protected]>
Bo Chi <[email protected]>
Brant Knudson <[email protected]>
Chang Bo Guo <[email protected]>
ChangBo Guo(gcb) <[email protected]>
+Charles Short <[email protected]>
Charles Short <[email protected]>
Christian Berendt <[email protected]>
Chuck Short <[email protected]>
+Chuck Short <[email protected]>
Dan Prince <[email protected]>
Davanum Srinivas <[email protected]>
Davanum Srinivas <[email protected]>
@@ -22,6 +25,7 @@
Doug Hellmann <[email protected]>
Doug Hellmann <[email protected]>
Flavio Percoco <[email protected]>
+Hervé Beraud <[email protected]>
James Carey <[email protected]>
Jason Kölker <[email protected]>
Jay Pipes <[email protected]>
@@ -51,19 +55,21 @@
Sean McGinnis <[email protected]>
Sergey Kraynev <[email protected]>
Steve Martinelli <[email protected]>
+Thomas Herve <[email protected]>
Tony Breeds <[email protected]>
Victor Sergeyev <[email protected]>
Victor Stinner <[email protected]>
Vu Cong Tuan <[email protected]>
WangBinbin <[email protected]>
ZhiQiang Fan <[email protected]>
+ZhijunWei <[email protected]>
Zhiteng Huang <[email protected]>
ZhongShengping <[email protected]>
Zhongyue Luo <[email protected]>
-Zuul <[email protected]>
howardlee <[email protected]>
kavithahr <[email protected]>
lingyongxu <[email protected]>
+malei <[email protected]>
melissaml <[email protected]>
ricolin <[email protected]>
venkatamahesh <[email protected]>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.i18n-3.21.0/ChangeLog
new/oslo.i18n-3.23.1/ChangeLog
--- old/oslo.i18n-3.21.0/ChangeLog 2018-07-20 03:10:15.000000000 +0200
+++ new/oslo.i18n-3.23.1/ChangeLog 2019-02-28 19:08:12.000000000 +0100
@@ -1,6 +1,34 @@
CHANGES
=======
+3.23.1
+------
+
+* add python 3.7 unit test job
+* Change python3.5 job to python3.7 job on Stein+
+* Update hacking version
+* Update mailinglist from dev to discuss
+
+3.23.0
+------
+
+* Override getttext.find to cache result
+* Don't quote {posargs} in tox.ini
+* Clean up .gitignore references to personal tools
+* Always build universal wheels
+* Remove references to log translation functions
+* Use templates for cover and lower-constraints
+
+3.22.1
+------
+
+* Remove unused code
+* Imported Translations from Zanata
+* add lib-forward-testing-python3 test job
+* add python 3.6 unit test job
+* import zuul job settings from project-config
+* Update reno for stable/rocky
+
3.21.0
------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.i18n-3.21.0/PKG-INFO
new/oslo.i18n-3.23.1/PKG-INFO
--- old/oslo.i18n-3.21.0/PKG-INFO 2018-07-20 03:10:16.000000000 +0200
+++ new/oslo.i18n-3.23.1/PKG-INFO 2019-02-28 19:08:12.000000000 +0100
@@ -1,10 +1,10 @@
Metadata-Version: 1.1
Name: oslo.i18n
-Version: 3.21.0
+Version: 3.23.1
Summary: Oslo i18n library
Home-page: https://docs.openstack.org/oslo.i18n/latest
Author: OpenStack
-Author-email: [email protected]
+Author-email: [email protected]
License: UNKNOWN
Description: ========================
Team and repository tags
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.i18n-3.21.0/RELEASENOTES.rst
new/oslo.i18n-3.23.1/RELEASENOTES.rst
--- old/oslo.i18n-3.21.0/RELEASENOTES.rst 2018-07-20 03:10:16.000000000
+0200
+++ new/oslo.i18n-3.23.1/RELEASENOTES.rst 1970-01-01 01:00:00.000000000
+0100
@@ -1,3 +0,0 @@
-=========
-oslo.i18n
-=========
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.i18n-3.21.0/doc/source/user/usage.rst
new/oslo.i18n-3.23.1/doc/source/user/usage.rst
--- old/oslo.i18n-3.21.0/doc/source/user/usage.rst 2018-07-20
03:06:47.000000000 +0200
+++ new/oslo.i18n-3.23.1/doc/source/user/usage.rst 2019-02-28
19:06:04.000000000 +0100
@@ -59,34 +59,22 @@
# requires oslo.i18n >=2.1.0
_P = _translators.plural_form
- # Translators for log levels.
- #
- # NOTE(dhellmann): This is not needed for new projects as of the
- # Pike series.
- #
- # The abbreviated names are meant to reflect the usual use of a short
- # name like '_'. The "L" is for "log" and the other letter comes from
- # the level.
- _LI = _translators.log_info
- _LW = _translators.log_warning
- _LE = _translators.log_error
- _LC = _translators.log_critical
-
-
def get_available_languages():
return oslo_i18n.get_available_languages(DOMAIN)
+.. TODO: Provide examples for _C and _P
+
Then, in the rest of your code, use the appropriate marker function
for each message:
.. code-block:: python
- from myapp._i18n import _, _LW, _LE
+ from myapp._i18n import _
# ...
variable = "openstack"
- LOG.warning(_LW('warning message: %s'), variable)
+ some_object.name_msg = _('my name is: %s') % variable
# ...
@@ -96,8 +84,8 @@
except AnException1:
- # Log only
- LOG.exception(_LE('exception message'))
+ # Log only, log messages are no longer translated
+ LOG.exception('exception message')
except AnException2:
@@ -119,7 +107,7 @@
for import statements.
-It is important to use the marker functions (e.g. _LI), rather than
+It is important to use the marker functions (e.g. _), rather than
the longer form of the name, because the tool that scans the source
code for translatable strings looks for the marker function names.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.i18n-3.21.0/oslo.i18n.egg-info/PKG-INFO
new/oslo.i18n-3.23.1/oslo.i18n.egg-info/PKG-INFO
--- old/oslo.i18n-3.21.0/oslo.i18n.egg-info/PKG-INFO 2018-07-20
03:10:15.000000000 +0200
+++ new/oslo.i18n-3.23.1/oslo.i18n.egg-info/PKG-INFO 2019-02-28
19:08:12.000000000 +0100
@@ -1,10 +1,10 @@
Metadata-Version: 1.1
Name: oslo.i18n
-Version: 3.21.0
+Version: 3.23.1
Summary: Oslo i18n library
Home-page: https://docs.openstack.org/oslo.i18n/latest
Author: OpenStack
-Author-email: [email protected]
+Author-email: [email protected]
License: UNKNOWN
Description: ========================
Team and repository tags
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.i18n-3.21.0/oslo.i18n.egg-info/SOURCES.txt
new/oslo.i18n-3.23.1/oslo.i18n.egg-info/SOURCES.txt
--- old/oslo.i18n-3.21.0/oslo.i18n.egg-info/SOURCES.txt 2018-07-20
03:10:16.000000000 +0200
+++ new/oslo.i18n-3.23.1/oslo.i18n.egg-info/SOURCES.txt 2019-02-28
19:08:12.000000000 +0100
@@ -71,6 +71,7 @@
releasenotes/source/ocata.rst
releasenotes/source/pike.rst
releasenotes/source/queens.rst
+releasenotes/source/rocky.rst
releasenotes/source/unreleased.rst
releasenotes/source/_static/.placeholder
releasenotes/source/_templates/.placeholder
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.i18n-3.21.0/oslo.i18n.egg-info/pbr.json
new/oslo.i18n-3.23.1/oslo.i18n.egg-info/pbr.json
--- old/oslo.i18n-3.21.0/oslo.i18n.egg-info/pbr.json 2018-07-20
03:10:15.000000000 +0200
+++ new/oslo.i18n-3.23.1/oslo.i18n.egg-info/pbr.json 2019-02-28
19:08:12.000000000 +0100
@@ -1 +1 @@
-{"git_version": "e690af4", "is_release": true}
\ No newline at end of file
+{"git_version": "20bbee5", "is_release": true}
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.i18n-3.21.0/oslo_i18n/_gettextutils.py
new/oslo.i18n-3.23.1/oslo_i18n/_gettextutils.py
--- old/oslo.i18n-3.21.0/oslo_i18n/_gettextutils.py 2018-07-20
03:06:47.000000000 +0200
+++ new/oslo.i18n-3.23.1/oslo_i18n/_gettextutils.py 2019-02-28
19:06:04.000000000 +0100
@@ -99,3 +99,29 @@
_AVAILABLE_LANGUAGES[domain] = result
return copy.copy(result)
+
+
+_original_find = gettext.find
+_FIND_CACHE = {}
+
+
+def cached_find(domain, localedir=None, languages=None, all=0):
+ """A version of gettext.find using a cache.
+
+ gettext.find looks for mo files on the disk using os.path.exists. Those
+ don't tend to change over time, but the system calls pile up with a
+ long-running service. This caches the result so that we return the same mo
+ files, and only call find once per domain.
+ """
+ key = (domain,
+ localedir,
+ tuple(languages) if languages is not None else None,
+ all)
+ if key in _FIND_CACHE:
+ return _FIND_CACHE[key]
+ result = _original_find(domain, localedir, languages, all)
+ _FIND_CACHE[key] = result
+ return result
+
+
+gettext.find = cached_find
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/oslo.i18n-3.21.0/oslo_i18n/tests/test_gettextutils.py
new/oslo.i18n-3.23.1/oslo_i18n/tests/test_gettextutils.py
--- old/oslo.i18n-3.21.0/oslo_i18n/tests/test_gettextutils.py 2018-07-20
03:06:47.000000000 +0200
+++ new/oslo.i18n-3.23.1/oslo_i18n/tests/test_gettextutils.py 2019-02-28
19:06:04.000000000 +0100
@@ -20,7 +20,6 @@
from babel import localedata
import mock
from oslotest import base as test_base
-from oslotest import moxstubout
import six
from oslo_i18n import _factory
@@ -36,9 +35,6 @@
def setUp(self):
super(GettextTest, self).setUp()
- moxfixture = self.useFixture(moxstubout.MoxStubout())
- self.stubs = moxfixture.stubs
- self.mox = moxfixture.mox
# remember so we can reset to it later in case it changes
self._USE_LAZY = _lazy.USE_LAZY
self.t = _factory.TranslatorFactory('oslo_i18n.test')
@@ -133,3 +129,13 @@
unknown_domain_languages = _gettextutils.get_available_languages('huh')
self.assertEqual(1, len(unknown_domain_languages))
self.assertIn('en_US', unknown_domain_languages)
+
+ def test_cached_find(self):
+ domain = 'my-unique-domain'
+ key = (domain, None, None, 0)
+ self.assertNotIn(key, _gettextutils._FIND_CACHE)
+ gettext.find(domain)
+ self.assertIn(key, _gettextutils._FIND_CACHE)
+ _gettextutils._FIND_CACHE[key] = "spoof result"
+ self.assertEqual("spoof result", gettext.find(domain))
+ _gettextutils._FIND_CACHE.pop(key)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.i18n-3.21.0/releasenotes/notes/reno.cache
new/oslo.i18n-3.23.1/releasenotes/notes/reno.cache
--- old/oslo.i18n-3.21.0/releasenotes/notes/reno.cache 2018-07-20
03:10:16.000000000 +0200
+++ new/oslo.i18n-3.23.1/releasenotes/notes/reno.cache 1970-01-01
01:00:00.000000000 +0100
@@ -1,3 +0,0 @@
----
-file-contents: {}
-notes: []
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.i18n-3.21.0/releasenotes/source/index.rst
new/oslo.i18n-3.23.1/releasenotes/source/index.rst
--- old/oslo.i18n-3.21.0/releasenotes/source/index.rst 2018-07-20
03:06:47.000000000 +0200
+++ new/oslo.i18n-3.23.1/releasenotes/source/index.rst 2019-02-28
19:06:04.000000000 +0100
@@ -6,6 +6,7 @@
:maxdepth: 1
unreleased
+ rocky
queens
pike
ocata
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/oslo.i18n-3.21.0/releasenotes/source/locale/en_GB/LC_MESSAGES/releasenotes.po
new/oslo.i18n-3.23.1/releasenotes/source/locale/en_GB/LC_MESSAGES/releasenotes.po
---
old/oslo.i18n-3.21.0/releasenotes/source/locale/en_GB/LC_MESSAGES/releasenotes.po
2018-07-20 03:06:47.000000000 +0200
+++
new/oslo.i18n-3.23.1/releasenotes/source/locale/en_GB/LC_MESSAGES/releasenotes.po
2019-02-28 19:06:04.000000000 +0100
@@ -2,13 +2,13 @@
# Andi Chandler <[email protected]>, 2018. #zanata
msgid ""
msgstr ""
-"Project-Id-Version: oslo.i18n Release Notes\n"
+"Project-Id-Version: oslo.i18n\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2018-02-05 13:14+0000\n"
+"POT-Creation-Date: 2018-08-13 07:24+0000\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"PO-Revision-Date: 2018-01-26 07:19+0000\n"
+"PO-Revision-Date: 2018-08-13 12:05+0000\n"
"Last-Translator: Andi Chandler <[email protected]>\n"
"Language-Team: English (United Kingdom)\n"
"Language: en_GB\n"
@@ -33,6 +33,9 @@
msgid "Queens Series Release Notes"
msgstr "Queens Series Release Notes"
+msgid "Rocky Series Release Notes"
+msgstr "Rocky Series Release Notes"
+
msgid "Unreleased Release Notes"
msgstr "Unreleased Release Notes"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.i18n-3.21.0/releasenotes/source/rocky.rst
new/oslo.i18n-3.23.1/releasenotes/source/rocky.rst
--- old/oslo.i18n-3.21.0/releasenotes/source/rocky.rst 1970-01-01
01:00:00.000000000 +0100
+++ new/oslo.i18n-3.23.1/releasenotes/source/rocky.rst 2019-02-28
19:06:04.000000000 +0100
@@ -0,0 +1,6 @@
+===================================
+ Rocky Series Release Notes
+===================================
+
+.. release-notes::
+ :branch: stable/rocky
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.i18n-3.21.0/setup.cfg
new/oslo.i18n-3.23.1/setup.cfg
--- old/oslo.i18n-3.21.0/setup.cfg 2018-07-20 03:10:16.000000000 +0200
+++ new/oslo.i18n-3.23.1/setup.cfg 2019-02-28 19:08:12.000000000 +0100
@@ -4,7 +4,7 @@
description-file =
README.rst
author = OpenStack
-author-email = [email protected]
+author-email = [email protected]
home-page = https://docs.openstack.org/oslo.i18n/latest
classifier =
Environment :: OpenStack
@@ -45,7 +45,7 @@
mapping_file = babel.cfg
output_file = oslo_i18n/locale/oslo_i18n.pot
-[wheel]
+[bdist_wheel]
universal = 1
[egg_info]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.i18n-3.21.0/test-requirements.txt
new/oslo.i18n-3.23.1/test-requirements.txt
--- old/oslo.i18n-3.21.0/test-requirements.txt 2018-07-20 03:06:47.000000000
+0200
+++ new/oslo.i18n-3.23.1/test-requirements.txt 2019-02-28 19:06:04.000000000
+0100
@@ -1,7 +1,7 @@
# The order of packages is significant, because pip processes them in the order
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
-hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
+hacking>=1.1.0,<1.2.0 # Apache-2.0
stestr>=2.0.0 # Apache-2.0
sphinx!=1.6.6,!=1.6.7,>=1.6.5 # BSD
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.i18n-3.21.0/tox.ini new/oslo.i18n-3.23.1/tox.ini
--- old/oslo.i18n-3.21.0/tox.ini 2018-07-20 03:06:47.000000000 +0200
+++ new/oslo.i18n-3.23.1/tox.ini 2019-02-28 19:06:04.000000000 +0100
@@ -1,6 +1,6 @@
[tox]
minversion = 2.0
-envlist = py35,py27,pep8
+envlist = py37,py27,pep8
[testenv]
install_command = pip install {opts} {packages}
@@ -32,13 +32,21 @@
[testenv:cover]
basepython = python3
-commands = python setup.py test --coverage --coverage-package-name=oslo_i18n
--testr-args='{posargs}'
+setenv =
+ PYTHON=coverage run --source oslo_i18n --parallel-mode
+commands =
+ stestr run {posargs}
+ coverage combine
+ coverage html -d cover
+ coverage xml -o cover/coverage.xml
+
[flake8]
# E123, E125 skipped as they are invalid PEP-8.
+# E731 skipped as assign a lambda expression
show-source = True
-ignore = E123,E125
+ignore = E123,E125,E731
# H106: Don’t put vim configuration in source files
# H203: Use assertIs(Not)None to check for None