Hello community,
here is the log from the commit of package i18nspector for openSUSE:Factory checked in at 2016-07-14 09:50:00
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/i18nspector (Old)
and /work/SRC/openSUSE:Factory/.i18nspector.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "i18nspector"
Changes:
--------
--- /work/SRC/openSUSE:Factory/i18nspector/i18nspector.changes 2016-06-02 09:39:17.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.i18nspector.new/i18nspector.changes 2016-07-14 09:50:10.000000000 +0200
@@ -1,0 +2,6 @@
+Tue Jul 5 18:02:53 UTC 2016 - lazy.kent@opensuse.org
+
+- Update to 0.25.1.
+ * Fix compatibility with Python 3.6.
+
+-------------------------------------------------------------------
Old:
----
i18nspector-0.25.tar.gz
i18nspector-0.25.tar.gz.asc
New:
----
i18nspector-0.25.1.tar.gz
i18nspector-0.25.1.tar.gz.asc
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ i18nspector.spec ++++++
--- /var/tmp/diff_new_pack.1lV8qN/_old 2016-07-14 09:50:11.000000000 +0200
+++ /var/tmp/diff_new_pack.1lV8qN/_new 2016-07-14 09:50:11.000000000 +0200
@@ -17,7 +17,7 @@
Name: i18nspector
-Version: 0.25
+Version: 0.25.1
Release: 0
Summary: Tool for Checking gettext POT/PO/MO Files
License: MIT
++++++ i18nspector-0.25.tar.gz -> i18nspector-0.25.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/i18nspector-0.25/Makefile new/i18nspector-0.25.1/Makefile
--- old/i18nspector-0.25/Makefile 2016-05-31 17:24:35.000000000 +0200
+++ new/i18nspector-0.25.1/Makefile 2016-06-16 11:27:25.000000000 +0200
@@ -28,8 +28,6 @@
bindir = $(PREFIX)/bin
basedir = $(PREFIX)/share/$(exe)
-libdir = $(basedir)/lib
-datadir = $(basedir)/data
mandir = $(PREFIX)/share/man
.PHONY: all
@@ -41,14 +39,9 @@
$(INSTALL) -d -m755 $(DESTDIR)$(bindir)
sed -e "s#^basedir_fallback = .*#basedir_fallback = '$(basedir)/'#" $(exe) > $(DESTDIR)$(bindir)/$(exe)
chmod 0755 $(DESTDIR)$(bindir)/$(exe)
- # library:
- ( cd lib && find . -type f ! -name '*.py[co]' ) \
- | sed -e 's#^[.]/##' \
- | xargs -t -I {} $(INSTALL) -p -D -m644 lib/{} $(DESTDIR)$(libdir)/{}
- # data:
- ( cd data && find . -type f ) \
- | sed -e 's#^[.]/##' \
- | xargs -t -I {} $(INSTALL) -p -D -m644 data/{} $(DESTDIR)$(datadir)/{}
+ # library + data:
+ ( find lib data -type f ! -name '*.py[co]' ) \
+ | xargs -t -I {} $(INSTALL) -p -D -m644 {} $(DESTDIR)$(basedir)/{}
# manual page:
$(INSTALL) -p -D -m644 doc/$(exe).1 $(DESTDIR)$(mandir)/man1/$(exe).1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/i18nspector-0.25/doc/changelog new/i18nspector-0.25.1/doc/changelog
--- old/i18nspector-0.25/doc/changelog 2016-05-31 17:24:35.000000000 +0200
+++ new/i18nspector-0.25.1/doc/changelog 2016-06-16 11:27:25.000000000 +0200
@@ -1,9 +1,15 @@
+i18nspector (0.25.1) unstable; urgency=low
+
+ * Fix compatibility with Python 3.6.
+
+ -- Jakub Wilk Thu, 16 Jun 2016 11:27:08 +0200
+
i18nspector (0.25) unstable; urgency=low
- * Improve the test suite.
- * Remove empty lines between references in the manual page.
* Rename --parallel as -j/--jobs.
* Make it possible to specify “auto” as the number of processes to use.
+ * Remove empty lines between references in the manual page.
+ * Improve the test suite.
-- Jakub Wilk Tue, 31 May 2016 17:24:25 +0200
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/i18nspector-0.25/doc/i18nspector.1 new/i18nspector-0.25.1/doc/i18nspector.1
--- old/i18nspector-0.25/doc/i18nspector.1 2016-05-31 17:29:53.000000000 +0200
+++ new/i18nspector-0.25.1/doc/i18nspector.1 2016-06-16 11:28:05.000000000 +0200
@@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
-.TH I18NSPECTOR 1 "2016-05-31" "i18nspector 0.25" ""
+.TH I18NSPECTOR 1 "2016-06-16" "i18nspector 0.25.1" ""
.SH NAME
i18nspector \- checking tool for gettext POT, PO and MO files
.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/i18nspector-0.25/doc/i18nspector.txt new/i18nspector-0.25.1/doc/i18nspector.txt
--- old/i18nspector-0.25/doc/i18nspector.txt 2016-05-31 17:24:35.000000000 +0200
+++ new/i18nspector-0.25.1/doc/i18nspector.txt 2016-06-16 11:27:25.000000000 +0200
@@ -7,7 +7,7 @@
----------------------------------------------
:manual section: 1
-:version: i18nspector 0.25
+:version: i18nspector 0.25.1
:date: |date|
Synopsis
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/i18nspector-0.25/lib/cli.py new/i18nspector-0.25.1/lib/cli.py
--- old/i18nspector-0.25/lib/cli.py 2016-05-31 17:24:35.000000000 +0200
+++ new/i18nspector-0.25.1/lib/cli.py 2016-06-16 11:27:25.000000000 +0200
@@ -39,7 +39,7 @@
from lib import tags
from lib import terminal
-__version__ = '0.25'
+__version__ = '0.25.1'
def initialize_terminal():
if sys.stdout.isatty():
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/i18nspector-0.25/lib/polib4us.py new/i18nspector-0.25.1/lib/polib4us.py
--- old/i18nspector-0.25/lib/polib4us.py 2016-05-31 17:24:35.000000000 +0200
+++ new/i18nspector-0.25.1/lib/polib4us.py 2016-06-16 11:27:25.000000000 +0200
@@ -130,7 +130,7 @@
def polib_unescape(s):
def unescape(match):
s = match.group()
- s = _short_x_escape_re.sub(r'\x0\1', s)
+ s = _short_x_escape_re.sub(r'\\x0\1', s)
result = ast.literal_eval("b'{}'".format(s))
try:
return result.decode('ASCII')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/i18nspector-0.25/tests/blackbox_tests/__init__.py new/i18nspector-0.25.1/tests/blackbox_tests/__init__.py
--- old/i18nspector-0.25/tests/blackbox_tests/__init__.py 2016-05-31 17:24:35.000000000 +0200
+++ new/i18nspector-0.25.1/tests/blackbox_tests/__init__.py 2016-06-16 11:27:25.000000000 +0200
@@ -158,23 +158,20 @@
yield TestCase(path)
def wantFunction(self, func):
- # If the plugin is being used, test_file() is redundant.
- # We can't just check whether "func is test_file", because some
- # versions of nose (at least 1.1.2) reload the module.
- if func.__name__ == 'test_file' and func.__module__ == test_file.__module__:
+ if getattr(func, 'redundant', False):
return False
class TestCase(unittest.TestCase):
def __init__(self, path):
super().__init__('_test')
- self.path = path
+ self.path = os.path.relpath(path)
def _test(self):
- _test_file(self.path)
+ _test_file(self.path, basedir=None)
def __str__(self):
- return os.path.relpath(self.path)
+ return self.path
class SubprocessError(Exception):
pass
@@ -349,8 +346,9 @@
with open(path, 'rt', encoding='UTF-8', errors='ignore') as file:
return _parse_test_header_file(file, path, comments_only=True)
-def _test_file(path):
- path = os.path.relpath(os.path.join(here, path), start=os.getcwd())
+def _test_file(path, basedir=here):
+ if basedir is not None:
+ path = os.path.relpath(os.path.join(basedir, path), start=os.getcwd())
options = []
etags, options = _parse_test_headers(path)
assert_emit_tags(path, etags, options=options)
@@ -374,6 +372,7 @@
for filename in _get_test_filenames():
path = os.path.relpath(filename, start=here)
yield _test_file, path
+test_file.redundant = True # not needed if the plugin is enabled
@tagstring('''
E: os-error No such file or directory
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/i18nspector-0.25/tests/coverage.txt new/i18nspector-0.25.1/tests/coverage.txt
--- old/i18nspector-0.25/tests/coverage.txt 2016-05-31 17:24:35.000000000 +0200
+++ new/i18nspector-0.25.1/tests/coverage.txt 2016-06-16 11:27:25.000000000 +0200
@@ -9,7 +9,7 @@
lib/check/msgformat/pybrace.py 32 24 13 0 18% 17-28, 31-53
lib/check/msgformat/python.py 77 67 39 0 9% 37-109, 112-149
lib/check/msgrepr.py 10 7 2 0 25% 24-30
-lib/cli.py 114 86 32 0 19% 44-48, 56-65, 68-69, 72-74, 80-109, 112-117, 123-129, 132-140, 143-170
+lib/cli.py 133 102 42 0 18% 45-49, 57-66, 69-70, 73-75, 81-110, 113-118, 124-130, 133-141, 144-152, 156-190
lib/domains.py 15 0 0 0 100%
lib/encodings.py 125 36 30 0 73% 49-67, 79-87, 192, 200-212, 216-220
lib/gettext.py 105 0 34 0 100%
@@ -28,4 +28,4 @@
lib/terminal.py 53 24 4 0 51% 77-104
lib/xml.py 21 0 2 0 100%
----------------------------------------------------------------------------
-TOTAL 3393 1381 1462 29 55%
+TOTAL 3412 1397 1472 29 55%