Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37868576
en ru br
ALT Linux repos
S:1.7.16-alt1

Group :: Development/Python3
RPM: python3-module-dicttoxml

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1
%define oname dicttoxml

Name: python3-module-%oname
Version: 1.7.16
Release: alt1
Summary: Converts a Python dictionary or other native data type into a valid XML string
License: GPLv2
Group: Development/Python3
Url: https://pypi.python.org/pypi/dicttoxml

# https://github.com/quandyfactory/dicttoxml.git

Source0: %name-%version.tar
BuildArch: noarch

BuildRequires(pre): rpm-build-python3
BuildRequires: python3-module-setuptools
BuildRequires: python3-module-wheel

%py3_provides %oname

%description
Converts a Python dictionary or other native data type into a valid XML
string.

Supports item (int, float, long, bool, str, unicode, datetime, none) and
collection (list, set, tuple and dict, as well as iterable and dict-like
objects) data types, with arbitrary nesting for the collections. Items
with a datetime type are converted to ISO format strings. Items with a
none type become empty XML elements.

The root object passed into the dicttoxml method can be any of the
supported data types.

%prep
%setup

rm -fR dist

%build
%pyproject_build

%install
%pyproject_install

%files
%doc *.md *.txt
%python3_sitelibdir/%oname.py
%python3_sitelibdir/__pycache__
%python3_sitelibdir/%oname-%version.dist-info

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin