-
Notifications
You must be signed in to change notification settings - Fork 3.1k
[WebPubSubClient] Convert azure-messaging-webpubsubclient package from setup.py to pyproject.toml with Python 3.9+ support #42462
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
Conversation
Co-authored-by: swathipil <[email protected]>
…in readme, and add doc*/stress* exclusions Co-authored-by: swathipil <[email protected]>
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addressesI tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Co-authored-by: swathipil <[email protected]>
Co-authored-by: swathipil <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR modernizes the azure-messaging-webpubsubclient
package by migrating from the legacy setup.py
configuration to the modern pyproject.toml
format, aligning with current Python packaging standards and Azure SDK guidelines.
Key changes:
- Complete migration from
setup.py
topyproject.toml
with all package metadata preserved - Dynamic version loading configuration pointing to the correct module path
- Proper build system and package discovery setup with namespace package exclusions
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
setup.py | Complete removal of legacy setup.py file (76 lines deleted) |
pyproject.toml | Addition of comprehensive pyproject.toml configuration with all package metadata, dependencies, and build settings |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me.
Co-authored-by: swathipil <[email protected]>
/check-enforcer override |
This PR converts the
azure-messaging-webpubsubclient
package from usingsetup.py
to the modernpyproject.toml
configuration format, following the Azure SDK Python guidelines and the pattern established by other Azure SDK packages.Changes Made
setup.py
to a comprehensivepyproject.toml
fileazure.messaging.webpubsubclient._version.VERSION
setuptools>=77.0.3
andwheel
tests*
,doc*
,stress*
,samples*
,azure
, andazure.messaging
namespace packagesaio
extra) to the new formatKey Requirements Addressed
✅ Dynamic version file path: Correctly points to
azure.messaging.webpubsubclient._version.VERSION
✅ Python version requirement: Updated to
>=3.9
with support through Python 3.13✅ Repository URL: Set to
"https://github.com/Azure/azure-sdk-for-python"
✅ py.typed setup: Configured as
pytyped = ["py.typed"]
✅ Package exclusions: Comprehensive exclusions prevent unintended files from being included in the wheel distribution
The conversion follows the same pattern used by
azure-eventhub
and other modernized Azure SDK packages. All metadata, dependencies, and build configuration have been preserved while moving to the standardized pyproject.toml format and updating Python version support.Fixes #42461.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.