Skip to content

[WebPubSubClient] Convert azure-messaging-webpubsubclient package from setup.py to pyproject.toml #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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 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
56 changes: 56 additions & 0 deletions sdk/webpubsub/azure-messaging-webpubsubclient/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,59 @@
[build-system]
requires = ["setuptools>=77.0.3", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "azure-messaging-webpubsubclient"
authors = [
{name = "Microsoft Corporation", email = "[email protected]"},
]
description = "Microsoft Azure Web PubSub Client Library for Python"
keywords = ["azure", "azure sdk"]
requires-python = ">=3.8"
license = "MIT"
Copy link
Preview

Copilot AI Aug 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The license field should use the SPDX license identifier format. Change to 'license = {text = "MIT License"}' to match the original setup.py format and provide better license information.

Suggested change
license = "MIT"
license = {text = "MIT License"}

Copilot uses AI. Check for mistakes.

classifiers = [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: MIT License",
]
dependencies = [
"isodate>=0.6.1",
"azure-core>=1.26.3",
"websocket-client>=1.6.0",
]
dynamic = ["version", "readme"]

[project.optional-dependencies]
aio = [
"aiohttp>=3.9.3",
]

[project.urls]
repository = "https://github.com/Azure/azure-sdk-for-python"
Copy link
Preview

Copilot AI Aug 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The repository URL should end with '.git' according to Azure SDK guidelines. Change to 'https://github.com/Azure/azure-sdk-for-python.git'

Copilot uses AI. Check for mistakes.


[tool.setuptools.dynamic]
version = {attr = "azure.messaging.webpubsubclient._version.VERSION"}
readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"}

[tool.setuptools.packages.find]
exclude = [
"tests*",
"doc*",
"stress*",
"azure",
"azure.messaging",
]

[tool.setuptools.package-data]
pytyped = ["py.typed"]

[tool.azure-sdk-build]
pylint = false
pyright = false
76 changes: 0 additions & 76 deletions sdk/webpubsub/azure-messaging-webpubsubclient/setup.py

This file was deleted.

Loading