14
0

Accepting request 1076857 from home:pgajdos:python

- version update to 0.8.1
  v0.8.1 (2021-10-05)
  -------------------
  - Fix a typing issue in Python 3.9
  - Support Python 3.10
  
  v0.8.0 (2020-11-28)
  -------------------
  - Drop support for Python 2.7, 3.4, and 3.5
  - Support Python 3.9
  - `ensure_ascii` parameter added to `PropertiesFile.dump()` and
    `PropertiesFile.dumps()`
  - **Bugfix**: When parsing XML input, empty `<entry>` tags now produce an empty
    string as a value, not `None`
  - Added type annotations
  - `Properties` and `PropertiesFile` no longer raise `TypeError` when given a
    non-string key or value, as type correctness is now expected to be enforced
    through static type checking
  - The `PropertiesElement` classes returned by `parse()` are no longer
    subclasses of `namedtuple`, but they can still be iterated over to retrieve
    their fields like a tuple
- python-six is not required

OBS-URL: https://build.opensuse.org/request/show/1076857
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-javaproperties?expand=0&rev=5
This commit is contained in:
2023-04-04 09:36:52 +00:00
committed by Git OBS Bridge
parent db2ebf4164
commit 6d22ad83d2
4 changed files with 37 additions and 14 deletions

View File

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

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9dcba389effe67d3f906bbdcc64b8ef2ee8eac00072406784ea636bb6ba56061
size 43881

View File

@@ -1,3 +1,29 @@
-------------------------------------------------------------------
Mon Apr 3 09:02:47 UTC 2023 - pgajdos@suse.com
- version update to 0.8.1
v0.8.1 (2021-10-05)
-------------------
- Fix a typing issue in Python 3.9
- Support Python 3.10
v0.8.0 (2020-11-28)
-------------------
- Drop support for Python 2.7, 3.4, and 3.5
- Support Python 3.9
- `ensure_ascii` parameter added to `PropertiesFile.dump()` and
`PropertiesFile.dumps()`
- **Bugfix**: When parsing XML input, empty `<entry>` tags now produce an empty
string as a value, not `None`
- Added type annotations
- `Properties` and `PropertiesFile` no longer raise `TypeError` when given a
non-string key or value, as type correctness is now expected to be enforced
through static type checking
- The `PropertiesElement` classes returned by `parse()` are no longer
subclasses of `namedtuple`, but they can still be iterated over to retrieve
their fields like a tuple
- python-six is not required
-------------------------------------------------------------------
Thu Apr 16 12:19:12 UTC 2020 - pgajdos@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-javaproperties
#
# Copyright (c) 2020 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
@@ -16,25 +16,22 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-javaproperties
Version: 0.7.0
Version: 0.8.1
Release: 0
Summary: Read & Write Java Properties Files
License: MIT
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_module pip}
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 < 2.0}
BuildRequires: %{python_module six >= 1.4}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-six < 2.0
Requires: python-six >= 1.4
BuildArch: noarch
%python_subpackages
@@ -42,13 +39,13 @@ BuildArch: noarch
Read & write Java .properties files.
%prep
%setup -q -n javaproperties-%{version}
%autosetup -p1 -n javaproperties-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -60,6 +57,6 @@ export TZ=EST5EDT,M3.2.0,M11.1.0
%files %{python_files}
%doc CHANGELOG.md README.rst
%license LICENSE
%{python_sitelib}/*
%{python_sitelib}/javaproperties*
%changelog