diff --git a/python/helpers/lib/parser.py b/python/helpers/lib/parser.py index 07b8fb8631..aea4d8e4b2 100644 --- a/python/helpers/lib/parser.py +++ b/python/helpers/lib/parser.py @@ -13,6 +13,8 @@ ) from packaging.requirements import InvalidRequirement, Requirement +# TODO: Replace 3p package `toml` with 3.11's new stdlib `tomllib` once we drop +# support for Python 3.10. import toml # Inspired by pips internal check: diff --git a/python/helpers/requirements.txt b/python/helpers/requirements.txt index 7672ff5012..5885c1b4f6 100644 --- a/python/helpers/requirements.txt +++ b/python/helpers/requirements.txt @@ -5,6 +5,8 @@ hashin==0.17.0 pipenv==2023.11.17 pipfile==0.0.2 poetry==1.7.1 +# TODO: Replace 3p package `toml` with 3.11's new stdlib `tomllib` once we drop support for Python 3.10. +toml==0.10.2 # Some dependencies will only install if Cython is present Cython==3.0.8 diff --git a/python/helpers/run.py b/python/helpers/run.py index f80f8ff2ec..3b2fc11adc 100644 --- a/python/helpers/run.py +++ b/python/helpers/run.py @@ -6,6 +6,8 @@ if __name__ == "__main__": args = json.loads(sys.stdin.read()) + # TODO Python 3.10 added native switch statements, so switch this if/elif + # to that once we drop support for 3.9. if args["function"] == "parse_requirements": print(parser.parse_requirements(args["args"][0])) elif args["function"] == "parse_setup":