diff --git a/Pipfile b/Pipfile index ecda0ff..6f123a2 100644 --- a/Pipfile +++ b/Pipfile @@ -21,6 +21,7 @@ pyjwt = "==2.8.0" cryptography = "*" dataclasses-json = "*" cffi = ">=1.15.1" +typing-extensions = "*" [scripts] tconnectsync = "python3 main.py" diff --git a/Pipfile.lock b/Pipfile.lock index 145d14e..e87bb1b 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "43ccd3f3cf27bb4b8b2c890cf45fd6af1f532ebc524a1db82700e8ad35625124" + "sha256": "6b5baa4e659a598014fa6602acb241be0ab59a63126a132652c305792a1a3752" }, "pipfile-spec": 6, "requires": {}, @@ -590,6 +590,7 @@ "sha256:04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d", "sha256:1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8" ], + "index": "pypi", "markers": "python_version >= '3.8'", "version": "==4.12.2" }, diff --git a/setup.cfg b/setup.cfg index 52ec9bf..44a4f90 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,9 +1,9 @@ [metadata] name = tconnectsync -version = 2.0.6 +version = 2.0.7 author = James Woglom author_email = j@wogloms.net -description = Syncs Tandem t:connect pump data to Nightscout for the t:slim X2 +description = Syncs Tandem Source (formerly t:connect) insulin pump data to Nightscout for the t:slim X2 long_description = file: README.md long_description_content_type = text/markdown url = https://github.com/jwoglom/tconnectsync @@ -34,6 +34,7 @@ install_requires = cryptography dataclasses-json cffi + typing-extensions [options.packages.find] where = . diff --git a/tconnectsync/__init__.py b/tconnectsync/__init__.py index 037b37e..8d70aae 100644 --- a/tconnectsync/__init__.py +++ b/tconnectsync/__init__.py @@ -4,6 +4,10 @@ import arrow import argparse import logging import pkg_resources +import typing +import typing_extensions +if sys.version_info < (3, 8): + typing.Protocol = typing_extensions.Protocol from .api import TConnectApi from .process import process_time_range