Skip to content

Commit af2e6ca

Browse files
authored
Making new Pub / Sub and API core releases. (googleapis#4559)
1 parent 9ef8334 commit af2e6ca

6 files changed

Lines changed: 47 additions & 3 deletions

File tree

api_core/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44

55
[1]: https://pypi.org/project/google-api-core/#history
66

7+
## 0.1.2
8+
9+
- Upgrading `concurrent.futures` backport from `>= 3.0.0`
10+
to `>= 3.2.0` (#4521).
11+
712
## 0.1.1
813

914
- Upgrading `grpcio` dependency from `1.2.0, < 1.6dev` to `>= 1.7.0` (#4280)

api_core/setup.py

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

6969
setup(
7070
name='google-api-core',
71-
version='0.1.2.dev1',
71+
version='0.1.2',
7272
description='Core Google API Client Library',
7373
long_description=README,
7474
namespace_packages=['google'],

docs/core/releases.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ much of the functionality has been split out into a new package
3131

3232
* ``0.1.0`` (`PyPI <https://pypi.org/project/google-api-core/0.1.0/>`__, `Release Notes <https://github.com/GoogleCloudPlatform/google-cloud-python/releases/tag/api-core-0.1.0>`__)
3333
* ``0.1.1`` (`PyPI <https://pypi.org/project/google-api-core/0.1.1/>`__, `Release Notes <https://github.com/GoogleCloudPlatform/google-cloud-python/releases/tag/api-core-0.1.1>`__)
34+
* ``0.1.2`` (`PyPI <https://pypi.org/project/google-api-core/0.1.2/>`__, `Release Notes <https://github.com/GoogleCloudPlatform/google-cloud-python/releases/tag/api-core-0.1.2>`__)

docs/pubsub/releases.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@
1818
* ``0.29.0`` (`PyPI <https://pypi.org/project/google-cloud-pubsub/0.29.0/>`__, `Release Notes <https://github.com/GoogleCloudPlatform/google-cloud-python/releases/tag/pubsub-0.29.0>`__)
1919
* ``0.29.1`` (`PyPI <https://pypi.org/project/google-cloud-pubsub/0.29.1/>`__, `Release Notes <https://github.com/GoogleCloudPlatform/google-cloud-python/releases/tag/pubsub-0.29.1>`__)
2020
* ``0.29.2`` (`PyPI <https://pypi.org/project/google-cloud-pubsub/0.29.2/>`__, `Release Notes <https://github.com/GoogleCloudPlatform/google-cloud-python/releases/tag/pubsub-0.29.2>`__)
21+
* ``0.29.3`` (`PyPI <https://pypi.org/project/google-cloud-pubsub/0.29.3/>`__, `Release Notes <https://github.com/GoogleCloudPlatform/google-cloud-python/releases/tag/pubsub-0.29.3>`__)

pubsub/CHANGELOG.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,43 @@
44

55
[1]: https://pypi.org/project/google-cloud-pubsub/#history
66

7+
## 0.29.3
8+
9+
### Notable Implementation Changes
10+
11+
- In subscription consumer thread: Making sure the request generator
12+
attached to an inactive bidirectional streaming pull is stopped before
13+
spawning a new request generator. This way we have a (fairly strong)
14+
guarantee that requests in the queue don't get sent into an inactive
15+
stream (#4503, #4554).
16+
- Adding `pause` / `resume` to subscription consumer thread and using these
17+
methods during flow control. The previous implementation tried to close the
18+
subscription (which involved 3 worker threads and 10 executors in a thread
19+
pool) and then re-open a new subscription. But, this was not entirely
20+
possible to shut down correctly from **within** one of the worker threads.
21+
Instead, we only pause the worker (of the 3) that is pulling new responses
22+
from the bidirectional streaming pull (#4558).
23+
- **Bug fix** (#4516): Using `max` where `min` was used by mistake to
24+
ensure the number of bytes tracked for subscription flow control
25+
remained non-negative (#4514).
26+
- Raising `TypeError` if `SubscriberClient.subscribe` receives a
27+
non-callable callback (#4497).
28+
- Shutting down thread pool executor when closing a subscriber
29+
policy (#4522).
30+
- Renaming `Policy.on_callback_request` to `Policy.dispatch_callback`
31+
and making the behavior much less dynamic (#4511).
32+
- Make sure subscription consumer thread doesn't try to join itself
33+
when exiting in error (#4540).
34+
35+
### Dependencies
36+
37+
- Upgrading `google-api-core` dependency to latest revision (`0.1.2`)
38+
since we rely on the latest version of the `concurrent.futures` backport
39+
to provide the `thread_name_prefix` argument for thread pool
40+
executor (#4521, #XYZ).
41+
42+
PyPI: https://pypi.org/project/google-cloud-pubsub/0.29.3/
43+
744
## 0.29.2
845

946
### Notable Implementation Changes

pubsub/setup.py

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

5252

5353
REQUIREMENTS = [
54-
'google-api-core[grpc] >= 0.1.2.dev1, < 0.2.0dev',
54+
'google-api-core[grpc] >= 0.1.2, < 0.2.0dev',
5555
'google-auth >= 1.0.2, < 2.0dev',
5656
'grpc-google-iam-v1 >= 0.11.1, < 0.12dev',
5757
'psutil >= 5.2.2, < 6.0dev',
5858
]
5959

6060
setup(
6161
name='google-cloud-pubsub',
62-
version='0.29.3.dev1',
62+
version='0.29.3',
6363
description='Python Client for Google Cloud Pub/Sub',
6464
long_description=README,
6565
namespace_packages=[

0 commit comments

Comments
 (0)