From f79d63e86037ec390c4a37b7b6acdb6f91ee6686 Mon Sep 17 00:00:00 2001 From: David Barnett Date: Thu, 3 Oct 2024 22:06:36 -0600 Subject: [PATCH] Switch from "toml" dep to "tomli" to fix failures reading config (#802) --- ChangeLog | 1 + gcalcli/config.py | 2 +- pyproject.toml | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7caf465..61791b8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/gcalcli/config.py b/gcalcli/config.py index 3f484b3..6181cb1 100644 --- a/gcalcli/config.py +++ b/gcalcli/config.py @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 5da1553..f70a63a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,7 +35,7 @@ dependencies = [ "platformdirs", "pydantic", "python-dateutil", - "toml; python_version < '3.11'", + "tomli; python_version < '3.11'", "truststore", ]