From f8e2e1e63373c6f598b148aba3726712fa45986f Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Sun, 5 Jan 2025 21:43:52 -0800 Subject: [PATCH] build: scope fromisoformat backport to python<3.11 The backports-datetime-fromisoformat package has no effect on Python versions >= 3.11. --- pyproject.toml | 2 +- scriv.d/20250105_214759_3806110+tjni_scope_backports.rst | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 scriv.d/20250105_214759_3806110+tjni_scope_backports.rst diff --git a/pyproject.toml b/pyproject.toml index 58f143d..ffb691e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,7 +26,7 @@ requires-python = ">= 3.8" dependencies = [ "aiofiles>=0.8", "aiohttp>3", - "backports-datetime-fromisoformat", + "backports-datetime-fromisoformat; python_version<'3.11'", "click>8", "click-log>0.3", "emoji", diff --git a/scriv.d/20250105_214759_3806110+tjni_scope_backports.rst b/scriv.d/20250105_214759_3806110+tjni_scope_backports.rst new file mode 100644 index 0000000..9c053e1 --- /dev/null +++ b/scriv.d/20250105_214759_3806110+tjni_scope_backports.rst @@ -0,0 +1,4 @@ +Changed +....... + +- Install backports-datetime-fromisoformat only on Python < 3.11