forked from pool/python-ruamel.yaml
- update to 0.15.61 * support for round-tripping folded style scalars * speed up of scanning (~30% depending on the input) * cleanup for mypy * issue with C based loader and leading zeros * simple mappings can now be used as keys when round-tripping * Fix that CommentedSeq could no longer be used in adding or do a sort * fix issue with python -O optimizing away code * unmade CommentedSeq a subclass of list. * fix issue where a comment could pop-up twice in the output * fix issue where JSON object (mapping) without spaces was not parsed properly * ix issue where comments after empty flow-style mappings were not emitted * fix issue with flow style mapping with comments gobbled newline * fix issue where single ‘+’ under YAML 1.2 was interpreted as integer, erroring out * added .copy() mapping representation for round-tripping * Fix method name dumps (were not dotted) and loads * Allow YAML() as a context manager for output * Fix issue with incorrect type information for load() and dump() * fixed DeprecationWarning for importing from collections on 3.7 * After adding failing test for YAML.load_all(Path()), remove StopIteration OBS-URL: https://build.opensuse.org/request/show/631987 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=13
61 lines
1.9 KiB
RPMSpec
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 http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
Name: python-ruamel.yaml
|
|
Version: 0.15.61
|
|
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
|