forked from pool/python-ruamel.yaml
- update to 0.15.78 * setup issue for 3.8 (reported by Sidney Kuyateh) * setting yaml.sort_base_mapping_type_on_output = False, will prevent explicit sorting by keys in the base representer of mappings. Roundtrip already did not do this. Usage only makes real sense for Python 3.6+ (feature request by Sebastian Gerber). * implement Python version check in YAML metadata in _test/test_z_data.py * fix issue with empty mapping and sequence loaded as flow-style (mapping reported by Min RK, sequence by Maged Ahmed) * fix issue with single '?' scalar (reported by Terrance) * fix issue with duplicate merge keys (prompted by answering a StackOverflow question by math) * fix dropping of comment on rt before sequence item that is sequence item (reported by Thorsten Kampe) * fix irregular output on pre-comment in sequence within sequence (reported by Thorsten Kampe) * allow non-compact (i.e. next line) dumping sequence/mapping within sequence. * fix regression on explicit 1.1 loading with the C based scanner/parser (reported by Tomas Vavra) OBS-URL: https://build.opensuse.org/request/show/652807 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=19
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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
Name: python-ruamel.yaml
|
|
Version: 0.15.78
|
|
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
|