Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ServiceBus] remove msrest #29324

Merged
19 commits merged into from
Mar 24, 2023
Merged
Show file tree
Hide file tree
Changes from all 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
12 changes: 9 additions & 3 deletions sdk/servicebus/azure-servicebus/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
# Release History

## 7.8.4 (Unreleased)

### Features Added
## 7.9.0 (Unreleased)

### Breaking Changes

- Client side validation of input is now disabled by default for the sync and async `ServiceBusAdministrationClient`. This means there will be no `msrest.exceptions.ValidationError` raised by the `ServiceBusAdministrationClient` in the case of malformed input. An `azure.core.exceptions.HttpResponseError` may now be raised if the server refuses the request.

### Bugs Fixed

- Fixed a bug where enum members in `azure.servicebus.management` were not following uppercase convention.

### Other Changes

- Updated minimum `azure-core` version to 1.24.0.
- Removed `msrest` dependency.
- Removed `azure-common` dependency.

## 7.8.3 (2023-03-09)

### Bugs Fixed
Expand Down
2 changes: 1 addition & 1 deletion sdk/servicebus/azure-servicebus/assets.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "python",
"TagPrefix": "python/servicebus/azure-servicebus",
"Tag": "python/servicebus/azure-servicebus_361137d481"
"Tag": "python/servicebus/azure-servicebus_f69b8e6a3c"
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
cast
)
from contextlib import contextmanager
from msrest.serialization import TZ_UTC
from datetime import timezone

try:
from urlparse import urlparse
Expand Down Expand Up @@ -81,11 +81,11 @@


def utc_from_timestamp(timestamp):
return datetime.datetime.fromtimestamp(timestamp, tz=TZ_UTC)
return datetime.datetime.fromtimestamp(timestamp, tz=timezone.utc)


def utc_now():
return datetime.datetime.now(TZ_UTC)
return datetime.datetime.now(timezone.utc)


def build_uri(address, entity):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
# Licensed under the MIT License.
# ------------------------------------

VERSION = "7.8.4"
VERSION = "7.9.0"
Loading