## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %bcond_without check Name: python-tomli-w Version: 1.1.0 Release: %autorelease Summary: A Python library for writing TOML # SPDX 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 # We don't need tomli on Python 3.11+ %if v"%{python3_version}" >= v"3.11" sed -i '/tomli/d' tests/requirements.txt sed -Ei 's/tomli(\.|$)/tomllib\1/' tests/*.py %endif # 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 # We intentionally don't use tox here to avoid a dependency on it in ELN/RHEL, # the tox deps only list -r tests/requirements.txt anyway and sometimes # did not run any tests at all. %pyproject_buildrequires %{?with_check:tests/requirements.txt} %build %pyproject_wheel %install %pyproject_install %pyproject_save_files tomli_w %check %pyproject_check_import tomli_w %if %{with check} %pytest -v %endif %files -n python3-tomli-w -f %{pyproject_files} %doc README.md %doc CHANGELOG.md %license LICENSE %changelog ## START: Generated by rpmautospec * Thu Oct 10 2024 Lumir Balhar - 1.1.0-1 - Update to 1.1.0 (rhbz#2317231) * Fri Jul 19 2024 Fedora Release Engineering - 1.0.0-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Jun 08 2024 Python Maint - 1.0.0-13 - Rebuilt for Python 3.13 * Fri Jun 07 2024 Python Maint - 1.0.0-12 - Bootstrap for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 1.0.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 1.0.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 1.0.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jun 29 2023 Python Maint - 1.0.0-8 - Rebuilt for Python 3.12 * Tue Jun 13 2023 Python Maint - 1.0.0-7 - Bootstrap for Python 3.12 * Wed May 31 2023 Miro Hrončok - 1.0.0-6 - On Python 3.11+, do not BuildRequire python3-tomli for tests * Fri Jan 20 2023 Fedora Release Engineering - 1.0.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 1.0.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jun 14 2022 Python Maint - 1.0.0-3 - Rebuilt for Python 3.11 * Mon Jun 13 2022 Python Maint - 1.0.0-2 - Bootstrap for Python 3.11 * Tue Feb 22 2022 Tomáš Hrnčiar - 1.0.0-1 - Update to 1.0 - Fixes: rhbz#2053820 * 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 ## END: Generated by rpmautospec