%global _empty_manifest_terminate_build 0
Name:		python-dict2xml
Version:	1.7.8
Release:	1
Summary:	Super Simple utility to convert a python dictionary into an xml string
License:	MIT
URL:		http://github.com/delfick/python-dict2xml
Source0:	https://github.com/delfick/python-dict2xml/releases/download/release-%{version}/dict2xml-%{version}.tar.gz
BuildArch:	noarch

BuildRequires:	python3-pip  python3-hatchling python3-hatch-vcs python3-wheel

%description
Super Simple utility to convert a python dictionary into an xml string.

%package -n python3-dict2xml
Summary:	Super Simple utility to convert a python dictionary into an xml string
Provides:	python-dict2xml = %{version}-%{release}
BuildRequires:	python3-devel

%description -n python3-dict2xml
Super Simple utility to convert a python dictionary into an xml string.

%package help
Summary:	Development documents and examples for dict2xml
Provides:	python3-dict2xml-doc

%description help
Super Simple utility to convert a python dictionary into an xml string.

%prep
%autosetup -n dict2xml-%{version}

%build
%pyproject_build

%install
%pyproject_install dict2xml==%{version}
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi

%files -n python3-dict2xml
%{python3_sitelib}/*

%files help
%{_docdir}/*

%changelog
* Fri Jan 16 2026 yyli <dev01209@linx-info.com> - 1.7.8-1
- Update package to version 1.7.8
- Added some .pyi files

* Tue Aug 05 2025 zengliwen <zengliwen@kylinos.cn> - 1.7.7-1
- Update to 1.7.7-1
- Converted the tests to plain python to remove the noseOfYeti dependency

* Thu Oct 24 2024 caiyuxin <caiyuxin@kylinos.cn> - 1.7.6-1
- Update to 1.7.6-1
- Fixed the dict2xml.dict2xml entry point to distribute options correctly

* Fri May 24 2024 wuzhaomin <wuzhaomin@kylinos.cn> 1.7.5-1
- Update package to version 1.7.5
- tools: ignore tox when doing a lint
- dev: Remove line mistakenly copied over
- logic: introduce the ability to choose what sorting takes place

* Wed Apr 26 2023 xu_ping <707078654@qq.com> - 1.7.3-2
- Adapting to the pyproject.toml compilation mode

* Mon Mar 20 2023 wubijie <wubijie@kylinos.cn> - 1.7.3-1
- Update package to version 1.7.3

* Tue Nov 08 2022 wangjunqi <wangjunqi@kylinos.cn> - 1.7.2-1
- Update package to version 1.7.2

* Wed Jan 27 2021 liudabo <liudabo1@huawei.com> - 1.7.0-1
- upgrade version to 1.7.0

* Tue Nov 5 2019 shanshishi <shanshishi@huawei.com> - 1.6.1-1
- Init package