## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; 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 Name: python-tomli Version: 2.3.0 Release: %autorelease Summary: A little TOML parser for Python License: MIT URL: https://pypi.org/project/tomli/ Source0: https://github.com/hukkin/tomli/archive/%{version}/%{name}-%{version}.tar.gz BuildRequires: python3-devel # Whether to build extension modules with mypyc: %bcond mypyc 1 %if %{with mypyc} BuildRequires: gcc # scripts/use_setuptools.py uses tomli_w. # Note that this dependency creates a bootstrap loop. # If desired, it could be replaced with a patch. BuildRequires: python3-tomli-w %else BuildArch: noarch %endif # The test suite uses the stdlib's unittest framework, but we use %%pytest # as the test runner. BuildRequires: python3-pytest %global _description %{expand: Tomli is a Python library for parsing TOML. Tomli is fully compatible with TOML v1.0.0.} %description %_description %package -n python3-tomli Summary: %{summary} %description -n python3-tomli %_description %prep %autosetup -p1 -n tomli-%{version} %if %{with mypyc} # Taken from .github/workflows/tests.yaml, uses tomli-w, required for mypyc %{python3} scripts/use_setuptools.py %endif %generate_buildrequires %pyproject_buildrequires %build %if %{with mypyc} export TOMLI_USE_MYPYC=1 %endif %pyproject_wheel %install %pyproject_install # There is a top-level _mypyc module: # https://github.com/hukkin/tomli/issues/268 %pyproject_save_files tomli %{?with_mypyc:'*_mypyc'} %check %pyproject_check_import %pytest %files -n python3-tomli -f %{pyproject_files} %doc README.md %doc CHANGELOG.md %license LICENSE %changelog ## START: Generated by rpmautospec * Mon Oct 13 2025 Miro Hrončok - 2.3.0-2 - Build extension modules with mypyc - This should make the module faster * Mon Oct 13 2025 Miro Hrončok - 2.3.0-1 - Update to 2.3.0 - Fixes: rhbz#2402610 * Fri Sep 19 2025 Python Maint - 2.2.1-6 - Rebuilt for Python 3.14.0rc3 bytecode * Fri Aug 15 2025 Python Maint - 2.2.1-5 - Rebuilt for Python 3.14.0rc2 bytecode * Fri Jul 25 2025 Fedora Release Engineering - 2.2.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Mon Jun 02 2025 Python Maint - 2.2.1-3 - Rebuilt for Python 3.14 * Sat Jan 18 2025 Fedora Release Engineering - 2.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Thu Jan 02 2025 Miro Hrončok - 2.2.1-1 - Update to 2.2.1 - Fixes: rhbz#2335180 * Fri Jul 19 2024 Fedora Release Engineering - 2.0.1-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 2.0.1-16 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 2.0.1-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 2.0.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 2.0.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 13 2023 Python Maint - 2.0.1-7 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 2.0.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Oct 07 2022 Maxwell G - 2.0.1-5 - Remove incorrect python3-dateutil test BuildRequires * Fri Jul 22 2022 Fedora Release Engineering - 2.0.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 2.0.1-3 - Rebuilt for Python 3.11 * Mon Jun 13 2022 Python Maint - 2.0.1-2 - Bootstrap for Python 3.11 * Thu Mar 03 2022 Petr Viktorin - 2.0.1-1 - Version 2.0.1 - Removed support for text file objects as load input - First argument of load and loads can no longer be passed by keyword - Raise an error when dotted keys define values outside the "current table" - Prepare for inclusion in stdlib * Wed Feb 02 2022 Petr Viktorin - 1.2.3-1 - Update to 1.2.3 - Allow lower case "t" and "z" in datetimes * Fri Jan 21 2022 Fedora Release Engineering - 1.2.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Oct 29 2021 Miro Hrončok - 1.2.2-2 - Allow a bootstrap build without flit_core * Wed Oct 27 2021 Petr Viktorin - 1.2.2-1 - Update to version 1.2.2 * Wed Aug 18 2021 Petr Viktorin - 1.2.1-1 - Update to version 1.2.1 - loading text (as opposed to binary) files is deprecated * Thu Jul 29 2021 Petr Viktorin - 1.1.0-1 - Update to version 1.1.0 - `load` can now take a binary file object * Thu Jul 22 2021 Petr Viktorin - 1.0.4-1 - Initial package ## END: Generated by rpmautospec