Files
pyp2spec/tests/expected_specfiles/python-tomli.spec
T

59 lines
1.1 KiB
RPMSpec

Name: python-tomli
Version: 1.1.0
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.
}
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 '*' +auto
%check
%pytest
%files -n python3-tomli -f %{pyproject_files}
%doc README.md CHANGELOG.md
%license LICENSE
%changelog
* Thu Jul 29 2021 Package Maintainer <package@maintainer.com> - 1.1.0-1
- Update to version 1.1.0
- `load` can now take a binary file object