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

Updated setup.py and readme #182

Merged
merged 11 commits into from
Oct 16, 2019
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
include README.md
include changelog.md
include LICENSE.txt
recursive-include doc *.bat
recursive-include doc *.py
Expand Down
329 changes: 295 additions & 34 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion azure/cosmos/http_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ class Versions:
"""
CurrentVersion = '2018-09-17'
SDKName = 'azure-cosmos'
SDKVersion = '3.1.1'
SDKVersion = '3.1.2'


class Delimiters:
Expand Down
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## Changes in 3.1.2 : ##

- Added suport for connection retry configuration

## Changes in 3.1.1 : ##

- Bug fix in orderby queries to honor maxItemCount
Expand Down
4 changes: 2 additions & 2 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@
# built documents.
#
# The short X.Y version.
version = '3.1.1'
version = '3.1.2'
# The full version, including alpha/beta/rc tags.
release = '3.1.1'
release = '3.1.2'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
10 changes: 9 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
#!/usr/bin/env python

from distutils.core import setup
from io import open
import setuptools

with open("README.md", encoding="utf-8") as f:
README = f.read()
with open("changelog.md", encoding="utf-8") as f:
CHANGELOG = f.read()

setup(name='azure-cosmos',
version='3.1.1',
version='3.1.2',
description='Azure Cosmos Python SDK',
long_description=README + "\n\n" + CHANGELOG,
long_description_content_type="text/markdown",
author="Microsoft",
author_email="askdocdb@microsoft.com",
maintainer="Microsoft",
Expand Down
4 changes: 2 additions & 2 deletions test/query_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ def test_max_item_count_honored_in_order_by_query(self):
query_options = {'enableCrossPartitionQuery': True,
'maxItemCount': 1}
query_iterable = self.client.QueryItems(created_collection['_self'], query, query_options)
#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
self.validate_query_requests_count(query_iterable, 16 * 2)
#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
self.validate_query_requests_count(query_iterable, 17 * 2)

query_options['maxItemCount'] = 100
query_iterable = self.client.QueryItems(created_collection['_self'], query, query_options)
Expand Down
2 changes: 1 addition & 1 deletion test/retry_policy_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def test_default_retry_policy_for_query(self):
result_docs = list(docs)
self.assertEqual(result_docs[0]['id'], 'doc1')
self.assertEqual(result_docs[1]['id'], 'doc2')
self.assertEqual(self.counter, 12)
self.assertEqual(self.counter, 18)

self.counter = 0
retry_utility._ExecuteFunction = self.OriginalExecuteFunction
Expand Down