From 61340fdb978adc08d71e88ec476bf7c0d7c29513 Mon Sep 17 00:00:00 2001 From: Matthew Keeler Date: Fri, 29 Aug 2025 14:29:33 -0400 Subject: [PATCH 1/2] fix: Bump pyRFC3339 >=1.0 -> >=2.1.0 With the latest release, pyRFC3339 allows a more flexible format. Prior versions required an explicit T separator before the time section even though the spec allows for a space. Both of these are considered valid formats: 1970-01-01T00:00:02.500Z 1970-01-01 00:00:02.500Z --- ldclient/testing/impl/test_operators.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ldclient/testing/impl/test_operators.py b/ldclient/testing/impl/test_operators.py index 0f084118..4cf58a0a 100644 --- a/ldclient/testing/impl/test_operators.py +++ b/ldclient/testing/impl/test_operators.py @@ -57,7 +57,7 @@ ["before", "1970-01-01T00:00:00.500Z", 1000, True], ["before", True, 1000, False], # wrong type ["after", "1970-01-01T00:00:02.500Z", 1000, True], - ["after", "1970-01-01 00:00:02.500Z", 1000, False], # malformed timestamp + ["after", "1970-01-01 00:00:02.500Z", 1000, True], ["after", "1970-01-01T00:00:02+01:00", None, False], ["after", None, "1970-01-01T00:00:02+01:00", False], ["before", "1970-01-01T00:00:02+01:00", 1000, True], diff --git a/pyproject.toml b/pyproject.toml index 1f149bd3..1997e9b9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,7 +30,7 @@ exclude = [ python = ">=3.9" certifi = ">=2018.4.16" expiringdict = ">=1.1.4" -pyRFC3339 = ">=1.0" +pyRFC3339 = ">=2.1.0" semver = ">=2.10.2" urllib3 = ">=1.26.0,<3" launchdarkly-eventsource = ">=1.2.4,<2.0.0" From 671263a088877b6e735b3861b3ccbd37dc60ca2f Mon Sep 17 00:00:00 2001 From: Matthew Keeler Date: Fri, 29 Aug 2025 15:11:09 -0400 Subject: [PATCH 2/2] Remove bump --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 1997e9b9..1f149bd3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,7 +30,7 @@ exclude = [ python = ">=3.9" certifi = ">=2018.4.16" expiringdict = ">=1.1.4" -pyRFC3339 = ">=2.1.0" +pyRFC3339 = ">=1.0" semver = ">=2.10.2" urllib3 = ">=1.26.0,<3" launchdarkly-eventsource = ">=1.2.4,<2.0.0"