## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## 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 Name: ini2toml Version: 0.14 Release: %autorelease Summary: Automatic conversion of .ini/.cfg files to TOML equivalents License: MPL-2.0 URL: https://github.com/abravalheri/ini2toml/ Source0: %{pypi_source ini2toml} BuildArch: noarch BuildRequires: python3-devel # Provide the python3-* namespace as the package # can also be used as a library. %py_provides python3-ini2toml %global _description %{expand: The original purpose of this project is to help migrating setup.cfg files to PEP 621, but by extension it can also be used to convert any compatible .ini/.cfg file to TOML. Please notice, the provided .ini/.cfg files should follow the same syntax supported by Python’s ConfigParser library (here referred to as INI syntax) and more specifically abide by ConfigUpdater restrictions (e.g., no interpolation or repeated fields).} %description %_description %pyproject_extras_subpkg -n ini2toml full lite %prep %autosetup -p1 -n ini2toml-%{version} # Remove the coverage cmd arguments from pytest sed -Ei '/(-|pytest)-cov(-report)?/d' setup.cfg # Remove test dependency on validate-pyproject, not yet packaged # Tests requiring it are excluded in %%check sed -i '/validate-pyproject/d' setup.cfg %generate_buildrequires %pyproject_buildrequires -x full,lite,testing %build %pyproject_wheel %install %pyproject_install %pyproject_save_files ini2toml %check %pyproject_check_import # the test_examples.py requires the validate-pyproject package which is not packaged yet # tests/test_cli.py::test_auto_formatting requires python-fmt which is not packaged yet %pytest -vv --ignore tests/test_examples.py --deselect tests/test_cli.py::test_auto_formatting %files -f %{pyproject_files} %doc README.rst %{_bindir}/ini2toml %changelog ## START: Generated by rpmautospec * Sat Apr 20 2024 Packit - 0.14-1 - Update to 0.14 - Resolves: rhbz#2276237 * Sat Apr 13 2024 Miroslav Suchý - 0.13-2 - convert MPLv2.0 license to SPDX * Wed Feb 28 2024 Packit - 0.13-1 - Update to 0.13 - Resolves: rhbz#2245659 * Wed Jan 24 2024 Fedora Release Engineering - 0.12-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Jan 20 2024 Fedora Release Engineering - 0.12-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Aug 28 2023 Charalampos Stratakis - 0.12-1 - Update to 0.12 Resolves: rhbz#2179431 * Thu Jul 20 2023 Fedora Release Engineering - 0.10-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Wed Jul 12 2023 Python Maint - 0.10-6 - Rebuilt for Python 3.12 * Thu Jan 19 2023 Fedora Release Engineering - 0.10-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sun Dec 18 2022 Miro Hrončok - 0.10-4 - Handle test dependencies automatically and hence BuildRequire python3-tomli * Thu Jul 21 2022 Fedora Release Engineering - 0.10-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jun 14 2022 Python Maint - 0.10-2 - Rebuilt for Python 3.11 * Tue May 03 2022 Charalampos Stratakis - 0.10-1 - Initial package ## END: Generated by rpmautospec