Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f0c52e4

Browse files
committed
Bump version to 1.1.0.
Restore local_cloud_datastore_factory from MOE sync, modify to be compatible with googledatastore 7.0.1. Bump dependency to googledatastore 7.0.1. Add IntelliJ dirs to .gitignore. Bump App Engine SDK to 1.9.57, add SHA-256 checksum verification for download.
1 parent d38279f commit f0c52e4

File tree

7 files changed

+51
-9
lines changed

7 files changed

+51
-9
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,7 @@ htmlcov
2121
nosetests.xml
2222

2323
# Travis cache
24-
cache/
24+
cache/
25+
26+
# IDE files
27+
.idea

RELEASE_NOTES

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Release 1.1.0
2+
----------------------------------------
3+
4+
- Bump google-datastore dependency to 7.1
5+
16
Release 1.0.12 (included in SDK 1.9.21)
27

38
- Improved ndb deserialization speed in keys.

get_app_engine_sdk.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,18 @@ fi
2727

2828
cd cache
2929

30-
if [[ -f google_appengine_1.9.35.zip ]]; then
30+
if [[ -f google_appengine_1.9.57.zip ]]; then
3131
echo "App Engine SDK already downloaded. Doing nothing."
3232
else
33-
wget https://storage.googleapis.com/appengine-sdks/featured/google_appengine_1.9.35.zip -nv
33+
echo "d5c4fad8afa2ce9005481575c01558248a0fbe0b4554c6de060e925899cfbf66 google_appengine_1.9.57.zip" > sum.txt
34+
wget https://storage.googleapis.com/appengine-sdks/featured/google_appengine_1.9.57.zip -nv
35+
sha256sum --status -c sum.txt
3436
fi
3537

3638
if [[ -d google_appengine ]]; then
3739
echo "App Engine SDK already unzipped. Doing nothing."
3840
else
39-
unzip -q google_appengine_1.9.35.zip
41+
unzip -q google_appengine_1.9.57.zip
4042
fi
4143

4244
echo "Cache contents after getting SDK:"

ndb/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
"""NDB -- A new datastore API for the Google App Engine Python runtime."""
1717

18-
__version__ = '1.0.13b1'
18+
__version__ = '1.1.0'
1919

2020
__all__ = []
2121

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#
2+
# Copyright 2015 The ndb Authors. All Rights Reserved.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
import os
17+
import tempfile
18+
19+
from .google_imports import datastore_pbs
20+
21+
from googledatastore import datastore_emulator
22+
23+
class LocalCloudDatastoreFactory(
24+
datastore_emulator.DatastoreEmulatorFactory):
25+
26+
def __init__(self):
27+
working_directory = tempfile.mkdtemp()
28+
gcd_zip = os.getenv('GCD_ZIP')
29+
if not gcd_zip or not os.path.exists(gcd_zip):
30+
raise ValueError('Must provide a valid path to the gcd.zip file in the '
31+
'environment variable GCD_ZIP')
32+
super(LocalCloudDatastoreFactory, self).__init__(working_directory, gcd_zip)

ndb/test_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ class NDBCloudDatastoreV1Test(NDBBaseTest):
174174
def setUpClass(cls):
175175
# Late import so that tests can still run if googledatastore is not
176176
# available.
177-
from . import datastore_emulator
178-
factory = datastore_emulator.DatastoreEmulatorFactory()
177+
from . import local_cloud_datastore_factory
178+
factory = local_cloud_datastore_factory.LocalCloudDatastoreFactory()
179179
cls.datastore = factory.Create(cls.APP_ID)
180180

181181
@classmethod

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@
2020

2121

2222
REQUIREMENTS = [
23-
'googledatastore==5.0.0b0',
23+
'googledatastore==7.0.1',
2424
]
2525
TEST_REQUIREMENTS = [
2626
'portpicker',
2727
]
2828

2929
setup(
3030
name='ndb',
31-
version='1.0.13b1',
31+
version='1.1.0',
3232
description='NDB Client Library for Cloud Datastore',
3333
author='Google Cloud Datastore Team',
3434
author_email='[email protected]',

0 commit comments

Comments
 (0)