ec9d3c5
%global pypi_name tomlkit
ec9d3c5
ec9d3c5
%{?python_enable_dependency_generator}
ec9d3c5
ec9d3c5
%global common_description %{expand:
ec9d3c5
TOML Kit is a 0.5.0-compliant TOML library.
ec9d3c5
ec9d3c5
It includes a parser that preserves all comments, indentations,
ec9d3c5
whitespace and internal element ordering, and makes them accessible and
ec9d3c5
editable via an intuitive API.
ec9d3c5
ec9d3c5
You can also create new TOML documents from scratch using the provided
ec9d3c5
helpers.
ec9d3c5
ec9d3c5
Part of the implementation as been adapted, improved and fixed from
ec9d3c5
Molten.}
ec9d3c5
ec9d3c5
Name:           python-%{pypi_name}
ec9d3c5
Summary:        Style preserving TOML library
887f8bd
Version:        0.5.11
650ab3e
Release:        1%{?dist}
ec9d3c5
License:        MIT
ec9d3c5
ec9d3c5
URL:            https://github.com/sdispater/tomlkit
ec9d3c5
Source0:        %{pypi_source}
ec9d3c5
669e832
# fixup setup.py (remove tests package and tests package data)
669e832
Patch0:         00-setup-py-fixup.patch
ab3c40e
ec9d3c5
BuildArch:      noarch
ec9d3c5
ec9d3c5
BuildRequires:  python3-devel
ec9d3c5
BuildRequires:  python3dist(setuptools)
fc5c1ec
BuildRequires:  python3dist(pytest)
ec9d3c5
ec9d3c5
%description %{common_description}
ec9d3c5
ec9d3c5
ec9d3c5
%package -n     python3-%{pypi_name}
ec9d3c5
Summary:        %{summary}
ec9d3c5
%{?python_provide:%python_provide python3-%{pypi_name}}
ec9d3c5
ec9d3c5
%description -n python3-%{pypi_name} %{common_description}
ec9d3c5
ec9d3c5
ec9d3c5
%prep
ec9d3c5
%autosetup -n %{pypi_name}-%{version} -p1
ec9d3c5
ec9d3c5
ec9d3c5
%build
ec9d3c5
%py3_build
ec9d3c5
ec9d3c5
ec9d3c5
%install
ec9d3c5
%py3_install
ec9d3c5
ec9d3c5
fc5c1ec
%check
fc5c1ec
%{__python3} -m pytest tests/
fc5c1ec
fc5c1ec
ec9d3c5
%files -n python3-%{pypi_name}
ec9d3c5
%license LICENSE
ec9d3c5
%doc README.md
ec9d3c5
650ab3e
%{python3_sitelib}/%{pypi_name}/
650ab3e
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
ec9d3c5
ec9d3c5
ec9d3c5
%changelog
887f8bd
* Sat Feb 29 2020 Fabio Valentini <decathorpe@gmail.com> - 0.5.11-1
887f8bd
- rebuilt
887f8bd
669e832
* Fri Feb 28 2020 Fabio Valentini <decathorpe@gmail.com> - 0.5.10-1
669e832
- Update to version 0.5.10.
669e832
650ab3e
* Sat Oct 19 2019 Fabio Valentini <decathorpe@gmail.com> - 0.5.8-1
650ab3e
- Update to version 0.5.8.
650ab3e
650ab3e
* Fri Oct 04 2019 Fabio Valentini <decathorpe@gmail.com> - 0.5.7-1
650ab3e
- Update to version 0.5.7.
650ab3e
225f508
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.5-2
225f508
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
225f508
659c790
* Tue Jul 02 2019 Fabio Valentini <decathorpe@gmail.com> - 0.5.5-1
659c790
- Update to version 0.5.5.
659c790
611f546
* Sun Jun 30 2019 Fabio Valentini <decathorpe@gmail.com> - 0.5.4-1
611f546
- Update to version 0.5.4.
611f546
ab3c40e
* Sat May 04 2019 Fabio Valentini <decathorpe@gmail.com> - 0.5.3-4
ab3c40e
- Use setup from setuptools, not distutils.core.
ab3c40e
fc5c1ec
* Mon Feb 11 2019 Patrik Kopkan <pkopkan@redhat.com> - 0.5.3-3
fc5c1ec
- Added check section.
fc5c1ec
7d48888
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.3-2
7d48888
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
7d48888
ec9d3c5
* Wed Dec 19 2018 Fabio Valentini <decathorpe@gmail.com> - 0.5.3-1
ec9d3c5
- Initial package.
ec9d3c5