15
0
Files
python-ruamel.yaml/python-ruamel.yaml.spec
Tomáš Chvátal a340ce1ae1 Accepting request 669501 from home:mimi_vx:branches:devel:languages:python
- update to 0.15.87
 * fix problem with empty lists and the code to reinsert merge keys
 * reinsert merge key in its old position
 * fix for issue with non-ASCII anchor names
 * fix for issue when parsing flow mapping value starting with colon
 * the types used by `SafeConstructor` for mappings and sequences can
    now by set by assigning to `XXXConstructor.yaml_base_dict_type`
    (and `..._list_type`), preventing the need to copy two methods
    with 50+ lines that had `var = {}` hardcoded.
 * fix for `CommentedMap.copy()` not returning `CommentedMap`
 * fix for bug in roundtripping aliases used as key
 * anchors and aliases on scalar int, float, string and bool are now preserved.
     Anchors do not need a referring alias for these
 * fix issue saving methods of metaclass derived classes

OBS-URL: https://build.opensuse.org/request/show/669501
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=23
2019-01-29 11:13:45 +00:00

61 lines
1.9 KiB
RPMSpec

#
# spec file for package python-ruamel.yaml
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-ruamel.yaml
Version: 0.15.87
Release: 0
Summary: Python YAML parser
License: MIT
Group: Development/Languages/Python
URL: https://bitbucket.org/ruamel/yaml
Source: https://files.pythonhosted.org/packages/source/r/ruamel.yaml/ruamel.yaml-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%ifpython2
Requires: python-ruamel.ordereddict
%endif
%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
%setup -q -n ruamel.yaml-%{version}
rm -rf *egg-info
%build
%python_build
%install
%python_install --single-version-externally-managed
%python_exec %fdupes -s %{buildroot}%{$python_sitearch}
%files %{python_files}
%license LICENSE
%doc CHANGES README.rst
%{python_sitearch}/_ruamel_yaml*.so
%{python_sitearch}/ruamel
%{python_sitearch}/ruamel.yaml-%{version}-py%{python_version}-nspkg.pth
%{python_sitearch}/ruamel.yaml-%{version}-py%{python_version}.egg-info
%changelog