Skip to content

Commit 9d81113

Browse files
committed
msrest 0.4.28
1 parent 31c02e3 commit 9d81113

File tree

4 files changed

+24
-4
lines changed

4 files changed

+24
-4
lines changed

README.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,26 @@ To install:
2020
Release History
2121
---------------
2222

23+
2018-04-18 Version 0.4.28
24+
+++++++++++++++++++++++++
25+
26+
**Features**
27+
28+
- msrest is now able to keep the "requests.Session" alive for performance. To activate this behavior:
29+
30+
- Use the final Client as a context manager (requires generation with Autorest.Python 3.0.50 at least)
31+
- Use `client.config.keep_alive = True` and `client.close()` (requires generation with Autorest.Python 3.0.50 at least)
32+
- Use `client.config.keep_alive = True` and client._client.close() (not recommended, but available in old releases of SDK)
33+
34+
- All Authentication classes now define `signed_session` and `refresh_session` with an optional `session` parameter.
35+
To take benefits of the session improvement, a subclass of Authentication *MUST* add this optional parameter
36+
and use it if it's not `None`:
37+
38+
def signed_session(self, session=None):
39+
session = session or requests.Session()
40+
41+
# As usual from here.
42+
2343
2018-03-07 Version 0.4.27
2444
+++++++++++++++++++++++++
2545

doc/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@
6262
# built documents.
6363
#
6464
# The short X.Y version.
65-
version = '0.4.27'
65+
version = '0.4.28'
6666
# The full version, including alpha/beta/rc tags.
67-
release = '0.4.27'
67+
release = '0.4.28'
6868

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

msrest/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@
2525
# --------------------------------------------------------------------------
2626

2727
#: version of this package. Use msrest.__version__ instead
28-
msrest_version = "0.4.27"
28+
msrest_version = "0.4.28"

setup.py

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

2929
setup(
3030
name='msrest',
31-
version='0.4.27',
31+
version='0.4.28',
3232
author='Microsoft Corporation',
3333
packages=find_packages(exclude=["tests", "tests.*"]),
3434
url=("https://github.com/Azure/msrest-for-python"),

0 commit comments

Comments
 (0)