-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve TOML library compatibility (#44)
Python 3.11 adds a TOML parser to the standard library. For older versions of Python, the 'tomli' package is nearly perfectly compatible. For platforms which don't package tomli or a new enough version of Python (i.e. Ubuntu Focal), we can fall back to 'toml'.
- Loading branch information
Showing
4 changed files
with
20 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[colcon-cargo] | ||
No-Python2: | ||
Depends3: python3-colcon-core, python3-toml | ||
Depends3: python3-colcon-core, python3 (>= 3.11) | python3-tomli (>= 1) | python3-toml | ||
Suite: focal jammy noble bookworm trixie | ||
X-Python3-Version: >= 3.6 | ||
Debian-Version: 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,6 +37,8 @@ thomas | |
tmpdir | ||
todo | ||
toml | ||
tomli | ||
tomllib | ||
toprettyxml | ||
tostring | ||
xmlstr |