From 059a71a030b908ce320c95383b2f5d7466008ce0 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Wed, 28 Jul 2021 11:09:49 +0200 Subject: [PATCH] Package python-tomli 1.0.4 --- .gitignore | 1 + python-tomli.spec | 59 +++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 61 insertions(+) create mode 100644 .gitignore create mode 100644 python-tomli.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..531cacf --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/1.0.4.tar.gz diff --git a/python-tomli.spec b/python-tomli.spec new file mode 100644 index 0000000..be605f7 --- /dev/null +++ b/python-tomli.spec @@ -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 - 1.0.4-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..b80984e --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (1.0.4.tar.gz) = e30e06ea805c94359596c3d6db82464ccafcdde0172cae12d62c889c70986159b3198cf465183854bef1b048c21e487c2b0dad2825e2477d363885e749b238ee