Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion scripts/ga/ga_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
from pathlib import Path
from urllib.parse import quote, urlsplit

import tomllib
try: # tomllib is stdlib from 3.11; `tomli` is a dev dependency below that (see pyproject.toml).
import tomllib
except ModuleNotFoundError:
import tomli as tomllib

REPO_ROOT = Path(__file__).resolve().parent.parent.parent
USER_AGENT = "wave-ga-evidence-sdk-python/1.0"
Expand Down
10 changes: 7 additions & 3 deletions scripts/release/check_drift.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@
2 a source was unreadable (network error, bad JSON, git/gh failure) --
an unreadable registry is NEVER treated as "in sync"

Stdlib + `git`/`gh` CLI only. No third-party imports so this runs identically
in CI and on a laptop with nothing but Python 3.11+ and the GitHub CLI.
Stdlib + `git`/`gh` CLI only (plus `tomli` as a dev dependency below Python 3.11, where `tomllib`
isn't stdlib yet) so this runs identically in CI and on a laptop with the GitHub CLI, across the
full `requires-python = ">=3.9"` matrix this package supports.
"""
from __future__ import annotations

Expand All @@ -40,7 +41,10 @@
import urllib.request
from pathlib import Path

import tomllib
try: # tomllib is stdlib from 3.11; `tomli` is a dev dependency below that (see pyproject.toml).
import tomllib
except ModuleNotFoundError:
import tomli as tomllib

PYPI_PROJECT = "wave-sdk"
GITHUB_REPO = "wave-av/sdk-python"
Expand Down
Loading