From 46f85c10a29bfbadd5e57d6a5cc5f4fc55f0bcb3 Mon Sep 17 00:00:00 2001
From: Jennifer Wang
Date: Wed, 13 Dec 2023 11:38:43 -0800
Subject: [PATCH] Add rfc3339-validator to requirements-dev.txt to workaround a
mystery issue where pip is not in stalling this jsonschema extra by default
---
requirements-dev.txt | 5 +++++
setup.py | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/requirements-dev.txt b/requirements-dev.txt
index ed986a81..7f52ab36 100644
--- a/requirements-dev.txt
+++ b/requirements-dev.txt
@@ -1,4 +1,8 @@
# TODO: avoids an issue with hanging forever in tests (CORESERV-12009).
+# Inclusion of rfc3339-validator here is a workaround for an issue where
+# pip is not installing this package (defined by `jsonschema[format-nongpl]`).
+# This issue sounds similar to https://github.com/pypa/pip/issues/3903, but
+# that was fixed in pip 20.3 and we're still seeing this issue on 22.0.2.
jsonschema<4
mock
mypy
@@ -7,6 +11,7 @@ pre-commit
pytest
pytest-benchmark[histogram]
pytest-cov
+rfc3339-validator
types-mock
types-python-dateutil
types-pytz
diff --git a/setup.py b/setup.py
index 9795b8ed..4acbc185 100755
--- a/setup.py
+++ b/setup.py
@@ -40,7 +40,7 @@
],
install_requires=[
"jsonref",
- "jsonschema[format]>=2.5.1",
+ "jsonschema[format-nogpl]>=2.5.1",
"python-dateutil",
"pyyaml",
'requests',