forked from pool/python-javaproperties
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
This commit is contained in:
committed by
Git OBS Bridge
parent
ae88aeaf4d
commit
db2ebf4164
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:68add3438bd24d6e32665cad91f254fc82a51bf905e21f3f424a085c79904fb3
|
||||
size 30244
|
||||
3
javaproperties-0.7.0.tar.gz
Normal file
3
javaproperties-0.7.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:cf45b39fcbaeced1dfc0b7f2bda16e34fc0349116269e001dada42fd2e145d87
|
||||
size 40893
|
||||
@@ -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 <adrian.glaubitz@suse.com>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user