Package python-tomli 1.0.4
This commit is contained in:
parent
780d09f749
commit
059a71a030
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
/1.0.4.tar.gz
|
59
python-tomli.spec
Normal file
59
python-tomli.spec
Normal file
@ -0,0 +1,59 @@
|
||||
Name: python-tomli
|
||||
Version: 1.0.4
|
||||
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.
|
||||
...}
|
||||
|
||||
# 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
|
||||
%license LICENSE
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Jul 22 2021 Petr Viktorin <pviktori@redhat.com> - 1.0.4-1
|
||||
- Initial package
|
Loading…
Reference in New Issue
Block a user