python-tomli/python-tomli.spec

68 lines
1.4 KiB
RPMSpec
Raw Normal View History

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