-
Notifications
You must be signed in to change notification settings - Fork 431
Importing top-level webapp2
breaks encapsulation
#302
Comments
@tseaver How do you mean it breaks encapsulation? The |
The gcloud tests covering the "appengine detection" machinery mock out the necessary I don't know what the motivation for f3f8b4f was, but it caused the |
Motivation: I realize it hurt our test mocks in a library elsewhere, but that isn't an issue with I'm closing out, let me know if you think there is something left in |
FTR, the commit was a fix for #217. That change added an import dependency on setup(
#...
extras_require={'appengine': ['webapp2', 'appengine']},
) |
App Engine is a nasty beast. Users deploy code there and all of these dependencies are just there. ( |
This choice is apparently more robust in situations / runtimes where the import mechanism in google/appengine/ext/webapp/__init__.py does not appear to do the right thing.
f3f8b4f replaces an import of
webapp
fromgoogle.appengine.ext
with a top-level import ofwebapp2
(aliased aswebapp
). The commit comment says:This change breaks the GAE import mocking done in
gcloud
.The text was updated successfully, but these errors were encountered: