Azure / Azure/azure-cli

Bump `azure-mgmt-eventgrid` pin to `~=10.2.0`

Open
#31,520 3 comments 0 reactions 0 assignees View on GitHub
act-codegen-extensibility-squad customer-reported Event Grid Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

This project currently pins `azure-mgmt-eventgrid` to a particular beta release.

https://github.com/Azure/azure-cli/blob/cd8c932623c0cc3f1dea4b669bf469c09b29713a/src/azure-cli/setup.py#L85

However, a stable release has long been available:
- https://pypi.org/project/azure-mgmt-eventgrid/10.2.0/
- https://pypi.org/project/azure-mgmt-eventgrid/10.4.0/

Unfortunately, It seems there was a breaking change between `azure-mgmt-eventgrid==10.2.0b2` and `azure-mgmt-eventgrid==10.2.0`. That's not ideal.

```
ImportError: cannot import name 'ResourceSku' from 'azure.mgmt.eventgrid.models' (/home/runner/work/azure-cli/azure-cli/env/lib/python3.12/site-packages/azure/mgmt/eventgrid/models/__init__.py). Did you mean: 'Resource'?
```

_Originally posted by @janjagusch in https://github.com/Azure/azure-cli/pull/31513#discussion_r2097517588_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.