Blame python-tomlkit.spec

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
dfea159
Version:        0.5.8
8ac8bf8
Release:        1%{?dist}
ec9d3c5
License:        MIT
ec9d3c5
ec9d3c5
URL:            https://github.com/sdispater/tomlkit
ec9d3c5
Source0:        %{pypi_source}
ec9d3c5
ab3c40e
# patch setup.py to use setuptools::setup instead of distutils.core::setup
ab3c40e
Patch0:         00-use-setuptools-not-distutils.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
dfea159
%{python3_sitelib}/%{pypi_name}/
dfea159
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
ec9d3c5
ec9d3c5
ec9d3c5
%changelog
dfea159
* Sat Oct 19 2019 Fabio Valentini <decathorpe@gmail.com> - 0.5.8-1
dfea159
- Update to version 0.5.8.
dfea159
8ac8bf8
* Fri Oct 04 2019 Fabio Valentini <decathorpe@gmail.com> - 0.5.7-1
8ac8bf8
- Update to version 0.5.7.
8ac8bf8
8e6d267
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.5.5-4
8e6d267
- Rebuilt for Python 3.8.0rc1 (#1748018)
8e6d267
eab8cd3
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.5.5-3
eab8cd3
- Rebuilt for Python 3.8
eab8cd3
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