Skip to content

Commit 5beb601

Browse files
PubNub SDK v5.0.1 release.
1 parent 0d6ddb2 commit 5beb601

File tree

7 files changed

+21
-10
lines changed

7 files changed

+21
-10
lines changed

.pubnub.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
name: python
2-
version: 5.0.0
2+
version: 5.0.1
33
schema: 1
44
scm: github.com/pubnub/python
55
changelog:
6+
- version: v5.0.1
7+
date: Feb 4, 2021
8+
changes:
9+
-
10+
text: "User defined 'origin'(custom domain) value was not used in all required places within this SDK."
11+
type: feature
612
- version: v5.0.0
713
date: Jan 21, 2021
814
changes:

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## [v5.0.1](https://github.com/pubnub/python/releases/tag/v5.0.1)
2+
3+
[Full Changelog](https://github.com/pubnub/python/compare/v5.0.0...v5.0.1)
4+
5+
- 🌟️ User defined 'origin'(custom domain) value was not used in all required places within this SDK.
6+
17
## [v5.0.0](https://github.com/pubnub/python/releases/tag/v5.0.0)
28

39
[Full Changelog](https://github.com/pubnub/python/compare/v4.8.1...v5.0.0)

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
This is the official PubNub Python SDK repository.
99

10-
**Note:** Python SDK version 5.0 no longer supports Python 2.7 Twisted or Tornado, if you still require support for these please use SDK version 4.8.1
10+
**Note:** Python SDK version 5.0 no longer supports Python 2.7, Twisted or Tornado, if you still require support for these please use SDK version 4.8.1
1111

1212
PubNub takes care of the infrastructure and APIs needed for the realtime communication layer of your application. Work on your app's logic and let PubNub handle sending and receiving data across the world in less than 100ms.
1313

@@ -85,7 +85,6 @@ pubnub.subscribe().channels('my_channel').execute()
8585
8686
* [Build your first realtime Python app with PubNub](https://www.pubnub.com/docs/platform/quickstarts/python)
8787
* [API reference for Python](https://www.pubnub.com/docs/python/pubnub-python-sdk)
88-
* [API reference for Python (Tornado)](https://www.pubnub.com/docs/python-tornado/pubnub-python-sdk)
8988
* [API reference for Python (asyncio)](https://www.pubnub.com/docs/python-aiohttp/pubnub-python-sdk)
9089
9190
## Support

pubnub/pubnub.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ class PubNub(PubNubCore):
2929
def __init__(self, config):
3030
assert isinstance(config, PNConfiguration)
3131

32-
self._request_handler = RequestsRequestHandler(self)
3332
PubNubCore.__init__(self, config)
33+
self._request_handler = RequestsRequestHandler(self)
3434

3535
if self.config.enable_subscribe:
3636
self._subscription_manager = NativeSubscriptionManager(self)

pubnub/pubnub_core.py

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

6666
class PubNubCore:
6767
"""A base class for PubNub Python API implementations"""
68-
SDK_VERSION = "5.0.0"
68+
SDK_VERSION = "5.0.1"
6969
SDK_NAME = "PubNub-Python"
7070

7171
TIMESTAMP_DIVIDER = 1000

pubnub/request_handlers/requests_handler.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ class RequestsRequestHandler(BaseRequestHandler):
3232
def __init__(self, pubnub):
3333
self.session = Session()
3434

35-
self.session.mount('http://ps.pndsn.com', HTTPAdapter(max_retries=1, pool_maxsize=500))
36-
self.session.mount('https://ps.pndsn.com', HTTPAdapter(max_retries=1, pool_maxsize=500))
37-
self.session.mount('http://ps.pndsn.com/v2/subscribe', HTTPAdapter(pool_maxsize=500))
38-
self.session.mount('https://ps.pndsn.com/v2/subscribe', HTTPAdapter(pool_maxsize=500))
35+
self.session.mount('http://%s' % pubnub.config.origin, HTTPAdapter(max_retries=1, pool_maxsize=500))
36+
self.session.mount('https://%s' % pubnub.config.origin, HTTPAdapter(max_retries=1, pool_maxsize=500))
37+
self.session.mount('http://%s/v2/subscribe' % pubnub.config.origin, HTTPAdapter(pool_maxsize=500))
38+
self.session.mount('https://%s/v2/subscribe' % pubnub.config.origin, HTTPAdapter(pool_maxsize=500))
3939

4040
self.pubnub = pubnub
4141

setup.py

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

33
setup(
44
name='pubnub',
5-
version='5.0.0',
5+
version='5.0.1',
66
description='PubNub Real-time push service in the cloud',
77
author='PubNub',
88
author_email='support@pubnub.com',

0 commit comments

Comments
 (0)