Skip to content

Commit 38c4e80

Browse files
committed
jsonschema depends on pyrsistent which must be pinned at 0.16.1 for Py2
1 parent 102c002 commit 38c4e80

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

examples/requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@ fastapi
33
pydantic
44
uvicorn
55
six
6+
pyrsistent==0.16.1;python_version<"3.0"
7+
pyrsistent;python_version>"3.0"
68
jsonschema
79
protobuf

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@
3131
'avro-python3==1.10.0;python_version>"3.0"'
3232
] + SCHEMA_REGISTRY_REQUIRES
3333

34-
JSON_REQUIRES = ['jsonschema'] + SCHEMA_REGISTRY_REQUIRES
34+
JSON_REQUIRES = ['pyrsistent==0.16.1;python_version<"3.0"',
35+
'pyrsistent;python_version>"3.0"',
36+
'jsonschema'] + SCHEMA_REGISTRY_REQUIRES
3537

3638
PROTO_REQUIRES = ['protobuf'] + SCHEMA_REGISTRY_REQUIRES
3739

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
fastavro>=0.23.0
2+
pyrsistent==0.16.1;python_version<"3.0"
3+
pyrsistent;python_version>"3.0"
24
jsonschema
35
protobuf
46
requests

0 commit comments

Comments
 (0)