commit 2cd63f99f9a466995fd31037759138dcb81bfd4e Author: MSVSphere Packaging Team Date: Thu Feb 1 18:04:32 2024 +0300 import python-tomli-w-0.4.0-3.el9 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..acd905c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/tomli-w-0.4.0.tar.gz diff --git a/.python-tomli-w.metadata b/.python-tomli-w.metadata new file mode 100644 index 0000000..eb56d7c --- /dev/null +++ b/.python-tomli-w.metadata @@ -0,0 +1 @@ +5caa490e83c9dba31b7679bc5b4d429ffa355358 SOURCES/tomli-w-0.4.0.tar.gz diff --git a/SPECS/python-tomli-w.spec b/SPECS/python-tomli-w.spec new file mode 100644 index 0000000..7b1cc83 --- /dev/null +++ b/SPECS/python-tomli-w.spec @@ -0,0 +1,76 @@ +%bcond_without check + +Name: python-tomli-w +Version: 0.4.0 +Release: 3%{?dist} +Summary: A Python library for writing TOML + +License: MIT +URL: https://github.com/hukkin/tomli-w +Source0: %{url}/archive/%{version}/tomli-w-%{version}.tar.gz + +BuildArch: noarch +BuildRequires: python3-devel + +%global _description %{expand: +Tomli-W is a Python library for writing TOML. It is a write-only counterpart +to Tomli, which is a read-only TOML parser. Tomli-W is fully compatible +with TOML v1.0.0.} + +%description %_description + +%package -n python3-tomli-w +Summary: %{summary} + +%description -n python3-tomli-w %_description + + +%prep +%autosetup -p1 -n tomli-w-%{version} +# Measuring coverage is discouraged in Python packaging guidelines: +sed -i '/pytest-cov/d' tests/requirements.txt +# This testing dependency is optional and we don't have it in (EP)EL, +# it has many missing transitive dependencies that we don't want to maintain +%if 0%{?rhel} +sed -i '/pytest-randomly/d' tests/requirements.txt +%endif + + +%generate_buildrequires +%pyproject_buildrequires %{?with_check:-t} + + +%build +%pyproject_wheel + + +%install +%pyproject_install +%pyproject_save_files tomli_w + + +%check +%pyproject_check_import tomli_w +%if %{with check} +%tox +%endif + + +%files -n python3-tomli-w -f %{pyproject_files} +%doc README.md +%doc CHANGELOG.md +%license LICENSE + + +%changelog +* Thu Feb 01 2024 MSVSphere Packaging Team - 0.4.0-3 +- Rebuilt for MSVSphere 9.3 + +* Fri Jan 21 2022 Fedora Release Engineering - 0.4.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Thu Jan 20 2022 Michel Alexandre Salim - 0.4.0-2 +- Add boostrap and check toggles to ease bootstrapping new EPEL releases + +* Wed Oct 27 2021 Tomáš Hrnčiar - 0.4.0-1 +- Initial package