1
0

- update to 4.0.1:

* Fix aspell installation docs in README
- drop pr_48.patch (upstream)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-translations?expand=0&rev=14
This commit is contained in:
2023-05-09 21:28:01 +00:00
committed by Git OBS Bridge
parent 140c5f07cf
commit c8eaf2b36e
5 changed files with 12 additions and 183 deletions

View File

@@ -1,176 +0,0 @@
From cf4626a8bbbb5a3677094e71dbbe8fd1f9003282 Mon Sep 17 00:00:00 2001
From: John Vandenberg <jayvdb@gmail.com>
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 ""

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1072a26e29aa8387d3ecd30ff98b1dcc11b7ff97376eebd2d318212e0bef142c
size 8422

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4f2cd5d32f05629f500124297bb1917e1278a2f08f353986421675d08f9f03ee
size 8282

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue May 9 21:27:15 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 4.0.1:
* Fix aspell installation docs in README
- drop pr_48.patch (upstream)
-------------------------------------------------------------------
Fri Jan 22 04:30:02 UTC 2021 - John Vandenberg <jayvdb@gmail.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pytest-translations
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -19,13 +19,12 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-pytest-translations
Version: 3.0.0
Version: 4.0.1
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 setuptools}
BuildRequires: fdupes
@@ -51,7 +50,6 @@ Test check for:
%prep
%setup -q -n pytest-translations-%{version}
%patch0 -p1
%build
export LANG=en_US.UTF-8