Blame SPECS/python-tomli.spec

6d4d96
Name:           python-tomli
6d4d96
Version:        1.2.1
6d4d96
Release:        2%{?dist}
6d4d96
Summary:        A little TOML parser for Python
6d4d96
6d4d96
License:        MIT
6d4d96
URL:            https://pypi.org/project/tomli/
6d4d96
Source0:        https://github.com/hukkin/tomli/archive/refs/tags/%{version}.tar.gz
6d4d96
6d4d96
BuildArch:      noarch
6d4d96
BuildRequires:  python%{python3_pkgversion}-devel
6d4d96
BuildRequires:  pyproject-rpm-macros
6d4d96
6d4d96
%global _description %{expand:
6d4d96
Tomli is a Python library for parsing TOML.
6d4d96
Tomli is fully compatible with TOML v1.0.0.}
6d4d96
6d4d96
# Upstream test requirements are in tests/requirements.txt,
6d4d96
# but they're mixed together with coverage ones. Tests only need:
6d4d96
BuildRequires: python%{python3_pkgversion}-pytest
6d4d96
BuildRequires: python%{python3_pkgversion}-dateutil
6d4d96
BuildRequires: python%{python3_pkgversion}-flit
6d4d96
6d4d96
%description %_description
6d4d96
6d4d96
%package -n python3-tomli
6d4d96
Summary:        %{summary}
6d4d96
6d4d96
%description -n python3-tomli %_description
6d4d96
6d4d96
6d4d96
%prep
6d4d96
%autosetup -p1 -n tomli-%{version}
6d4d96
6d4d96
6d4d96
%generate_buildrequires
6d4d96
%pyproject_buildrequires
6d4d96
6d4d96
6d4d96
%build
6d4d96
%pyproject_wheel
6d4d96
6d4d96
6d4d96
%install
6d4d96
%pyproject_install
6d4d96
%pyproject_save_files tomli
6d4d96
6d4d96
6d4d96
%check
6d4d96
%pytest
6d4d96
6d4d96
6d4d96
%files -n python3-tomli -f %{pyproject_files}
6d4d96
%doc README.md
6d4d96
%doc CHANGELOG.md
6d4d96
%license LICENSE
6d4d96
6d4d96
6d4d96
%changelog
6d4d96
* Mon Oct 25 2021 Kaleb S. KEITHLEY <kkeithle [at] redhat.com> - 1.2.1-2
6d4d96
- rebuild from lookaside
6d4d96
6d4d96
* Wed Aug 18 2021 Petr Viktorin <pviktori@redhat.com> - 1.2.1-1
6d4d96
- Update to version 1.2.1
6d4d96
  - loading text (as opposed to binary) files is deprecated
6d4d96
6d4d96
* Thu Jul 29 2021 Petr Viktorin <pviktori@redhat.com> - 1.1.0-1
6d4d96
- Update to version 1.1.0
6d4d96
  - `load` can now take a binary file object
6d4d96
6d4d96
* Thu Jul 22 2021 Petr Viktorin <pviktori@redhat.com> - 1.0.4-1
6d4d96
- Initial package