-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Regenerate client using Stone 3.2.0 (#291)
* update version requirement for Stone and regenerate client files * add UPGRADING.md
- Loading branch information
1 parent
50f1d99
commit 0f1ad58
Showing
33 changed files
with
12,297 additions
and
74,078 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Upgrading the Dropbox SDK | ||
|
||
This document is designed to show you how to upgrade to the latest version of the SDK accomodating any breaking changes introduced by major version updates. | ||
If you find any issues with either this guide on upgrading or the changes introduced in the new version, please see [CONTRIBUTING.md](CONTRIBUTING.md) | ||
|
||
# Upgrading from v10.X.X to v11.0.0 | ||
The major change that happened in this new version is that we regenerated the client files using Stone 3.2.0, | ||
so relative imports are removed from the generated client files. | ||
This created some issues with the imports in the non-generated files in `dropbox/`. | ||
As a result, we renamed `dropbox.dropbox` to | ||
`dropbox.dropbox_client`. If you used to do imports like `dropbox.dropbox.foo`, such imports need to be changed to `dropbox.dropbox_client.foo`. | ||
However, we preserved the imports in `dropbox/__init__.py`, so imports like `from dropbox import DropboxOAuth2FlowNoRedirect`, | ||
`from dropbox import Dropbox` will continue to work. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
from __future__ import absolute_import | ||
|
||
from .dropbox import __version__, Dropbox, DropboxTeam, create_session # noqa: F401 | ||
from .oauth import DropboxOAuth2Flow, DropboxOAuth2FlowNoRedirect # noqa: F401 | ||
from dropbox.dropbox_client import ( # noqa: F401 # pylint: disable=unused-import | ||
__version__, Dropbox, DropboxTeam, create_session | ||
) | ||
from dropbox.oauth import ( # noqa: F401 # pylint: disable=unused-import | ||
DropboxOAuth2Flow, DropboxOAuth2FlowNoRedirect | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.