Name: ini2toml Version: 0.13 Release: 1%{?dist} Summary: Automatic conversion of .ini/.cfg files to TOML equivalents License: MPLv2.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 * Thu Jan 18 2024 Packit - 0.13-1 - Update configuration for Read The Docs (Anderson Bravalheri) - Avoid type errors (Anderson Bravalheri) - Update CHANGELOG (Anderson Bravalheri) - [pre-commit.ci] pre-commit autoupdate (pre-commit-ci[bot]) - Relax setuptools requirement (Anderson Bravalheri) - Improve docs about setuptools (Anderson Bravalheri) - Update docs' ToC (Anderson Bravalheri) - Update docs about setuptools (Anderson Bravalheri) - Add doctests to cirrus (Anderson Bravalheri) - Fix dev guide and use doctest to make sure it works (Anderson Bravalheri) - Simply TOC in docs (Anderson Bravalheri) - Add dependency on setuptools (Anderson Bravalheri) - [pre-commit.ci] pre-commit autoupdate (pre-commit-ci[bot]) - [pre-commit.ci] pre-commit autoupdate (pre-commit-ci[bot]) - [pre-commit.ci] pre-commit autoupdate (pre-commit-ci[bot]) - [pre-commit.ci] pre-commit autoupdate (#82) (pre-commit-ci[bot]) - Update changelog (Anderson Bravalheri) - Fix error when isort is installed (Anderson Bravalheri) - Improve debuggability of isort and coverage plugin (Anderson Bravalheri) - Improve plugin name deduplication (Anderson Bravalheri) - [pre-commit.ci] pre-commit autoupdate (#81) (pre-commit-ci[bot]) - [pre-commit.ci] pre-commit autoupdate (#79) (pre-commit-ci[bot]) - [pre-commit.ci] pre-commit autoupdate (pre-commit-ci[bot]) - Update CHANGELOG (Anderson Bravalheri) - Update changelog (Anderson Bravalheri) - Add tests for dynamic extras_require (Anderson Bravalheri) - Handle dynamic dependencies in setuptools (Anderson Bravalheri) - Capture expectation about dynamic dependencies in test (Anderson Bravalheri) * 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