14
0
Files
python-javaproperties/python-javaproperties.spec
Daniel Garcia 6d22ad83d2 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
2023-04-04 09:36:52 +00:00

63 lines
1.9 KiB
RPMSpec

#
# spec file for package python-javaproperties
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: python-javaproperties
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 wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages
%description
Read & write Java .properties files.
%prep
%autosetup -p1 -n javaproperties-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
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
%license LICENSE
%{python_sitelib}/javaproperties*
%changelog