From d50898e114c536da7bd41299c957696c4a7dea26 Mon Sep 17 00:00:00 2001 From: Rasmus Wriedt Larsen Date: Tue, 6 Aug 2024 11:15:48 +0200 Subject: [PATCH] Python: Downgrade `packaging` for Python 3.7 support --- python/extractor/poetry.lock | 8 ++++---- python/extractor/pyproject.toml | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/python/extractor/poetry.lock b/python/extractor/poetry.lock index 06166b76af4..8742da7c636 100644 --- a/python/extractor/poetry.lock +++ b/python/extractor/poetry.lock @@ -58,13 +58,13 @@ files = [ [[package]] name = "packaging" -version = "24.0" +version = "23.2" description = "Core utilities for Python packages" optional = false python-versions = ">=3.7" files = [ - {file = "packaging-24.0-py3-none-any.whl", hash = "sha256:2ddfb553fdf02fb784c234c7ba6ccc288296ceabec964ad2eae3777778130bc5"}, - {file = "packaging-24.0.tar.gz", hash = "sha256:eb82c5e3e56209074766e6885bb04b8c38a0c015d0a30036ebe7ece34c9989e9"}, + {file = "packaging-23.2-py3-none-any.whl", hash = "sha256:8c491190033a9af7e1d931d0b5dacc2ef47509b34dd0de67ed209b5203fc88c7"}, + {file = "packaging-23.2.tar.gz", hash = "sha256:048fb0e9405036518eaaf48a55953c750c11e1a1b68e0dd1a9d62ed0c092cfc5"}, ] [[package]] @@ -224,4 +224,4 @@ testing = ["big-O", "flake8 (<5)", "jaraco.functools", "jaraco.itertools", "more [metadata] lock-version = "2.0" python-versions = "^3.7" -content-hash = "efa2573fc074b2b5334ac81c2ed14a4b9894aacab841973703a7af180c181870" +content-hash = "77d4ac980bc0aad555f8a72166242260b14251959db0ded9d055c9f06c36c972" diff --git a/python/extractor/pyproject.toml b/python/extractor/pyproject.toml index a9f7adbbc6f..866d62cb5e1 100644 --- a/python/extractor/pyproject.toml +++ b/python/extractor/pyproject.toml @@ -15,6 +15,9 @@ pyyaml = "^6.0.1" [tool.poetry.group.dev.dependencies] pytest-mock = "^3.11.1" pytest = "^7.4.2" +# packaging 24.0 was wrongly released as supporting Python 3.7, while it actually +# didn't. So as long as we support Python 3.7, we need to stick to <24.0. +packaging = "<24.0" [build-system] requires = ["poetry-core>=1.0.0"]