commit ce65bfaedc6095e89c2e8a36d029e317f63416ae6edb7a22c97b54128a40975f Author: Adrian Schröter Date: Fri May 3 23:17:54 2024 +0200 Sync from SUSE:SLFO:Main python-tomlkit revision 3d4b69a6c130faa2f074a29c5fadcb5f diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/python-tomlkit.changes b/python-tomlkit.changes new file mode 100644 index 0000000..3788346 --- /dev/null +++ b/python-tomlkit.changes @@ -0,0 +1,195 @@ +------------------------------------------------------------------- +Thu Sep 7 11:29:45 UTC 2023 - Dirk Müller + +- update to 0.12.1: + * Make float and int hashable. + * Allow users to specify encoders for custom types. (#296) + * Fix the incorrect sort when building a table with dotted + keys. + * Complete the methods required for integer and float items. + * Replace the deprecated usage of `datetime.utcnow()`. (#308) + * Minor performance improvements when iterating over the escape + sequences. (#304) + +------------------------------------------------------------------- +Sun May 14 09:47:56 UTC 2023 - Dirk Müller + +- update to 0.11.8: + * Remove the extra indentations added when parsing nested sub- + tables. + * Ignore the CRLF immediately following a multiple basic string + opening. + * Stringifying subtables and nested tables in arrays of tables. + * Messed table structure when building a table with dotted + keys. + +------------------------------------------------------------------- +Tue Apr 25 15:22:47 UTC 2023 - Matej Cepl + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Tue Apr 18 06:47:33 UTC 2023 - Matej Cepl + +- Don't add dependency on full poetry, when poetry-core is enough. + +------------------------------------------------------------------- +Sun Apr 16 08:08:58 UTC 2023 - Dirk Müller + +- update to 0.11.7: + * Parse empty table name if it is quoted. (#258) + * Fix a bug that remove last element of an Inline Table leaves + a comma. (#259) + * Parse datetime when it is followed by a space. (#260) + * Fix the `unwrap()` method for `Container` children values + which sometimes returns an internal object if the table is an + out-of-order table. (#264) + * Fix the wrong return type when doing arithmetic operations + between integers and floats. (#270) + +------------------------------------------------------------------- +Wed Nov 9 19:31:14 UTC 2022 - Yogalakshmi Arunachalam + +- Update to 0.11.6 + Fixed + * Allow broader type for toml file path value (#243) + * Auto-determine if a table is a super table if not specified explicitly. (#245) + +------------------------------------------------------------------- +Mon Oct 3 16:05:27 UTC 2022 - Dirk Müller + +- update to 0.11.5: + * Fix the type annotation of `unwrap()` and datetime parsing. + * Clear the existing table header when it is adding to another table. + * Fix a bug that escape chars are lost after concat with another string. + * Fix a rendering issue of tables inside arrays or inline tables. + +------------------------------------------------------------------- +Sat Sep 24 16:11:36 UTC 2022 - Dirk Müller + +- update to 0.11.4: + * Fix a memory leak caused by `lru_cache` on methods. + * Fix a regression issue that copying an array results in extra `None` items. + * Fix a regression of `array.add_line` that it incorrectly adds a comma to + non-value lines. + * Fix adding float to an integer value. + * Keep the end-of-array style when adding items to or removing items from an array. + * Fix a bug of redundant table header shown when removing children from a + super table. + +------------------------------------------------------------------- +Wed Jul 13 15:36:09 UTC 2022 - Ben Greiner + +- Update to version 0.11.1 + * Keep consistent line endings when changing files. (#201) + * Make KeyAlreadyPresent and InvalidStringError subclasses of + ParseError. (#202) + * Remove empty table from OutOfOrderTableProxy when deleting + items. (#204) + * Raise errors when trying to access unsupported methods on + OutOfOrderTableProxy. (#205) + * Fix unwrap() for String values to remove the quotes. (#199) +- Release 0.11.0 + * Add unwrap method to recursive convert to plain old python + objects by @syntapy in #187 + * Remove the is_tomlkit check by @frostming in #195 +- Release 0.10.2 + * Use the plain python string representation of Key in + KeyAlreadyPresent error message. (#185) + * Fix the astimezone() and replace() methods of datetime objects. + (#188) + * Add type definitions for items() function. (#190) +- Release 0.10.1 + * Preserve the newlines before super tables when rendering. + (#178) + * Fix the bug that comments are appended with comma when + rendering a multiline array. (#181) +- Release 0.10.0 + * Fix the only child detection when creating tables. (#175) + * Include the docs/ directory and CHANGELOG.md in sdist tarball. + (#176) + * Add keyword arguments to string API to allow selecting the + representation type. (#177) +- Release 0.9.2 + * When a table's only child is a table or array of table, it is + created as a super table. (#175) +- Release 0.9.1 + * Fix a bug of separators not being kept when replacing the + value. (#170) + * Tuples should be dumped as TOML arrays. (#171) +- Release 0.9.0 + * Add an argument to allow table to be super table by @frostming + in #159 + * Support adding item with dotted key by @frostming in #162 + * Initialize Sphinx docs by @frostming in #163 + * Fix values similar to booleans being incorrectly parsed to + booleans by @MrGreenTea in #168 + +------------------------------------------------------------------- +Thu Jan 20 22:45:49 UTC 2022 - Matej Cepl + +- Update to version 0.8.0: + - Drop support for Python<3.6. + - Comply with TOML v1.0.0. + - And many bug fixes + +------------------------------------------------------------------- +Mon Oct 5 12:57:46 UTC 2020 - Benjamin Greiner + +- Update to version 0.7.0 + * Added support for sorting keys when dumping raw + dictionaries by passing sort_keys=True to dumps() (#103). + * Keys are not longer sorted by default when dumping a raw + dictionary but the original order will be preserved (#103). + * Fixed compliance with the 1.0.0rc1 TOML specification (#102). + +------------------------------------------------------------------- +Thu Jul 23 14:15:23 UTC 2020 - Marketa Calabkova + +- update to version 0.6.0 + * Added support for heterogeneous arrays + +------------------------------------------------------------------- +Thu Mar 12 08:03:32 UTC 2020 - Tomáš Chvátal + +- Fix build without python2 + +------------------------------------------------------------------- +Wed Mar 11 11:15:54 UTC 2020 - pgajdos@suse.com + +- version update to 0.5.11 + * Fix containers and our of order tables dictionary behavior (#82)) + * Fixed out of order tables not behaving properly (#79) + * Fixed the behavior for out of order tables (#68). + * Fixed parsing errors when single quotes are present in a table name (#71). + * Fixed parsing errors when parsing some table names (#76). + +------------------------------------------------------------------- +Thu Nov 28 17:52:19 CET 2019 - Matej Cepl + +- Update to 0.5.8: + - Added support for producing multiline arrays + +------------------------------------------------------------------- +Tue Oct 8 09:04:03 UTC 2019 - Tomáš Chvátal + +- Update to 0.5.7: + * Fixed handling of inline tables. + * Fixed boolean comparison. + * Fixed appending inline tables to tables. + +------------------------------------------------------------------- +Mon Jul 22 12:36:20 UTC 2019 - Tomáš Chvátal + +- Update to 0.5.5: + * Fixed display of inline tables after element deletion. + * Fixed the handling of inline tables. + * Fixed date, datetime and time handling on Python 3.8. + * Fixed behavior for sub table declaration with intermediate tables. + * Fixed behavior of setdefault() on containers (Thanks to @AndyKluger). + * Fixed tables string representation. + +------------------------------------------------------------------- +Fri Mar 1 01:20:15 PM UTC 2019 - John Vandenberg + +- Initial spec for v0.5.3 diff --git a/python-tomlkit.spec b/python-tomlkit.spec new file mode 100644 index 0000000..59af637 --- /dev/null +++ b/python-tomlkit.spec @@ -0,0 +1,59 @@ +# +# spec file for package python-tomlkit +# +# Copyright (c) 2023 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +Name: python-tomlkit +Version: 0.12.1 +Release: 0 +Summary: Style preserving TOML library +License: MIT +URL: https://github.com/sdispater/tomlkit +Source: https://files.pythonhosted.org/packages/source/t/tomlkit/tomlkit-%{version}.tar.gz +BuildRequires: %{python_module PyYAML >= 6.0} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module poetry-core} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +%python_subpackages + +%description +Style preserving TOML library + +%prep +%setup -q -n tomlkit-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitelib}/tomlkit +%{python_sitelib}/tomlkit-%{version}*-info + +%changelog diff --git a/tomlkit-0.12.1.tar.gz b/tomlkit-0.12.1.tar.gz new file mode 100644 index 0000000..6fb37b0 --- /dev/null +++ b/tomlkit-0.12.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:38e1ff8edb991273ec9f6181244a6a391ac30e9f5098e7535640ea6be97a7c86 +size 190535