45 Commits

Author SHA256 Message Date
0a08abb89d Accepting request 1304343 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1304343
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-tomlkit?expand=0&rev=20
2025-09-12 19:10:50 +00:00
79e80803b1 Accepting request 1304329 from home:glaubitz:branches:devel:languages:python
- Update to 0.13.3
  * Add `.item()` method to array and tables to retrieve
    an item by key. (#390)
  * Fix missing newline when parsing a separated array
    of tables without trailing new line. (#381)
  * Fix non-existing key error when deleting an item
    from an out-of-order table. (#383)
  * Ensure newline is added between the plain values
    and the first table. (#387)
  * Fix repeated whitespace when removing an array item. (#405)
  * Fix invalid serialization after removing array item
    if the comma is on its own line. (#408)
  * Fix serialization of a nested dotted key table. (#411)
  * Refine the error message when use non-string as single key. (#412)
  * Fix invalid serialization after overwriting a key of
    a out-of-order table. (#414)

OBS-URL: https://build.opensuse.org/request/show/1304329
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tomlkit?expand=0&rev=43
2025-09-12 15:40:58 +00:00
53c13213d5 Accepting request 1218797 from devel:languages:python
- update to 0.13.2:
  * Fix deleting keys from an out-of-order table does not remove
    all table parts.
  * Fix the `Table.is_super_table()` check for tables with dotted
    key as the only child.
  * Count table as a super table if it has children and all
    children are either tables or arrays of tables.
  * Expect a tomlkit-specific error instead of `TypeError` from a
    custom encoder.
  * Drop support for Python older than 3.8. Remove 3.7 from the
    CI matrix.
  * Fix the incompatiblity with 3.13 because of the
    `datetime.replace()` change.
  * Revert the change of parsing out-of-order tables.
  * Keep the nested out-of-order table.

OBS-URL: https://build.opensuse.org/request/show/1218797
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-tomlkit?expand=0&rev=19
2024-10-28 14:23:09 +00:00
053b9814f2 - update to 0.13.2:
* Fix deleting keys from an out-of-order table does not remove
    all table parts.
  * Fix the `Table.is_super_table()` check for tables with dotted
    key as the only child.
  * Count table as a super table if it has children and all
    children are either tables or arrays of tables.
  * Expect a tomlkit-specific error instead of `TypeError` from a
    custom encoder.
  * Drop support for Python older than 3.8. Remove 3.7 from the
    CI matrix.
  * Fix the incompatiblity with 3.13 because of the
    `datetime.replace()` change.
  * Revert the change of parsing out-of-order tables.
  * Keep the nested out-of-order table.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tomlkit?expand=0&rev=41
2024-10-28 11:49:22 +00:00
74aea4e834 Accepting request 1179656 from devel:languages:python
- update to 0.12.5:
  * fix: don't add sign if the float is negative
  * fix: Construction of OutOfOrderTableProxy can cause newlines
    to be inserted

OBS-URL: https://build.opensuse.org/request/show/1179656
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-tomlkit?expand=0&rev=18
2024-06-10 15:38:03 +00:00
275cd73e11 - update to 0.12.5:
* fix: don't add sign if the float is negative
  * fix: Construction of OutOfOrderTableProxy can cause newlines
    to be inserted

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tomlkit?expand=0&rev=39
2024-06-10 08:52:15 +00:00
e0195ab5cf Accepting request 1157519 from devel:languages:python
- update to 0.12.4:
  * Support `|` and `|=` operator for tables, and support `+` and
    `+=` operator for arrays.
  * Fix an index error when setting dotted keys in a table.

OBS-URL: https://build.opensuse.org/request/show/1157519
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-tomlkit?expand=0&rev=17
2024-03-13 21:20:50 +00:00
52ec83f69f - update to 0.12.4:
* Support `|` and `|=` operator for tables, and support `+` and
    `+=` operator for arrays.
  * Fix an index error when setting dotted keys in a table.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tomlkit?expand=0&rev=37
2024-03-13 10:17:29 +00:00
52546dd9b3 Accepting request 1129195 from devel:languages:python
- update to 0.12.3:
  * Improve the performance when parsing a table with nested
    dotted keys. (#193)
  * Keep the newlines when replacing a table. (#323)
  * Fixed a bug that overwriting a sub table with a plain value
    raises an error. (#313)
  * Correct the return type of integer division. (#312)

OBS-URL: https://build.opensuse.org/request/show/1129195
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-tomlkit?expand=0&rev=16
2023-11-27 21:44:46 +00:00
db378a0761 - update to 0.12.3:
* Improve the performance when parsing a table with nested
    dotted keys. (#193)
  * Keep the newlines when replacing a table. (#323)
  * Fixed a bug that overwriting a sub table with a plain value
    raises an error. (#313)
  * Correct the return type of integer division. (#312)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tomlkit?expand=0&rev=35
2023-11-27 16:11:02 +00:00
2b7127cb31 Accepting request 1109526 from devel:languages:python
- 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)

- Update to 0.11.6
  * Auto-determine if a table is a super table if not specified explicitly. (#245)
  * Added support for sorting keys when dumping raw
  * Keys are not longer sorted by default when dumping a raw

OBS-URL: https://build.opensuse.org/request/show/1109526
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-tomlkit?expand=0&rev=15
2023-09-07 19:13:49 +00:00
93f376042b - 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)
- Update to 0.11.6
  * Auto-determine if a table is a super table if not specified explicitly. (#245)
  * Added support for sorting keys when dumping raw
  * Keys are not longer sorted by default when dumping a raw

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tomlkit?expand=0&rev=33
2023-09-07 11:30:39 +00:00
ba1dbe2c97 Accepting request 1087083 from devel:languages:python
- 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.

OBS-URL: https://build.opensuse.org/request/show/1087083
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-tomlkit?expand=0&rev=14
2023-05-14 14:31:57 +00:00
c0129b1fb1 - 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tomlkit?expand=0&rev=31
2023-05-14 09:48:47 +00:00
36fc6fe327 Accepting request 1083125 from devel:languages:python
- add sle15_python_module_pythons (jsc#PED-68)

OBS-URL: https://build.opensuse.org/request/show/1083125
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-tomlkit?expand=0&rev=13
2023-04-28 14:22:21 +00:00
87b7420739 - add sle15_python_module_pythons (jsc#PED-68)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tomlkit?expand=0&rev=29
2023-04-26 21:11:54 +00:00
7ccb1b5767 Accepting request 1080076 from devel:languages:python
- Don't add dependency on full poetry, when poetry-core is enough.
- 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)

OBS-URL: https://build.opensuse.org/request/show/1080076
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-tomlkit?expand=0&rev=12
2023-04-25 14:54:14 +00:00
91a512eede Clean up SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tomlkit?expand=0&rev=27
2023-04-18 08:37:18 +00:00
05a9cfb0f5 - Don't add dependency on full poetry, when poetry-core is enough.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tomlkit?expand=0&rev=26
2023-04-18 06:47:41 +00:00
d08b017e4d - 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)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tomlkit?expand=0&rev=25
2023-04-16 08:12:48 +00:00
67810fa2c0 Accepting request 1035274 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1035274
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-tomlkit?expand=0&rev=11
2022-11-12 16:40:20 +00:00
993dd4d68e Accepting request 1034934 from home:yarunachalam:branches:devel:languages:python
- 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)

OBS-URL: https://build.opensuse.org/request/show/1034934
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tomlkit?expand=0&rev=23
2022-11-11 13:36:57 +00:00
436e379070 Accepting request 1007720 from devel:languages:python
- 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.

OBS-URL: https://build.opensuse.org/request/show/1007720
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-tomlkit?expand=0&rev=10
2022-10-04 18:37:15 +00:00
ca6a2b8f38 - 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tomlkit?expand=0&rev=21
2022-10-03 16:07:22 +00:00
bd23625ff7 Accepting request 1005791 from devel:languages:python
- 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.

OBS-URL: https://build.opensuse.org/request/show/1005791
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-tomlkit?expand=0&rev=9
2022-09-25 13:34:42 +00:00
c7a7dd5459 - 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tomlkit?expand=0&rev=19
2022-09-24 16:13:44 +00:00
b3afa80b8b Accepting request 989026 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/989026
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-tomlkit?expand=0&rev=8
2022-07-18 16:32:45 +00:00
545f36b9f3 Accepting request 989017 from home:bnavigator:branches:devel:languages:python
- 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)

OBS-URL: https://build.opensuse.org/request/show/989017
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tomlkit?expand=0&rev=17
2022-07-13 17:25:17 +00:00
d9dbc89f80 Accepting request 948284 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/948284
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-tomlkit?expand=0&rev=7
2022-02-03 22:15:57 +00:00
13c5d4246c Accepting request 948282 from home:mcepl:branches:devel:languages:python
- Update to version 0.8.0:
  - Drop support for Python<3.6.
  - Comply with TOML v1.0.0.
  - And many bug fixes

OBS-URL: https://build.opensuse.org/request/show/948282
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tomlkit?expand=0&rev=16
2022-01-23 23:11:57 +00:00
16f3ff680e Accepting request 839722 from devel:languages:python
- 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).

OBS-URL: https://build.opensuse.org/request/show/839722
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-tomlkit?expand=0&rev=6
2020-10-29 08:46:35 +00:00
Tomáš Chvátal
1f6ef81b66 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tomlkit?expand=0&rev=14 2020-10-06 08:31:55 +00:00
ac8da4b202 Accepting request 822437 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/822437
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-tomlkit?expand=0&rev=5
2020-08-01 10:30:29 +00:00
Tomáš Chvátal
e029906ed5 Accepting request 822426 from home:mcalabkova:branches:devel:languages:python
- update to version 0.6.0
  * Added support for heterogeneous arrays

OBS-URL: https://build.opensuse.org/request/show/822426
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tomlkit?expand=0&rev=12
2020-07-23 14:30:10 +00:00
f722dec5a1 Accepting request 784176 from devel:languages:python
- Fix build without python2

- 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).

OBS-URL: https://build.opensuse.org/request/show/784176
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-tomlkit?expand=0&rev=4
2020-03-26 23:21:29 +00:00
Tomáš Chvátal
cf6be97bfe - Fix build without python2
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tomlkit?expand=0&rev=10
2020-03-12 08:03:45 +00:00
Tomáš Chvátal
2125c91182 Accepting request 783784 from home:pgajdos:python
- 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).

OBS-URL: https://build.opensuse.org/request/show/783784
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tomlkit?expand=0&rev=9
2020-03-11 11:46:12 +00:00
628f9369be Accepting request 751845 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/751845
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-tomlkit?expand=0&rev=3
2019-12-07 14:19:25 +00:00
Tomáš Chvátal
adddc7626e Accepting request 751682 from home:mcepl:branches:devel:languages:python
- Update to 0.5.8:
  - Added support for producing multiline arrays

OBS-URL: https://build.opensuse.org/request/show/751682
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tomlkit?expand=0&rev=7
2019-11-29 09:48:48 +00:00
a076628269 Accepting request 736034 from devel:languages:python
- Update to 0.5.7:
  * Fixed handling of inline tables.
  * Fixed boolean comparison.
  * Fixed appending inline tables to tables.

- 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.

OBS-URL: https://build.opensuse.org/request/show/736034
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-tomlkit?expand=0&rev=2
2019-10-10 09:51:33 +00:00
Tomáš Chvátal
33b3e5dc2b - Update to 0.5.7:
* Fixed handling of inline tables.
  * Fixed boolean comparison.
  * Fixed appending inline tables to tables.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tomlkit?expand=0&rev=5
2019-10-08 09:06:16 +00:00
Tomáš Chvátal
bd3d35aba8 - 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tomlkit?expand=0&rev=4
2019-07-22 12:38:50 +00:00
3acd0ddcd6 Accepting request 681700 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/681700
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-tomlkit?expand=0&rev=1
2019-03-22 13:59:20 +00:00
Tomáš Chvátal
981ecd28c1 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tomlkit?expand=0&rev=2 2019-03-05 11:23:19 +00:00
Tomáš Chvátal
8514569619 osc copypac from project:home:jayvdb:coala:python3-bears package:python-tomlkit revision:1
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tomlkit?expand=0&rev=1
2019-03-05 11:13:58 +00:00