mirror of
https://github.com/bckelley/tconnectsync.git
synced 2026-08-24 03:34:12 -05:00
The Python 3.8 CI job installs an older mypy that behaves differently from newer releases, surfacing two things the newer local mypy did not: - requests (and other stub-less deps) raise `import-untyped`, which older mypy does not silence via ignore_missing_imports. Add `disable_error_code = import-untyped` so stub-less third-party libs are treated as untyped rather than failing the run. - TandemSourceApi.__init__: older mypy infers secret.TCONNECT_REGION as Optional[str], so region.upper() tripped union-attr. Guard against an unset region (also avoids an AttributeError at runtime) which narrows it to str. Verified with both mypy 1.19.1 and 2.3.0; tests still green (461 passed). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UaQXTakxAKEfeeys5cv3en
59 lines
1.4 KiB
INI
59 lines
1.4 KiB
INI
[metadata]
|
|
name = tconnectsync
|
|
version = 3.0.0
|
|
author = James Woglom
|
|
author_email = j@wogloms.net
|
|
description = Syncs Tandem Source (formerly t:connect) insulin pump data to Nightscout for the t:slim X2 and Tandem Mobi
|
|
long_description = file: README.md
|
|
long_description_content_type = text/markdown
|
|
url = https://github.com/jwoglom/tconnectsync
|
|
project_urls =
|
|
Bug Tracker = https://github.com/jwoglom/tconnectsync/issues
|
|
classifiers =
|
|
Programming Language :: Python :: 3
|
|
License :: OSI Approved :: MIT License
|
|
Operating System :: OS Independent
|
|
|
|
[options]
|
|
package_dir =
|
|
= .
|
|
packages = find:
|
|
python_requires = >=3.7
|
|
install_requires =
|
|
requests
|
|
bs4
|
|
arrow
|
|
lxml
|
|
python-dotenv
|
|
requests-mock
|
|
pysocks
|
|
urllib3
|
|
requests
|
|
requests-oidc
|
|
PyJWT==2.8.0
|
|
cryptography==43.0.1; python_version < "3.9"
|
|
cryptography; python_version >= "3.9"
|
|
dataclasses-json
|
|
cffi
|
|
typing-extensions
|
|
importlib-metadata; python_version < "3.8"
|
|
|
|
[options.packages.find]
|
|
where = .
|
|
exclude =
|
|
tests*
|
|
scripts*
|
|
|
|
[options.entry_points]
|
|
console_scripts =
|
|
tconnectsync = tconnectsync:main
|
|
|
|
[mypy]
|
|
files =
|
|
tconnectsync
|
|
follow_imports = silent
|
|
ignore_missing_imports = True
|
|
# Third-party deps such as requests ship no type stubs; treat them as untyped
|
|
# instead of failing (older mypy does not silence this via ignore_missing_imports).
|
|
disable_error_code = import-untyped
|