diff --git a/gcalcli/cli.py b/gcalcli/cli.py index 7009fa1..3b957a3 100755 --- a/gcalcli/cli.py +++ b/gcalcli/cli.py @@ -20,12 +20,11 @@ # Everything you need to know (Google API Calendar v3): http://goo.gl/HfTGQ # # # # ######################################################################### # -import truststore -truststore.inject_into_ssl() from collections import namedtuple import os import signal import sys +import truststore from . import utils from .argparsers import get_argument_parser, handle_unparsed @@ -88,6 +87,8 @@ def run_add_prompt(parsed_args, printer): def main(): parser = get_argument_parser() + # trust system certificate store for SSL verification + truststore.inject_into_ssl() try: argv = sys.argv[1:] gcalclirc = os.path.expanduser('~/.gcalclirc') diff --git a/pyproject.toml b/pyproject.toml index 0d92eab..21375fc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,13 +26,13 @@ classifiers = [ "Programming Language :: Python :: 3", ] dependencies = [ - "truststore", - "python-dateutil", + "argcomplete", "google-api-python-client>=1.4", - "httplib2", "google_auth_oauthlib", + "httplib2", "parsedatetime", - "argcomplete", + "python-dateutil", + "truststore", # dev dependencies "google-api-python-client-stubs", "types-python-dateutil",