forked from pool/python-polib
- Version update to 1.1.0:
- Fixed entries sorting when generating mo file (Fixes #78) - Fixed find method (Fixes #84) - Refactored POEntry.__cmp__ method (this should fix issues #60, #65 and #79) - Fixed duplicated entries when merging po file with pot file (fixes #68) - Fixed "None" string being outputted when polib deals with syntax error in string (Fixes issue #66) - Added a fuzzy property to entries (Fixes #76) - Take into account the message context when comparing entries - Leave occurence untouched if line number is not a number (fixes #80 and #90) - Fixed test for mo files that was failing because since gettext version 0.19.8.1, msgfmt skips the "POT-Creation-Date" metadata entry (Fixes #86) - Fixed major revision number comparison - Dropped python 2.4 support - Drop merged patch 2a4caf09e210554018bf0e928690d9617ff89e00.diff OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-polib?expand=0&rev=28
This commit is contained in:
committed by
Git OBS Bridge
parent
b554870354
commit
80e28e02ee
@@ -1,47 +0,0 @@
|
||||
diff --git a/tests/test_iso-8859-15.po b/tests/test_iso-8859-15.po
|
||||
index a26d7d6..da453ee 100644
|
||||
--- a/tests/test_iso-8859-15.po
|
||||
+++ b/tests/test_iso-8859-15.po
|
||||
@@ -3,7 +3,6 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Vim(Fran<61>ais)\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
-"POT-Creation-Date: 2006-05-01 19:42+0200\n"
|
||||
"PO-Revision-Date: 2006-05-02 14:15+0200\n"
|
||||
"Last-Translator: David Blanchet <david.blanchet@free.fr>\n"
|
||||
"Language-Team: Adrien Beau <version.francaise@free.fr>\n"
|
||||
diff --git a/tests/test_utf8.po b/tests/test_utf8.po
|
||||
index 0ae3c0b..ebbda67 100644
|
||||
--- a/tests/test_utf8.po
|
||||
+++ b/tests/test_utf8.po
|
||||
@@ -6,7 +6,6 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: django\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
-"POT-Creation-Date: 2007-08-17 15:35-0400\n"
|
||||
"PO-Revision-Date: 2007-07-14 13:00-0500\n"
|
||||
"Last-Translator: Mario Gonzalez <gonzalemario @t gmail.com>\n"
|
||||
"Language-Team: Castellano <Django-I18N@googlegroups.com>\n"
|
||||
diff --git a/tests/tests.py b/tests/tests.py
|
||||
index 9d82461..d2f0f3a 100644
|
||||
--- a/tests/tests.py
|
||||
+++ b/tests/tests.py
|
||||
@@ -304,15 +304,15 @@ msgstr ""
|
||||
|
||||
def test_linenum_1(self):
|
||||
po = polib.pofile('tests/test_utf8.po')
|
||||
- self.assertEqual(po[0].linenum, 18)
|
||||
+ self.assertEqual(po[0].linenum, 17)
|
||||
|
||||
def test_linenum_2(self):
|
||||
po = polib.pofile('tests/test_utf8.po')
|
||||
- self.assertEqual(po.find('XML text').linenum, 1799)
|
||||
+ self.assertEqual(po.find('XML text').linenum, 1798)
|
||||
|
||||
def test_linenum_3(self):
|
||||
po = polib.pofile('tests/test_utf8.po')
|
||||
- self.assertEqual(po[-1].linenum, 3478)
|
||||
+ self.assertEqual(po[-1].linenum, 3477)
|
||||
|
||||
def test_windows_path_occurrences(self):
|
||||
po = polib.pofile('tests/test_weird_occurrences.po')
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5affe3d915eb5b4773f4ce164817e383eea0306115cdaf9b64008b3aea8202df
|
||||
size 160670
|
||||
3
polib-1.1.0.tar.gz
Normal file
3
polib-1.1.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:fad87d13696127ffb27ea0882d6182f1a9cf8a5e2b37a587751166c51e5a332a
|
||||
size 158484
|
||||
@@ -1,3 +1,20 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 25 15:43:04 UTC 2018 - tchvatal@suse.com
|
||||
|
||||
- Version update to 1.1.0:
|
||||
- Fixed entries sorting when generating mo file (Fixes #78)
|
||||
- Fixed find method (Fixes #84)
|
||||
- Refactored POEntry.__cmp__ method (this should fix issues #60, #65 and #79)
|
||||
- Fixed duplicated entries when merging po file with pot file (fixes #68)
|
||||
- Fixed "None" string being outputted when polib deals with syntax error in string (Fixes issue #66)
|
||||
- Added a fuzzy property to entries (Fixes #76)
|
||||
- Take into account the message context when comparing entries
|
||||
- Leave occurence untouched if line number is not a number (fixes #80 and #90)
|
||||
- Fixed test for mo files that was failing because since gettext version 0.19.8.1, msgfmt skips the "POT-Creation-Date" metadata entry (Fixes #86)
|
||||
- Fixed major revision number comparison
|
||||
- Dropped python 2.4 support
|
||||
- Drop merged patch 2a4caf09e210554018bf0e928690d9617ff89e00.diff
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 4 08:41:02 UTC 2017 - mlin@suse.com
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-polib
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2013 LISA GmbH, Bingen, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
@@ -17,21 +17,15 @@
|
||||
#
|
||||
|
||||
|
||||
%bcond_without tests
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-polib
|
||||
Version: 1.0.8
|
||||
Version: 1.1.0
|
||||
Release: 0
|
||||
Url: http://bitbucket.org/izi/polib/
|
||||
Summary: A library to manipulate gettext files
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
Url: http://bitbucket.org/izi/polib/
|
||||
Source0: https://files.pythonhosted.org/packages/source/p/polib/polib-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM https://bitbucket.org/izi/polib/commits/2a4caf09e210554018bf0e928690d9617ff89e00
|
||||
Patch0: 2a4caf09e210554018bf0e928690d9617ff89e00.diff
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
@@ -68,13 +62,12 @@ This package contains documentation in HTML format.
|
||||
|
||||
%prep
|
||||
%setup -q -n polib-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
pushd docs
|
||||
make html
|
||||
make %{?_smp_mflags} html
|
||||
rm _build/html/.buildinfo
|
||||
popd
|
||||
|
||||
@@ -82,18 +75,14 @@ popd
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%if %{with tests}
|
||||
%check
|
||||
%python_exec tests/tests.py
|
||||
%endif
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root)
|
||||
%doc LICENSE CHANGELOG README.rst
|
||||
%{python_sitelib}/*
|
||||
|
||||
%files -n python-polib-doc
|
||||
%defattr(-,root,root)
|
||||
%doc docs/_build/html
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user