Closed sloria closed 5 years ago
Tests are failing on Python 2.7 with webargs 5 because webargs 5 requires simplejson
to be installed on Python 2. webargs conditionally installs simplejson on Python 2, so I'm not quite sure why it's not getting installed on Travis. Perhaps it has something to do with how requirements-builder
is parsing install_requires
?
I don't really have more time to dig into it right now. Maintainers: feel free to fix up this PR as you see fit.
@sloria I have investigated and it looks like it is more related to pip
when installing from pypi
.
Can you reproduce the same?
Ah, I think the problem is that webargs is released as a universal (Python 2 and 3 compatible) wheel. The wheel doesn't contain simplejson as a dependency. I've opened an issue on webargs: https://github.com/marshmallow-code/webargs/issues/363 .
One workaround for the time being would be to explicitly install simplejson.
OK, I added simplejson as an explicit requirement, which fixes Python 2 behavior. This should be good to go now.
@sloria great thanks! We have just to check a couple of things on our side and then we will merge! Thanks again for this contribution, very appreciated!
Sounds good @ntarocco . I'm happy to make any more changes, but I'd appreciate if the maintainers went ahead and made any minor nit-fixing to get this merged--no need to block on me =).
FWIW, I just released webargs 5.1.1 which fixes the simplejson installation issue. So explicitly installing simplejson isn't strictly necessary. Doesn't hurt to be explicit, though. I'll leave it up to the maintainers to decide.
We're going to change the license of Invenio-Files-REST in 2 weeks time to MIT License. Can you just confirm that you're ok with licensing your contribution under MIT License instead of GPL.
Confirmed. I am good with the license change.
Changed the default arguments for args that are both optional and don't define
missing
fromNone
tomarshmallow.missing
.I verified that the tests are passing locally with the following webargs installations:
dev
branchsee #184