Skip to content

Commit c060822

Browse files
committed
[FIX] pydantic: Add missing dependency on contextvars for py<3.7
1 parent dfa1045 commit c060822

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

pydantic/__manifest__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"external_dependencies": {
1818
"python": [
1919
"pydantic",
20+
"contextvars",
2021
]
2122
},
2223
"installable": True,

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
apispec
33
apispec>=4.0.0
44
cerberus
5+
contextvars;python_version<"3.7"
56
jsondiff
67
marshmallow
78
marshmallow-objects>=2.0.0

setup/pydantic/setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,9 @@
22

33
setuptools.setup(
44
setup_requires=['setuptools-odoo'],
5-
odoo_addon=True,
5+
odoo_addon={
6+
"external_dependencies_override": {
7+
"python": {"contextvars": 'contextvars;python_version<"3.7"'}
8+
}
9+
},
610
)

0 commit comments

Comments
 (0)