%global pypi_name tomlkit

%global common_description %{expand:
TOML Kit is a 1.0.0-compliant TOML library.

It includes a parser that preserves all comments, indentations, whitespace and
internal element ordering, and makes them accessible and editable via an
intuitive API.}

Name:           python-%{pypi_name}
Summary:        Style preserving TOML library
Version:        0.14.0
Release:        1
License:        MIT

URL:            https://github.com/sdispater/tomlkit
Source0:        %{pypi_source %{pypi_name}}
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3-pip
BuildRequires:  python3-wheel
BuildRequires:	python3-editables
BuildRequires:	python3-hatch-vcs
BuildRequires:	python3-hatchling
BuildRequires:	python3-poetry-core

# test dependencies
BuildRequires:  python3dist(pytest)
BuildRequires:  python3dist(pyyaml)

%description %{common_description}


%package -n     python3-%{pypi_name}
Summary:        %{summary}

%description -n python3-%{pypi_name} %{common_description}

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%build
%pyproject_build

%install
%pyproject_install

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.md
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}*.dist-info/

%changelog
* Wed Jan 14 2026 YangengLiu <dev01202@linx-info.com> - 0.14.0-1
- update version to 0.14.0
  chore(deps-dev): bump requests from 2.32.2 to 2.32.4
  chore(deps): bump urllib3 from 2.2.2 to 2.5.0 in /docs
  chore(deps): bump jinja2 from 3.1.5 to 3.1.6 in /docs
  chore(deps): bump requests from 2.32.3 to 2.32.4 in /docs
  fix: Add DottedKey to a super table gives wrong output
  feat: enhance custom encoders to accept _parent and _sort_keys parameters
  chore(deps-dev): bump urllib3 from 2.2.2 to 2.6.3
  chore(deps-dev): bump setuptools from 70.0.0 to 78.1.1

* Thu Jul 10 2025 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 0.13.3-1
- Update package to version 0.13.3
  fix: register encoder's doc incorrectly mentions TypeError
  feat: add .item() method to retrieve the item object
  Fix: Inconsistent newlines on Windows
  Replace pytest's legacy tmpdir fixture with tmp_path
  Prevent repeated whitespace items in arrays
  Aot setitem not implemented fix
  Fix removal of items from Arrays
  Fix: reject single keys that aren't strings
  fix: Invalid serialization when overwriting out-of-order table key
  fix: Dumping a subelement of a parsed toml fails starting on 4rd level of nesting
  fix: ensure unique table indices when adding items to out-of-order tables
  fix: add newline indentation after existing items in Container class
  fix: Missing newline at end of file with multiple array of tables can corrupt during dumping

* Fri Sep 13 2024 Binshuo <binshuo.oerv@isrc.iscas.ac.cn> - 0.13.2-1
- Update package to version 0.13.2
  chore(deps-dev): bump certifi from 2024.2.2 to 2024.7.4
  chore(deps-dev): bump idna from 3.4 to 3.7
  chore(deps-dev): bump jinja2 from 3.1.2 to 3.1.4
  chore(deps-dev): bump requests from 2.31.0 to 2.32.2
  chore(deps-dev): bump setuptools from 68.0.0 to 70.0.0
  chore(deps-dev): bump urllib3 from 2.0.7 to 2.2.2
  chore(deps-dev): bump zipp from 3.15.0 to 3.19.1
  fix: delete keys from out of order table
  fix: don't add sign if the float is negative
  fix: Empty table dumped when number of subtables > 1
  fix: keep the nested out of order table
  fix: Table header missing
  fix: test_dates_behave_like_dates and test_times_behave_like_times
  fix: Encoder contract interferes with external TypeErrors raised in encoders
  fix: -1 index error when setting dotted key
  fix: |= does not work as expected on TOMLDocument
  fix: indent exist check before accessing its property
  [docs] Add tomlkit.dump()

* Tue Feb 27 2024 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 0.12.3-1
- Update package to version 0.12.3
  chore(deps-dev): bump urllib3 from 1.26.14 to 1.26.18
  fix: Newline lost when updating a table
  fix: Significant slowdown on nested tables depending on syntax
  fix: Fix division for integers
  fix: error when overwriting a sub table

* Tue Oct 24 2023 jiangxinyu <jiangxinyu@kylinos.cn> - 0.12.1-1
- Update package to version 0.12.1

* Wed Jun 21 2023 chendexi <chendexi@kylinos.cn> - 0.11.8-1
- Update package to version 0.11.8

* Mon May 22 2023 Dongxing Wang <dxwangk@isoftstone.com> - 0.11.4-2
- Use poetry-core to build

* Tue May 16 2023 Dongxing Wang <dxwangk@isoftstone.com> - 0.11.4-1
- Init package version 0.11.4