15
0
Files
python-ruamel.yaml/python-ruamel.yaml.spec
Petr Cervinka b778fe59c4 Accepting request 639359 from home:mimi_vx:branches:devel:languages:python
- update to 0.15.71
 *  added ``key`` and ``reverse`` parameter
 * indent root level literal scalars that have directive or document end
     markers at the beginning of a line
 * fix issue #232 revert to throw ParserError for unexcpected ``]``
     and ``}`` instead of IndexError.
 * fix issue with dump_all gobbling end-of-document comments on parsing
 * fix issue with parsabel, but incorrect output with nested flow-style sequences
 * fix issue with loading Python objects that have __setstate__ and recursion in parameters
 * reverted CommentedMap and CommentedSeq to subclass ordereddict resp. list,
    reimplemented merge maps so that both ``dict(**commented_map_instance)`` and JSON
    dumping works. This also allows checking with ``isinstance()`` on ``dict`` resp. ``list``.
 * fix regression where handcrafted CommentedMaps could not be initiated
 * fix regression with non-root literal scalars that needed indent indicator
 * tag:yaml.org,2002:python/object/apply now also uses __qualname__ on PY3

OBS-URL: https://build.opensuse.org/request/show/639359
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=17
2018-10-01 12:05:41 +00:00

61 lines
1.9 KiB
RPMSpec

#
# spec file for package python-ruamel.yaml
#
# Copyright (c) 2018 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.71
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