Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-pytest-translations for
openSUSE:Factory checked in at 2021-03-15 10:56:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-translations (Old)
and /work/SRC/openSUSE:Factory/.python-pytest-translations.new.2401 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytest-translations"
Mon Mar 15 10:56:36 2021 rev:4 rq:879094 version:3.0.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-pytest-translations/python-pytest-translations.changes
2020-03-16 10:18:45.727597593 +0100
+++
/work/SRC/openSUSE:Factory/.python-pytest-translations.new.2401/python-pytest-translations.changes
2021-03-15 10:56:37.573376657 +0100
@@ -1,0 +2,10 @@
+Fri Jan 22 04:30:02 UTC 2021 - John Vandenberg <[email protected]>
+
+- Fix incompatibility with pytest 6.2.1
+- Disable Python 2 builds due to pytest minimum version
+- Re-enable two disabled tests
+- Update to v3.0.0
+ * refactor for pytest 6 compatibility
+- Add upstream patch pr_48.patch
+
+-------------------------------------------------------------------
Old:
----
pytest-translations-2.0.0.tar.gz
New:
----
pr_48.patch
pytest-translations-3.0.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pytest-translations.spec ++++++
--- /var/tmp/diff_new_pack.1AjAEf/_old 2021-03-15 10:56:38.041377373 +0100
+++ /var/tmp/diff_new_pack.1AjAEf/_new 2021-03-15 10:56:38.041377373 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-pytest-translations
#
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,17 +17,16 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%define skip_python2 1
Name: python-pytest-translations
-Version: 2.0.0
+Version: 3.0.0
Release: 0
Summary: Plugin for testing gettext, .po and .mo files
License: Apache-2.0
URL: https://github.com/Thermondo/pytest-translations
Source:
https://files.pythonhosted.org/packages/source/p/pytest-translations/pytest-translations-%{version}.tar.gz
+Patch0:
https://patch-diff.githubusercontent.com/raw/Thermondo/pytest-translations/pull/48.patch#/pr_48.patch
BuildRequires: %{python_module pbr}
-BuildRequires: %{python_module polib >= 1.0.5}
-BuildRequires: %{python_module pyenchant >= 1.6.0}
-BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: myspell-de_DE
@@ -35,6 +34,11 @@
Requires: python-polib >= 1.0.5
Requires: python-pyenchant >= 1.6.0
BuildArch: noarch
+# SECTION test requirements
+BuildRequires: %{python_module polib >= 1.0.5}
+BuildRequires: %{python_module pyenchant >= 1.6.0}
+BuildRequires: %{python_module pytest > 5}
+# /SECTION
%python_subpackages
%description
@@ -47,6 +51,7 @@
%prep
%setup -q -n pytest-translations-%{version}
+%patch0 -p1
%build
export LANG=en_US.UTF-8
@@ -59,8 +64,7 @@
%check
export LANG=en_US.UTF-8
-# skipped tests needs language dicts
-%pytest -k 'not (test_language_missing_in_po or test_language_catalog_missing)'
+%pytest
%files %{python_files}
%doc AUTHORS ChangeLog README.rst
++++++ pr_48.patch ++++++
>From cf4626a8bbbb5a3677094e71dbbe8fd1f9003282 Mon Sep 17 00:00:00 2001
From: John Vandenberg <[email protected]>
Date: Fri, 22 Jan 2021 12:28:14 +0800
Subject: [PATCH] test_translations.py: Add . to ext
Fixes https://github.com/Thermondo/pytest-translations/issues/47
---
test_translations.py | 36 ++++++++++++++++++------------------
1 file changed, 18 insertions(+), 18 deletions(-)
diff --git a/test_translations.py b/test_translations.py
index 2416319..ddfff34 100644
--- a/test_translations.py
+++ b/test_translations.py
@@ -12,7 +12,7 @@ class TestMo(object):
@pytest.fixture
def pomo(self, testdir):
pofile = testdir.makefile(
- 'po',
+ '.po',
"""
#: asdf.py:111
msgid "car"
@@ -29,7 +29,7 @@ def pomo(self, testdir):
def test_broken_file(self, testdir):
testdir.makefile(
- 'po',
+ '.po',
"""
#: asdf.py:111
msgid "car"
@@ -37,7 +37,7 @@ def test_broken_file(self, testdir):
"""
)
testdir.makefile(
- 'mo',
+ '.mo',
"""
asdflkaj sdlkfaj
""",
@@ -76,7 +76,7 @@ def test_entry_mismatch(self, testdir, pomo):
os.unlink(po)
testdir.makefile(
- 'po',
+ '.po',
"""
msgid ""
msgstr ""
@@ -100,7 +100,7 @@ def test_entry_mismatch(self, testdir, pomo):
class TestPo(object):
def test_uses_argument(self, testdir):
testdir.makefile(
- 'po',
+ '.po',
"""
#: asdf.py:111
msgid "car"
@@ -114,7 +114,7 @@ def test_uses_argument(self, testdir):
def test_broken_file(self, testdir):
testdir.makefile(
- 'po',
+ '.po',
"""
asdflkaj sdlkfaj
"""
@@ -127,7 +127,7 @@ def test_broken_file(self, testdir):
def test_valid(self, testdir):
testdir.makefile(
- 'po',
+ '.po',
"""
#: asdf.py:111
msgid "car"
@@ -143,7 +143,7 @@ def test_valid(self, testdir):
def test_missing_translation(self, testdir):
testdir.makefile(
- 'po',
+ '.po',
"""
#: asdf.py:111
msgid "car"
@@ -159,7 +159,7 @@ def test_missing_translation(self, testdir):
def test_fuzzy(self, testdir):
testdir.makefile(
- 'po',
+ '.po',
"""
#: asdf.py:111
#, fuzzy
@@ -177,7 +177,7 @@ def test_fuzzy(self, testdir):
def test_obsolete(self, testdir):
testdir.makefile(
- 'po',
+ '.po',
"""
#: asdf.py:111
#~ msgid "car"
@@ -194,7 +194,7 @@ def test_obsolete(self, testdir):
def test_all(self, testdir):
testdir.makefile(
- 'po',
+ '.po',
"""
#: asdf.py:111
msgid "car2"
@@ -224,7 +224,7 @@ def test_all(self, testdir):
class TestPoSpellcheck(object):
def test_broken_file(self, testdir):
testdir.makefile(
- 'po',
+ '.po',
"""
asdflkjasdf laskdjfasdf
"""
@@ -236,7 +236,7 @@ def test_broken_file(self, testdir):
def test_language_missing_in_po(self, testdir):
testdir.makefile(
- 'po',
+ '.po',
"""
#: asdf.py:111
msgid "meeting"
@@ -251,7 +251,7 @@ def test_language_missing_in_po(self, testdir):
def test_language_catalog_missing(self, testdir):
testdir.makefile(
- 'po',
+ '.po',
"""
msgid ""
msgstr ""
@@ -270,7 +270,7 @@ def test_language_catalog_missing(self, testdir):
def test_python_format_placeholders(self, testdir):
testdir.makefile(
- 'po',
+ '.po',
"""
msgid ""
msgstr ""
@@ -289,7 +289,7 @@ def test_python_format_placeholders(self, testdir):
def test_pass(self, testdir):
testdir.makefile(
- 'po',
+ '.po',
"""
msgid ""
msgstr ""
@@ -308,7 +308,7 @@ def test_pass(self, testdir):
def test_fail(self, testdir):
testdir.makefile(
- 'po',
+ '.po',
"""
msgid ""
msgstr ""
@@ -329,7 +329,7 @@ def test_fail(self, testdir):
def test_wordlist(self, testdir, monkeypatch):
testdir.makefile(
- 'po',
+ '.po',
"""
msgid ""
msgstr ""
++++++ pytest-translations-2.0.0.tar.gz -> pytest-translations-3.0.0.tar.gz
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-translations-2.0.0/AUTHORS
new/pytest-translations-3.0.0/AUTHORS
--- old/pytest-translations-2.0.0/AUTHORS 2017-11-28 14:26:59.000000000
+0100
+++ new/pytest-translations-3.0.0/AUTHORS 2020-10-26 12:08:55.000000000
+0100
@@ -1,3 +1,4 @@
+Denis Cornehl <[email protected]>
Denis Cornehl <[email protected]>
Johannes Hoppe <[email protected]>
Martins Grunskis <[email protected]>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-translations-2.0.0/ChangeLog
new/pytest-translations-3.0.0/ChangeLog
--- old/pytest-translations-2.0.0/ChangeLog 2017-11-28 14:26:59.000000000
+0100
+++ new/pytest-translations-3.0.0/ChangeLog 2020-10-26 12:08:55.000000000
+0100
@@ -1,6 +1,11 @@
CHANGES
=======
+3.0.0
+-----
+
+* refactor for pytest 6 compatibility (#45)
+
2.0.0
-----
@@ -65,4 +70,3 @@
* Adds spell checking
* fix wrong version badge
* fix travis status image
-* bump version
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-translations-2.0.0/PKG-INFO
new/pytest-translations-3.0.0/PKG-INFO
--- old/pytest-translations-2.0.0/PKG-INFO 2017-11-28 14:26:59.000000000
+0100
+++ new/pytest-translations-3.0.0/PKG-INFO 2020-10-26 12:08:55.000000000
+0100
@@ -1,12 +1,11 @@
Metadata-Version: 1.1
Name: pytest-translations
-Version: 2.0.0
+Version: 3.0.0
Summary: Test your translation files.
Home-page: https://github.com/Thermondo/pytest-translations
Author: Thermondo GmbH
Author-email: [email protected]
License: Apache-2
-Description-Content-Type: UNKNOWN
Description: |version| |ci| |coverage| |license|
PyTest Translations
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pytest-translations-2.0.0/pytest_translations/__init__.py
new/pytest-translations-3.0.0/pytest_translations/__init__.py
--- old/pytest-translations-2.0.0/pytest_translations/__init__.py
2017-11-28 14:25:56.000000000 +0100
+++ new/pytest-translations-3.0.0/pytest_translations/__init__.py
2020-10-26 12:08:24.000000000 +0100
@@ -10,18 +10,25 @@
)
+def pytest_configure(config):
+ config.addinivalue_line(
+ "markers", "translations: translation tests"
+ )
+
+
def pytest_collect_file(path, parent):
from .mo_files import MoFileItem
from .po_files import PoFile
+
config = parent.config
if config.option.translations:
if path.ext == '.mo':
- return MoFileItem(
- path,
- parent=parent
+ return MoFileItem.from_parent(
+ fspath=path,
+ parent=parent,
)
elif path.ext == '.po':
- return PoFile(
- path,
+ return PoFile.from_parent(
+ fspath=path,
parent=parent
)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pytest-translations-2.0.0/pytest_translations/mo_files.py
new/pytest-translations-3.0.0/pytest_translations/mo_files.py
--- old/pytest-translations-2.0.0/pytest_translations/mo_files.py
2017-11-28 14:25:56.000000000 +0100
+++ new/pytest-translations-3.0.0/pytest_translations/mo_files.py
2020-10-26 12:08:24.000000000 +0100
@@ -9,8 +9,8 @@
class MoFileItem(Item, File):
- def __init__(self, path, parent):
- super(MoFileItem, self).__init__(path, parent)
+ def __init__(self, fspath, parent):
+ super().__init__(fspath, parent)
if hasattr(self, 'add_marker'):
self.add_marker(MARKER_NAME)
@@ -80,7 +80,7 @@
return msg
else:
- return super(MoFileItem, self).repr_failure(excinfo)
+ return super().repr_failure(excinfo)
def reportinfo(self):
return (self.fspath, -1, "mo-test")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pytest-translations-2.0.0/pytest_translations/po_files.py
new/pytest-translations-3.0.0/pytest_translations/po_files.py
--- old/pytest-translations-2.0.0/pytest_translations/po_files.py
2017-11-28 14:25:56.000000000 +0100
+++ new/pytest-translations-3.0.0/pytest_translations/po_files.py
2020-10-26 12:08:24.000000000 +0100
@@ -6,8 +6,8 @@
class PoFile(File):
- def __init__(self, path, parent):
- super(PoFile, self).__init__(path, parent)
+ def __init__(self, fspath, parent):
+ super().__init__(fspath, parent)
if hasattr(self, 'add_marker'):
self.add_marker(MARKER_NAME)
@@ -15,17 +15,17 @@
self.keywords[MARKER_NAME] = True
def collect(self):
- yield PoUntranslatedItem(
- self.name,
- self,
+ yield PoUntranslatedItem.from_parent(
+ name=self.name,
+ parent=self,
)
- yield PoFuzzyItem(
- self.name,
- self,
+ yield PoFuzzyItem.from_parent(
+ name=self.name,
+ parent=self,
)
- yield PoObsoleteItem(
- self.name,
- self,
+ yield PoObsoleteItem.from_parent(
+ name=self.name,
+ parent=self,
)
try:
parsed = open_po_file(self.fspath)
@@ -36,17 +36,17 @@
else:
language = parsed.metadata.get('Language', '')
for line in parsed.translated_entries():
- yield PoSpellCheckingItem(
- line,
- language,
- self.name,
- self,
+ yield PoSpellCheckingItem.from_parent(
+ line=line,
+ language=language,
+ name=self.name,
+ parent=self,
)
class PoBaseItem(Item):
def __init__(self, name, parent):
- super(PoBaseItem, self).__init__(name, parent)
+ super().__init__(name, parent)
self.add_marker(MARKER_NAME)
def repr_failure(self, excinfo):
@@ -63,7 +63,7 @@
return msg
else:
- return super(PoBaseItem, self).repr_failure(excinfo)
+ return super().repr_failure(excinfo)
class PoUntranslatedItem(PoBaseItem):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pytest-translations-2.0.0/pytest_translations/po_spelling.py
new/pytest-translations-3.0.0/pytest_translations/po_spelling.py
--- old/pytest-translations-2.0.0/pytest_translations/po_spelling.py
2017-11-28 14:25:56.000000000 +0100
+++ new/pytest-translations-3.0.0/pytest_translations/po_spelling.py
2020-10-26 12:08:24.000000000 +0100
@@ -57,7 +57,7 @@
else:
self.lang_dict = None
- super(PoSpellCheckingItem, self).__init__(name, parent)
+ super().__init__(name, parent)
self.add_marker(MARKER_NAME)
def runtest(self):
@@ -118,7 +118,7 @@
return "\n".join(lines)
else:
- return super(PoSpellCheckingItem, self).repr_failure(excinfo)
+ return super().repr_failure(excinfo)
def reportinfo(self):
return (self.fspath, -1, 'po-spelling')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pytest-translations-2.0.0/pytest_translations.egg-info/PKG-INFO
new/pytest-translations-3.0.0/pytest_translations.egg-info/PKG-INFO
--- old/pytest-translations-2.0.0/pytest_translations.egg-info/PKG-INFO
2017-11-28 14:26:59.000000000 +0100
+++ new/pytest-translations-3.0.0/pytest_translations.egg-info/PKG-INFO
2020-10-26 12:08:55.000000000 +0100
@@ -1,12 +1,11 @@
Metadata-Version: 1.1
Name: pytest-translations
-Version: 2.0.0
+Version: 3.0.0
Summary: Test your translation files.
Home-page: https://github.com/Thermondo/pytest-translations
Author: Thermondo GmbH
Author-email: [email protected]
License: Apache-2
-Description-Content-Type: UNKNOWN
Description: |version| |ci| |coverage| |license|
PyTest Translations
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pytest-translations-2.0.0/pytest_translations.egg-info/pbr.json
new/pytest-translations-3.0.0/pytest_translations.egg-info/pbr.json
--- old/pytest-translations-2.0.0/pytest_translations.egg-info/pbr.json
2017-11-28 14:26:59.000000000 +0100
+++ new/pytest-translations-3.0.0/pytest_translations.egg-info/pbr.json
2020-10-26 12:08:55.000000000 +0100
@@ -1 +1 @@
-{"git_version": "7227238", "is_release": true}
\ No newline at end of file
+{"git_version": "13a4479", "is_release": false}
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-translations-2.0.0/requirements-dev.txt
new/pytest-translations-3.0.0/requirements-dev.txt
--- old/pytest-translations-2.0.0/requirements-dev.txt 2017-11-28
14:25:56.000000000 +0100
+++ new/pytest-translations-3.0.0/requirements-dev.txt 2020-10-26
12:08:24.000000000 +0100
@@ -1,2 +1,2 @@
-e .
-pytest
+pytest>=6.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-translations-2.0.0/test_translations.py
new/pytest-translations-3.0.0/test_translations.py
--- old/pytest-translations-2.0.0/test_translations.py 2017-11-28
14:25:56.000000000 +0100
+++ new/pytest-translations-3.0.0/test_translations.py 2020-10-26
12:08:24.000000000 +0100
@@ -246,7 +246,7 @@
result = testdir.runpytest('--translations', '-vvv', '-r', 's')
result.stdout.fnmatch_lines([
"*collected 4*",
- "SKIP * no language defined in PO file",
+ "SKIPPED * no language defined in PO file",
])
def test_language_catalog_missing(self, testdir):
@@ -265,7 +265,7 @@
result = testdir.runpytest('--translations', '-vvv', '-r', 's')
result.stdout.fnmatch_lines([
"*collected 4*",
- "SKIP * aspell dictionary for language hr not found*",
+ "SKIPPED * aspell dictionary for language hr not found*",
])
def test_python_format_placeholders(self, testdir):