15
0
Files
python-ruamel.yaml/python-ruamel.yaml.spec
Markéta Machová 007d58b6f2 Accepting request 1115569 from home:mimi_vx:branches:devel:languages:python
- update to 0.17.35
 * Python 3.12 also loads C version when using `typ='safe'`
 * initial support for loading invoking `__post_init__` on dataclasses
    that have that method after loading a registered dataclass
    (`@yaml.register_class\n@dataclass\nclass ...`)
 * fix issue with scanner getting stuck in infinite loop
 * added `flow_seq_start`, `flow_seq_end`, `flow_seq_separator`,
    `flow_map_start`, `flow_map_end`, `flow_map_separator` **class**
    attributes to the `Emitter` class so flow style output
    can more easily be influenced

OBS-URL: https://build.opensuse.org/request/show/1115569
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=73
2023-10-04 14:10:18 +00:00

57 lines
1.7 KiB
RPMSpec

#
# spec file for package python-ruamel.yaml
#
# 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/
#
%{?sle15_python_module_pythons}
Name: python-ruamel.yaml
Version: 0.17.35
Release: 0
Summary: Python YAML parser
License: MIT
URL: https://sourceforge.net/p/ruamel-yaml
Source: https://files.pythonhosted.org/packages/source/r/ruamel.yaml/ruamel.yaml-%{version}.tar.gz
Patch0: 0000-fix-big-endian-issues.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-ruamel.yaml.clib >= 0.2.0
BuildArch: noarch
%python_subpackages
%description
ruamel.yaml is a YAML parser/emitter that supports roundtrip preservation
of comments, seq/map flow style, and map key order.
%prep
%autosetup -p1 -n ruamel.yaml-%{version}
rm -rf *egg-info
%build
%python_build
%install
%python_install --single-version-externally-managed
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%license LICENSE
%doc CHANGES README.rst
%{python_sitelib}/ruamel
%{python_sitelib}/ruamel.yaml-%{version}*-info
%changelog