Skip to content

Commit 7001772

Browse files
authored
Merge pull request #150 from jmcarp/restrict-ma-version
Restrict marshmallow versions based on Python version
2 parents 33c13b9 + 42bff39 commit 7001772

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
REQUIRES = [
88
'six>=1.9.0',
99
'flask>=0.10.1',
10-
'marshmallow>=2.0.0',
10+
'marshmallow>=2.0.0,<3.0.0rc6; python_version<"3"',
11+
'marshmallow>=2.0.0; python_version>="3"',
1112
'webargs>=0.18.0',
1213
'apispec>=1.0.0',
1314
]

tests/test_views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class ArgSchema(Schema):
4242
name = fields.Str()
4343

4444
@post_load
45-
def make_object(self, data):
45+
def make_object(self, data, **kwargs):
4646
return User(**data)
4747

4848
@app.route('/', methods=('POST', ))

0 commit comments

Comments
 (0)