15
0
Files
python-ruamel.yaml/python-ruamel.yaml.spec
Jan Matejek 5c9edb3719 Accepting request 533656 from home:mimi_vx:branches:devel:languages:python
- update to 0.15.34
 * fix for issue 157: CDumper not dumping floats
 * support for “undefined” round-tripping tagged scalar objects
 * fix issue 148: replace cryptic error message when using !!timestamp with
	 an incorrectly formatted or non- scalar.
 * allow setting yaml.default_flow_style = None (default: False) for for typ='rt'.
 * fix for issue 149: multiplications on ScalarFloat now return float
 * fix Comment dumping
 * fix for issue with “compact JSON” not parsing: {"in":{},"out":{}}
 * fix issue #51: different indents for mappings and sequences
 * fix for flow sequence/mapping as element/value of block sequence
	 with sequence-indent minus dash-offset not equal two.
 * fix issue #61: merge of merge cannot be __repr__-ed
 * fix issue 62, YAML 1.2 allows ? and : in plain scalars if non-ambigious
 * fix lists within lists which would make comments disappear
 * fix for disappearing comment after empty flow sequence
 * fix for problem with dumping (unloaded) floats
 * added ScalarFloat which supports roundtripping of 23.1, 23.100, 42.00E+56,
	 0.0, -0.0 etc. while keeping the format. Underscores in mantissas
	 are not preserved/supported
 * (finally) fixed longstanding issue 23, now handling comment between block
	 mapping key and value correctly
 * warn on YAML 1.1 float input that is incorrect
 * allow setting of boolean representation (false, true)
	 by using: yaml.boolean_representation = [u'False', u'True']
 * fix for round_tripping integers on 2.7.X > sys.maxint
 * fix for round_tripping singe excl. mark tags doubling 
 * fix for writing unicode in new API,
 * added object constructor for rt, decorator yaml_object to replace YAMLObject.
 * fix for problem using load_all with Path() instance

OBS-URL: https://build.opensuse.org/request/show/533656
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=5
2017-10-12 13:31:32 +00:00

62 lines
2.0 KiB
RPMSpec

#
# spec file for package python-ruamel.yaml
#
# Copyright (c) 2017 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.34
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
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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}
%defattr(-,root,root,-)
%doc CHANGES LICENSE 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