Skip to content

Commit

Permalink
Switch from "toml" dep to "tomli" to fix failures reading config (#802)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarnett authored Oct 4, 2024
1 parent e6d4521 commit f79d63e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
v4.5.1
* Fix gcalcli failing to run on python 3.10 if config file is present
* Fix bizarre SSL recursion errors by moving truststore init earlier
* Fix redundant "Ignore and refresh" prompt from `init`
* Adjust "when" value parsing to handle YYYY-MM-DD consistently
Expand Down
2 changes: 1 addition & 1 deletion gcalcli/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from typing import Any, List, Mapping, Optional

if sys.version_info[:2] < (3, 11):
import toml as tomllib
import tomli as tomllib
else:
import tomllib

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ dependencies = [
"platformdirs",
"pydantic",
"python-dateutil",
"toml; python_version < '3.11'",
"tomli; python_version < '3.11'",
"truststore",
]

Expand Down

0 comments on commit f79d63e

Please sign in to comment.