From db2ebf41645ea698b7d719bb2a625f467794d2de9f3801cf11f73fd9e1826c70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 17 Apr 2020 06:35:06 +0000 Subject: [PATCH] Accepting request 794774 from home:pgajdos:python - version update to 0.7.0 v0.7.0 (2020-03-09) ------------------- - `parse()` now accepts strings as input - **Breaking**: `parse()` now returns a generator of custom objects instead of triples of strings - Gave `PropertiesFile` a settable `timestamp` property - Gave `PropertiesFile` a settable `header_comment` property - Handle unescaping surrogate pairs on narrow Python builds v0.6.0 (2020-02-28) ------------------- - Include changelog in the Read the Docs site - Support Python 3.8 - When dumping a value that begins with more than one space, only escape the first space in order to better match Java's behavior - Gave `dump()`, `dumps()`, `escape()`, and `join_key_value()` an `ensure_ascii` parameter for optionally not escaping non-ASCII characters in output - Gave `dump()` and `dumps()` an `ensure_ascii_comments` parameter for controlling what characters in the `comments` parameter are escaped - Gave `to_comment()` an `ensure_ascii` parameter for controlling what characters are escaped - Added a custom encoding error handler `'javapropertiesreplace'` that encodes invalid characters as `\uXXXX` escape sequences - really test the package OBS-URL: https://build.opensuse.org/request/show/794774 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-javaproperties?expand=0&rev=3 --- javaproperties-0.5.2.tar.gz | 3 --- javaproperties-0.7.0.tar.gz | 3 +++ python-javaproperties.changes | 29 +++++++++++++++++++++++++++++ python-javaproperties.spec | 28 +++++++++++++++++----------- 4 files changed, 49 insertions(+), 14 deletions(-) delete mode 100644 javaproperties-0.5.2.tar.gz create mode 100644 javaproperties-0.7.0.tar.gz diff --git a/javaproperties-0.5.2.tar.gz b/javaproperties-0.5.2.tar.gz deleted file mode 100644 index 16fdc78..0000000 --- a/javaproperties-0.5.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:68add3438bd24d6e32665cad91f254fc82a51bf905e21f3f424a085c79904fb3 -size 30244 diff --git a/javaproperties-0.7.0.tar.gz b/javaproperties-0.7.0.tar.gz new file mode 100644 index 0000000..afd484d --- /dev/null +++ b/javaproperties-0.7.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cf45b39fcbaeced1dfc0b7f2bda16e34fc0349116269e001dada42fd2e145d87 +size 40893 diff --git a/python-javaproperties.changes b/python-javaproperties.changes index 1bc0dfb..f9bc001 100644 --- a/python-javaproperties.changes +++ b/python-javaproperties.changes @@ -1,3 +1,32 @@ +------------------------------------------------------------------- +Thu Apr 16 12:19:12 UTC 2020 - pgajdos@suse.com + +- version update to 0.7.0 + v0.7.0 (2020-03-09) + ------------------- + - `parse()` now accepts strings as input + - **Breaking**: `parse()` now returns a generator of custom objects instead of + triples of strings + - Gave `PropertiesFile` a settable `timestamp` property + - Gave `PropertiesFile` a settable `header_comment` property + - Handle unescaping surrogate pairs on narrow Python builds + v0.6.0 (2020-02-28) + ------------------- + - Include changelog in the Read the Docs site + - Support Python 3.8 + - When dumping a value that begins with more than one space, only escape the + first space in order to better match Java's behavior + - Gave `dump()`, `dumps()`, `escape()`, and `join_key_value()` an + `ensure_ascii` parameter for optionally not escaping non-ASCII characters in + output + - Gave `dump()` and `dumps()` an `ensure_ascii_comments` parameter for + controlling what characters in the `comments` parameter are escaped + - Gave `to_comment()` an `ensure_ascii` parameter for controlling what + characters are escaped + - Added a custom encoding error handler `'javapropertiesreplace'` that encodes + invalid characters as `\uXXXX` escape sequences +- really test the package + ------------------------------------------------------------------- Tue Nov 26 12:33:45 UTC 2019 - John Paul Adrian Glaubitz diff --git a/python-javaproperties.spec b/python-javaproperties.spec index 7db2707..f497329 100644 --- a/python-javaproperties.spec +++ b/python-javaproperties.spec @@ -1,7 +1,7 @@ # # spec file for package python-javaproperties # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,32 +12,34 @@ # 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/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-javaproperties -Version: 0.5.2 +Version: 0.7.0 Release: 0 +Summary: Read & Write Java Properties Files License: MIT -Summary: Read & write Java properties files -Url: https://github.com/jwodder/javaproperties Group: Development/Languages/Python +URL: https://github.com/jwodder/javaproperties Source: https://files.pythonhosted.org/packages/source/j/javaproperties/javaproperties-%{version}.tar.gz -BuildRequires: python-rpm-macros -BuildRequires: %{python_module devel} +BuildRequires: %{python_module pytest-mock >= 2.0} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module python-dateutil >= 2.6} BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module six >= 1.4} BuildRequires: %{python_module six < 2.0} +BuildRequires: %{python_module six >= 1.4} BuildRequires: fdupes +BuildRequires: python-rpm-macros Requires: python-six < 2.0 Requires: python-six >= 1.4 BuildArch: noarch - %python_subpackages %description -Read & write Java .properties files +Read & write Java .properties files. %prep %setup -q -n javaproperties-%{version} @@ -48,8 +50,12 @@ Read & write Java .properties files %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} + %check -%python_exec setup.py test +sed -i -e '/--cov/d' -e '/--no-cov/d' -e '/--flakes/d' -e '/--doctest-modules/d' tox.ini +export LC_ALL='en_US.UTF-8' +export TZ=EST5EDT,M3.2.0,M11.1.0 +%pytest test %files %{python_files} %doc CHANGELOG.md README.rst