Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

global: werkzeug compatibility patch #196

Merged
merged 2 commits into from
Mar 13, 2020

Conversation

kpsherva
Copy link
Contributor

@kpsherva kpsherva commented Mar 9, 2020

@@ -83,6 +82,9 @@
from invenio_oauthclient.views.client import blueprint as blueprint_client
from invenio_oauthclient.views.settings import blueprint as blueprint_settings

from invenio_oauthclient._compat import monkey_patch_werkzeug # noqa isort:skip
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you forgot the monkeypatch call.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the trick is that I actually don't have to call it, since it goes through __init__.py of the package and it is invoked there. You just need to make sure it is invoked, and this is what this line does

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But in the rest of the examples you call it, what is the difference?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with the explicit call to the function

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

setup.py Outdated Show resolved Hide resolved
@kpsherva kpsherva self-assigned this Mar 10, 2020
@kpsherva kpsherva force-pushed the update-deps branch 7 times, most recently from 1ee24dc to a75022c Compare March 11, 2020 11:02
@kpsherva kpsherva moved this from In progress to Pending review in Sprint Week 10-11 (2020) - V3.3 Release Mar 11, 2020
@@ -83,6 +82,9 @@
from invenio_oauthclient.views.client import blueprint as blueprint_client
from invenio_oauthclient.views.settings import blueprint as blueprint_settings

from invenio_oauthclient._compat import monkey_patch_werkzeug # noqa isort:skip
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with the explicit call to the function

'invenio-userprofiles>=1.0.0',
'requests-oauthlib>=0.6.2,<1.2.0',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need to be both in install_requires and here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unfortunatelly yes, otherwise it is installing version more than 1.2 from travis

* updates python dependencies
* updates documentation links
* cleans travis.yml
@slint slint merged commit aee0453 into inveniosoftware:master Mar 13, 2020
Sprint Week 10-11 (2020) - V3.3 Release automation moved this from Pending merge to Done Mar 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

global: fix import error
3 participants