Skip to content

Commit c824c74

Browse files
siboehmfmarczin
authored andcommitted
Add note to BotoStore docs pointing to GCStore (Python3)
1 parent dd5a327 commit c824c74

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

docs/boto.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ Storage <http://code.google.com/apis/storage/>`_. This is achieved by providing
99
a backend that utilizes `boto <http://boto.cloudhackers.com/>`_ (preferably >=
1010
2.25).
1111

12+
``boto`` doesn't support using Google Storage with Python3. For this
13+
reason simplekv has a separate Google Storage implementation for Python3 at
14+
:class:`~simplekv.net.gcstore.GoogleCloudStore` which uses Google's
15+
``google-cloud-storage`` library.
16+
1217
Note that boto is not a dependency for simplekv. You need to install it
1318
manually, otherwise you will see an :exc:`~exceptions.ImportError`.
1419

tests/test_gcloud_store.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ def gc_credentials():
3939
# at https://storage.googleapis.com
4040
os.environ["STORAGE_EMULATOR_HOST"] = emulator_endpoint
4141
credentials = AnonymousCredentials()
42-
# if no endpoint was defined we're running against actual GC and need credentials
4342
else:
4443
# if no endpoint was defined we're running against actual GC and need credentials
4544
credentials = credentials_path
@@ -125,6 +124,8 @@ def test_gcstore_pickling_attrs():
125124
class TestExtendedKeysGCStore(TestGoogleCloudStore, ExtendedKeyspaceTests):
126125
@pytest.fixture(scope="class")
127126
def dirty_store(self, gc_credentials):
127+
# This overwrites the module-level fixture and returns an ExtendedKeysStore
128+
# instead of the regular one
128129
uuid = str(uuid4())
129130
# if we have a credentials.json that specifies the project name, else we pick one
130131
if type(gc_credentials) == AnonymousCredentials:

0 commit comments

Comments
 (0)