Skip to content
This repository was archived by the owner on Jan 19, 2024. It is now read-only.

Commit 0d1343c

Browse files
Srinath Narayananmoderakh
authored andcommitted
Updated setup.py and readme (#182)
* bumped version for release * updated readme and setup.py * Updating links for reference docs to reference V3 SDK * modified readme to use v3 syntax * fixed failing test and updated manifest file * Added new sample and updated links * Removed sample link that does not exist Added new sample link * fixed broken test * added reference to v4 sdk * dummy commit * reversed dummy commit
1 parent ea940ca commit 0d1343c

File tree

9 files changed

+323
-41
lines changed

9 files changed

+323
-41
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
include README.md
2+
include changelog.md
23
include LICENSE.txt
34
recursive-include doc *.bat
45
recursive-include doc *.py

README.md

Lines changed: 298 additions & 34 deletions
Large diffs are not rendered by default.

azure/cosmos/http_constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ class Versions:
257257
"""
258258
CurrentVersion = '2018-09-17'
259259
SDKName = 'azure-cosmos'
260-
SDKVersion = '3.1.1'
260+
SDKVersion = '3.1.2'
261261

262262

263263
class Delimiters:

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## Changes in 3.1.2 : ##
2+
3+
- Added suport for connection retry configuration
4+
15
## Changes in 3.1.1 : ##
26

37
- Bug fix in orderby queries to honor maxItemCount

doc/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@
5252
# built documents.
5353
#
5454
# The short X.Y version.
55-
version = '3.1.1'
55+
version = '3.1.2'
5656
# The full version, including alpha/beta/rc tags.
57-
release = '3.1.1'
57+
release = '3.1.2'
5858

5959
# The language for content autogenerated by Sphinx. Refer to documentation
6060
# for a list of supported languages.

setup.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
#!/usr/bin/env python
22

33
from distutils.core import setup
4+
from io import open
45
import setuptools
56

7+
with open("README.md", encoding="utf-8") as f:
8+
README = f.read()
9+
with open("changelog.md", encoding="utf-8") as f:
10+
CHANGELOG = f.read()
11+
612
setup(name='azure-cosmos',
7-
version='3.1.1',
13+
version='3.1.2',
814
description='Azure Cosmos Python SDK',
15+
long_description=README + "\n\n" + CHANGELOG,
16+
long_description_content_type="text/markdown",
917
author="Microsoft",
1018
author_email="[email protected]",
1119
maintainer="Microsoft",

test/crud_tests.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3183,6 +3183,11 @@ def _test_create_indexing_policy_with_composite_and_spatial_indexes(self, is_nam
31833183
container_definition = {'id': container_id, 'indexingPolicy': indexing_policy}
31843184
created_container = self.client.CreateContainer(self.GetDatabaseLink(db, is_name_based), container_definition)
31853185
read_indexing_policy = created_container['indexingPolicy']
3186+
3187+
# All types are returned for spatial Indexes
3188+
indexing_policy['spatialIndexes'][0]['types'].append('MultiPolygon')
3189+
indexing_policy['spatialIndexes'][1]['types'].insert(0, 'Point')
3190+
31863191
self.assertListEqual(indexing_policy['spatialIndexes'], read_indexing_policy['spatialIndexes'])
31873192
self.assertListEqual(indexing_policy['compositeIndexes'], read_indexing_policy['compositeIndexes'])
31883193
self.client.DeleteContainer(created_container['_self'])

test/query_tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ def test_max_item_count_honored_in_order_by_query(self):
166166
query_options = {'enableCrossPartitionQuery': True,
167167
'maxItemCount': 1}
168168
query_iterable = self.client.QueryItems(created_collection['_self'], query, query_options)
169-
#1 call to get query plans, 1 call to get pkr, 10 calls to one partion with the documents, 1 call each to other 4 partitions
170-
self.validate_query_requests_count(query_iterable, 16 * 2)
169+
#1 call to get query plans, 1 call to get pkr, 11 calls to one partion with the documents, 1 call each to other 4 partitions
170+
self.validate_query_requests_count(query_iterable, 17 * 2)
171171

172172
query_options['maxItemCount'] = 100
173173
query_iterable = self.client.QueryItems(created_collection['_self'], query, query_options)

test/retry_policy_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def test_default_retry_policy_for_query(self):
194194
result_docs = list(docs)
195195
self.assertEqual(result_docs[0]['id'], 'doc1')
196196
self.assertEqual(result_docs[1]['id'], 'doc2')
197-
self.assertEqual(self.counter, 12)
197+
self.assertEqual(self.counter, 18)
198198

199199
self.counter = 0
200200
retry_utility._ExecuteFunction = self.OriginalExecuteFunction

0 commit comments

Comments
 (0)