From e5176bdda57c86707aa8c1c488c1b330356f3c69 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 4 Mar 2026 21:32:56 +0000 Subject: [PATCH 1/3] Initial plan From 7bfa2f03d918ca02dcb500c8cc2f774ccbed9823 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 4 Mar 2026 21:51:45 +0000 Subject: [PATCH 2/3] Migrate first 10 packages alphabetically to use pyproject.toml instead of setup.py Co-authored-by: l0lawrence <100643745+l0lawrence@users.noreply.github.com> --- .../azure-agrifood-farming/pyproject.toml | 51 ++++++++++++ sdk/agrifood/azure-agrifood-farming/setup.py | 75 ----------------- sdk/ai/azure-ai-agents/pyproject.toml | 51 ++++++++++++ sdk/ai/azure-ai-agents/setup.py | 80 ------------------- .../azure-ai-anomalydetector/pyproject.toml | 52 ++++++++++++ .../azure-ai-anomalydetector/setup.py | 71 ---------------- .../azure-ai-contentsafety/pyproject.toml | 52 ++++++++++++ .../azure-ai-contentsafety/setup.py | 71 ---------------- sdk/core/azure/pyproject.toml | 37 +++++++++ sdk/core/azure/setup.py | 61 -------------- sdk/nspkg/azure-agrifood-nspkg/pyproject.toml | 43 ++++++++++ sdk/nspkg/azure-agrifood-nspkg/setup.py | 40 ---------- 12 files changed, 286 insertions(+), 398 deletions(-) delete mode 100644 sdk/agrifood/azure-agrifood-farming/setup.py delete mode 100644 sdk/ai/azure-ai-agents/setup.py delete mode 100644 sdk/anomalydetector/azure-ai-anomalydetector/setup.py delete mode 100644 sdk/contentsafety/azure-ai-contentsafety/setup.py delete mode 100644 sdk/core/azure/setup.py create mode 100644 sdk/nspkg/azure-agrifood-nspkg/pyproject.toml delete mode 100644 sdk/nspkg/azure-agrifood-nspkg/setup.py diff --git a/sdk/agrifood/azure-agrifood-farming/pyproject.toml b/sdk/agrifood/azure-agrifood-farming/pyproject.toml index 1ea1e48c18ff..a638a6642186 100644 --- a/sdk/agrifood/azure-agrifood-farming/pyproject.toml +++ b/sdk/agrifood/azure-agrifood-farming/pyproject.toml @@ -1,3 +1,54 @@ +[build-system] +requires = ["setuptools>=77.0.3", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "azure-agrifood-farming" +authors = [ + { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, +] +description = "Microsoft Azure AgriFood Farming Client Library for Python" +license = "MIT" +classifiers = [ + "Development Status :: 4 - Beta", + "Programming Language :: Python", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", +] +requires-python = ">=3.6" +keywords = ["azure", "azure sdk"] + +dependencies = [ + "azure-core<2.0.0,>=1.24.0", + "msrest>=0.6.21", +] +dynamic = [ +"version", "readme" +] + +[project.urls] +repository = "https://github.com/Azure/azure-sdk-for-python" + +[tool.setuptools.dynamic] +version = {attr = "azure.agrifood.farming._version.VERSION"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} + +[tool.setuptools.packages.find] +exclude = [ + "tests*", + "samples*", + "azure", + "azure.agrifood", +] + +[tool.setuptools.package-data] +pytyped = ["py.typed"] + [tool.azure-sdk-build] pyright = false ci_enabled = false diff --git a/sdk/agrifood/azure-agrifood-farming/setup.py b/sdk/agrifood/azure-agrifood-farming/setup.py deleted file mode 100644 index 312c6ce85644..000000000000 --- a/sdk/agrifood/azure-agrifood-farming/setup.py +++ /dev/null @@ -1,75 +0,0 @@ -#!/usr/bin/env python - -#------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -#-------------------------------------------------------------------------- - -import re -import os.path -from io import open -from setuptools import find_packages, setup - -# Change the PACKAGE_NAME only to change folder and different name -PACKAGE_NAME = "azure-agrifood-farming" -PACKAGE_PPRINT_NAME = "Azure AgriFood Farming" - -# a-b-c => a/b/c -package_folder_path = PACKAGE_NAME.replace('-', '/') -# a-b-c => a.b.c -namespace_name = PACKAGE_NAME.replace('-', '.') - -# Version extraction inspired from 'requests' -with open(os.path.join(package_folder_path, '_version.py'), 'r') as fd: - version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', - fd.read(), re.MULTILINE).group(1) - -if not version: - raise RuntimeError('Cannot find version information') - -with open('README.md', encoding='utf-8') as f: - readme = f.read() -with open('CHANGELOG.md', encoding='utf-8') as f: - changelog = f.read() - -setup( - name=PACKAGE_NAME, - version=version, - description='Microsoft {} Client Library for Python'.format(PACKAGE_PPRINT_NAME), - long_description=readme + "\n\n" + changelog, - long_description_content_type='text/markdown', - license='MIT License', - author='Microsoft Corporation', - author_email='azpysdkhelp@microsoft.com', - url='https://github.com/Azure/azure-sdk-for-python', - keywords="azure, azure sdk", - classifiers=[ - "Development Status :: 4 - Beta", - 'Programming Language :: Python', - 'Programming Language :: Python :: 3 :: Only', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Programming Language :: Python :: 3.9', - 'Programming Language :: Python :: 3.10', - 'License :: OSI Approved :: MIT License', - ], - zip_safe=False, - packages=find_packages(exclude=[ - 'tests', - # Exclude packages that will be covered by PEP420 or nspkg - 'azure', - 'azure.agrifood', - ]), - include_package_data=True, - package_data={ - 'pytyped': ['py.typed'], - }, - python_requires=">=3.6", - install_requires=[ - "azure-core<2.0.0,>=1.24.0", - "msrest>=0.6.21", - ], -) diff --git a/sdk/ai/azure-ai-agents/pyproject.toml b/sdk/ai/azure-ai-agents/pyproject.toml index 062a6418ec7b..663ede155075 100644 --- a/sdk/ai/azure-ai-agents/pyproject.toml +++ b/sdk/ai/azure-ai-agents/pyproject.toml @@ -1,3 +1,54 @@ +[build-system] +requires = ["setuptools>=77.0.3", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "azure-ai-agents" +authors = [ + { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, +] +description = "Microsoft Corporation Azure AI Agents Client Library for Python" +license = "MIT" +classifiers = [ + "Development Status :: 4 - Beta", + "Programming Language :: Python", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", +] +requires-python = ">=3.9" +keywords = ["azure", "azure sdk"] + +dependencies = [ + "isodate>=0.6.1", + "azure-core>=1.30.0", + "typing-extensions>=4.6.0", +] +dynamic = [ +"version", "readme" +] + +[project.urls] +repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" + +[tool.setuptools.dynamic] +version = {attr = "azure.ai.agents._version.VERSION"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} + +[tool.setuptools.packages.find] +exclude = [ + "samples*", + "tests*", + "azure", + "azure.ai", +] + +[tool.setuptools.package-data] +"azure.ai.agents" = ["py.typed"] + [tool.mypy] python_version = "3.10" exclude = [ diff --git a/sdk/ai/azure-ai-agents/setup.py b/sdk/ai/azure-ai-agents/setup.py deleted file mode 100644 index 372a1c431d12..000000000000 --- a/sdk/ai/azure-ai-agents/setup.py +++ /dev/null @@ -1,80 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) Python Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - - -import os -import re -from setuptools import setup, find_packages - - -PACKAGE_NAME = "azure-ai-agents" -PACKAGE_PPRINT_NAME = "Azure AI Agents" - -# a-b-c => a/b/c -package_folder_path = PACKAGE_NAME.replace("-", "/") - -# Version extraction inspired from 'requests' -with open(os.path.join(package_folder_path, "_version.py"), "r") as fd: - version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1) - -if not version: - raise RuntimeError("Cannot find version information") - - -setup( - name=PACKAGE_NAME, - version=version, - description="Microsoft Corporation {} Client Library for Python".format(PACKAGE_PPRINT_NAME), - long_description=open("README.md", "r").read(), - long_description_content_type="text/markdown", - license="MIT License", - author="Microsoft Corporation", - author_email="azpysdkhelp@microsoft.com", - url="https://github.com/Azure/azure-sdk-for-python/tree/main/sdk", - keywords="azure, azure sdk", - classifiers=[ - "Development Status :: 4 - Beta", - "Programming Language :: Python", - "Programming Language :: Python :: 3 :: Only", - "Programming Language :: Python :: 3", - "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", - ], - zip_safe=False, - packages=find_packages( - exclude=[ - "samples", - "samples.utils", - "samples.agents_tools", - "samples.agents_async", - "samples.agents_multiagent", - "samples.agents_streaming", - "samples.agents_telemetry", - "samples.agents_tools", - "samples.assets", - "samples.agents_async.utils", - "tests", - # Exclude packages that will be covered by PEP420 or nspkg - "azure", - "azure.ai", - ] - ), - include_package_data=True, - package_data={ - "azure.ai.agents": ["py.typed"], - }, - install_requires=[ - "isodate>=0.6.1", - "azure-core>=1.30.0", - "typing-extensions>=4.6.0", - ], - python_requires=">=3.9", -) diff --git a/sdk/anomalydetector/azure-ai-anomalydetector/pyproject.toml b/sdk/anomalydetector/azure-ai-anomalydetector/pyproject.toml index a3a58bd09030..a4d434c0b60f 100644 --- a/sdk/anomalydetector/azure-ai-anomalydetector/pyproject.toml +++ b/sdk/anomalydetector/azure-ai-anomalydetector/pyproject.toml @@ -1,3 +1,55 @@ +[build-system] +requires = ["setuptools>=77.0.3", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "azure-ai-anomalydetector" +authors = [ + { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, +] +description = "Microsoft Cognitive Services Anomaly Detector Client Library for Python" +license = "MIT" +classifiers = [ + "Development Status :: 7 - Inactive", + "Programming Language :: Python", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", +] +requires-python = ">=3.7" +keywords = ["azure", "azure sdk"] + +dependencies = [ + "isodate<1.0.0,>=0.6.1", + "azure-core<2.0.0,>=1.24.0", + "typing-extensions>=4.3.0; python_version<'3.8.0'", +] +dynamic = [ +"version", "readme" +] + +[project.urls] +repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" + +[tool.setuptools.dynamic] +version = {attr = "azure.ai.anomalydetector._version.VERSION"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} + +[tool.setuptools.packages.find] +exclude = [ + "tests*", + "samples*", + "azure", + "azure.ai", +] + +[tool.setuptools.package-data] +pytyped = ["py.typed"] + [tool.azure-sdk-build] pylint = false pyright = false diff --git a/sdk/anomalydetector/azure-ai-anomalydetector/setup.py b/sdk/anomalydetector/azure-ai-anomalydetector/setup.py deleted file mode 100644 index db2dd994336f..000000000000 --- a/sdk/anomalydetector/azure-ai-anomalydetector/setup.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -# coding: utf-8 - -import os -import re -from setuptools import setup, find_packages - - -PACKAGE_NAME = "azure-ai-anomalydetector" -PACKAGE_PPRINT_NAME = "Cognitive Services Anomaly Detector" - -# a-b-c => a/b/c -package_folder_path = PACKAGE_NAME.replace("-", "/") - -# Version extraction inspired from 'requests' -with open(os.path.join(package_folder_path, "_version.py"), "r") as fd: - version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1) - -if not version: - raise RuntimeError("Cannot find version information") - - -setup( - name=PACKAGE_NAME, - version=version, - description="Microsoft Cognitive Services Anomaly Detector Client Library for Python", - long_description=open("README.md", "r").read(), - long_description_content_type="text/markdown", - license="MIT License", - author="Microsoft Corporation", - author_email="azpysdkhelp@microsoft.com", - url="https://github.com/Azure/azure-sdk-for-python/tree/main/sdk", - keywords="azure, azure sdk", - classifiers=[ - "Development Status :: 7 - Inactive", - "Programming Language :: Python", - "Programming Language :: Python :: 3 :: Only", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - "License :: OSI Approved :: MIT License", - ], - zip_safe=False, - packages=find_packages( - exclude=[ - "tests", - # Exclude packages that will be covered by PEP420 or nspkg - "azure", - "azure.ai", - ] - ), - include_package_data=True, - package_data={ - "pytyped": ["py.typed"], - }, - install_requires=[ - "isodate<1.0.0,>=0.6.1", - "azure-core<2.0.0,>=1.24.0", - "typing-extensions>=4.3.0; python_version<'3.8.0'", - ], - python_requires=">=3.7", -) diff --git a/sdk/contentsafety/azure-ai-contentsafety/pyproject.toml b/sdk/contentsafety/azure-ai-contentsafety/pyproject.toml index 0504960bccae..5e558a2eb672 100644 --- a/sdk/contentsafety/azure-ai-contentsafety/pyproject.toml +++ b/sdk/contentsafety/azure-ai-contentsafety/pyproject.toml @@ -1,2 +1,54 @@ +[build-system] +requires = ["setuptools>=77.0.3", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "azure-ai-contentsafety" +authors = [ + { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, +] +description = "Microsoft Azure AI Content Safety Client Library for Python" +license = "MIT" +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Programming Language :: Python", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", +] +requires-python = ">=3.7" +keywords = ["azure", "azure sdk"] + +dependencies = [ + "isodate<1.0.0,>=0.6.1", + "azure-core<2.0.0,>=1.28.0", + "typing-extensions>=4.3.0; python_version<'3.8.0'", +] +dynamic = [ +"version", "readme" +] + +[project.urls] +repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" + +[tool.setuptools.dynamic] +version = {attr = "azure.ai.contentsafety._version.VERSION"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} + +[tool.setuptools.packages.find] +exclude = [ + "tests*", + "samples*", + "azure", + "azure.ai", +] + +[tool.setuptools.package-data] +"azure.ai.contentsafety" = ["py.typed"] + [tool.azure-sdk-conda] in_bundle = false diff --git a/sdk/contentsafety/azure-ai-contentsafety/setup.py b/sdk/contentsafety/azure-ai-contentsafety/setup.py deleted file mode 100644 index b4e939ee2c66..000000000000 --- a/sdk/contentsafety/azure-ai-contentsafety/setup.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) Python Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -# coding: utf-8 - -import os -import re -from setuptools import setup, find_packages - - -PACKAGE_NAME = "azure-ai-contentsafety" -PACKAGE_PPRINT_NAME = "Azure AI Content Safety" - -# a-b-c => a/b/c -package_folder_path = PACKAGE_NAME.replace("-", "/") - -# Version extraction inspired from 'requests' -with open(os.path.join(package_folder_path, "_version.py"), "r") as fd: - version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1) - -if not version: - raise RuntimeError("Cannot find version information") - - -setup( - name=PACKAGE_NAME, - version=version, - description="Microsoft {} Client Library for Python".format(PACKAGE_PPRINT_NAME), - long_description=open("README.md", "r").read(), - long_description_content_type="text/markdown", - license="MIT License", - author="Microsoft Corporation", - author_email="azpysdkhelp@microsoft.com", - url="https://github.com/Azure/azure-sdk-for-python/tree/main/sdk", - keywords="azure, azure sdk", - classifiers=[ - "Development Status :: 5 - Production/Stable", - "Programming Language :: Python", - "Programming Language :: Python :: 3 :: Only", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - "License :: OSI Approved :: MIT License", - ], - zip_safe=False, - packages=find_packages( - exclude=[ - "tests", - # Exclude packages that will be covered by PEP420 or nspkg - "azure", - "azure.ai", - ] - ), - include_package_data=True, - package_data={ - "azure.ai.contentsafety": ["py.typed"], - }, - install_requires=[ - "isodate<1.0.0,>=0.6.1", - "azure-core<2.0.0,>=1.28.0", - "typing-extensions>=4.3.0; python_version<'3.8.0'", - ], - python_requires=">=3.7", -) diff --git a/sdk/core/azure/pyproject.toml b/sdk/core/azure/pyproject.toml index efda107d93d8..beeb0f991270 100644 --- a/sdk/core/azure/pyproject.toml +++ b/sdk/core/azure/pyproject.toml @@ -1,3 +1,40 @@ +[build-system] +requires = ["setuptools>=77.0.3", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "azure" +version = "5.0.0" +authors = [ + { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, +] +description = "Microsoft Azure Client Libraries for Python" +license = "MIT" +classifiers = [ + "Development Status :: 7 - Inactive", + "Programming Language :: Python", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3", +] +requires-python = ">=3.8" +keywords = ["azure", "azure sdk"] +dependencies = [] +dynamic = [ +"readme" +] + +[project.urls] +repository = "https://github.com/Azure/azure-sdk-for-python" + +[tool.setuptools.dynamic] +readme = {file = ["README.md"], content-type = "text/markdown"} + +[tool.setuptools.packages.find] +exclude = [ + "tests*", + "samples*", +] + [tool.azure-sdk-build] type_check_samples = false verifytypes = false diff --git a/sdk/core/azure/setup.py b/sdk/core/azure/setup.py deleted file mode 100644 index 01417f8d6a91..000000000000 --- a/sdk/core/azure/setup.py +++ /dev/null @@ -1,61 +0,0 @@ -#!/usr/bin/env python - -#------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -#-------------------------------------------------------------------------- - -from setuptools import setup -import sys - - -message = """ - -Starting with v5.0.0, the 'azure' meta-package is deprecated and cannot be installed anymore. -Please install the service specific packages prefixed by `azure` needed for your application. - -The complete list of available packages can be found at: -https://aka.ms/azsdk/python/all - -Here's a non-exhaustive list of common packages: - -- azure-mgmt-compute (https://pypi.python.org/pypi/azure-mgmt-compute) : Management of Virtual Machines, etc. -- azure-mgmt-storage (https://pypi.python.org/pypi/azure-mgmt-storage) : Management of storage accounts. -- azure-mgmt-resource (https://pypi.python.org/pypi/azure-mgmt-resource) : Generic package about Azure Resource Management (ARM) -- azure-keyvault-secrets (https://pypi.python.org/pypi/azure-keyvault-secrets) : Access to secrets in Key Vault -- azure-storage-blob (https://pypi.python.org/pypi/azure-storage-blob) : Access to blobs in storage accounts - -A more comprehensive discussion of the rationale for this decision can be found in the following issue: -https://github.com/Azure/azure-sdk-for-python/issues/10646 - -""" - -if "sdist" in sys.argv: - setup( - name='azure', - version='5.0.0', - description='Microsoft Azure Client Libraries for Python', - long_description=open('README.md', 'r').read(), - long_description_content_type='text/markdown', - license='MIT License', - author='Microsoft Corporation', - author_email='azpysdkhelp@microsoft.com', - url='https://github.com/Azure/azure-sdk-for-python', - keywords="azure, azure sdk", - classifiers=[ - 'Development Status :: 7 - Inactive', - 'Programming Language :: Python', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.5', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'License :: OSI Approved :: MIT License', - ], - zip_safe=False, - ) -else: - raise RuntimeError(message) diff --git a/sdk/nspkg/azure-agrifood-nspkg/pyproject.toml b/sdk/nspkg/azure-agrifood-nspkg/pyproject.toml new file mode 100644 index 000000000000..72e58b63268e --- /dev/null +++ b/sdk/nspkg/azure-agrifood-nspkg/pyproject.toml @@ -0,0 +1,43 @@ +[build-system] +requires = ["setuptools>=77.0.3", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "azure-agrifood-nspkg" +version = "1.0.0" +authors = [ + { name = "Microsoft Corporation", email = "azurepysdk@microsoft.com" }, +] +description = "Microsoft Azure AgriFood Namespace Package [Internal]" +license = "MIT" +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Programming Language :: Python", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", +] +keywords = ["azure", "azure sdk"] +dynamic = [ +"readme" +] + +dependencies = [ + "azure-nspkg>=2.0.0", +] + +[project.urls] +repository = "https://github.com/Azure/azure-sdk-for-python" + +[tool.setuptools.dynamic] +readme = {file = ["README.md"], content-type = "text/markdown"} + +[tool.setuptools] +packages = ["azure.agrifood"] + +[tool.azure-sdk-build] +pylint = false +pyright = false diff --git a/sdk/nspkg/azure-agrifood-nspkg/setup.py b/sdk/nspkg/azure-agrifood-nspkg/setup.py deleted file mode 100644 index d68d2f642cc0..000000000000 --- a/sdk/nspkg/azure-agrifood-nspkg/setup.py +++ /dev/null @@ -1,40 +0,0 @@ -#!/usr/bin/env python - -# ------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -------------------------------------------------------------------------- - -from setuptools import setup - -setup( - name='azure-agrifood-nspkg', - version='1.0.0', - description='Microsoft Azure AgriFood Namespace Package [Internal]', - long_description=open('README.md', 'r').read(), - license='MIT License', - author='Microsoft Corporation', - author_email='azurepysdk@microsoft.com', - url='https://github.com/Azure/azure-sdk-for-python/', - keywords="azure, azure sdk", - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Programming Language :: Python', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Programming Language :: Python :: 3.9', - 'License :: OSI Approved :: MIT License', - ], - zip_safe=False, - packages=[ - 'azure.agrifood', - ], - install_requires=[ - 'azure-nspkg>=2.0.0', - ] -) From 88374ecf5fb2658efaa369f0483f697500278465 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 4 Mar 2026 23:39:32 +0000 Subject: [PATCH 3/3] Revert sdk/core/azure changes - keep setup.py as requested Co-authored-by: l0lawrence <100643745+l0lawrence@users.noreply.github.com> --- sdk/core/azure/pyproject.toml | 37 --------------------- sdk/core/azure/setup.py | 61 +++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+), 37 deletions(-) create mode 100644 sdk/core/azure/setup.py diff --git a/sdk/core/azure/pyproject.toml b/sdk/core/azure/pyproject.toml index beeb0f991270..efda107d93d8 100644 --- a/sdk/core/azure/pyproject.toml +++ b/sdk/core/azure/pyproject.toml @@ -1,40 +1,3 @@ -[build-system] -requires = ["setuptools>=77.0.3", "wheel"] -build-backend = "setuptools.build_meta" - -[project] -name = "azure" -version = "5.0.0" -authors = [ - { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, -] -description = "Microsoft Azure Client Libraries for Python" -license = "MIT" -classifiers = [ - "Development Status :: 7 - Inactive", - "Programming Language :: Python", - "Programming Language :: Python :: 3 :: Only", - "Programming Language :: Python :: 3", -] -requires-python = ">=3.8" -keywords = ["azure", "azure sdk"] -dependencies = [] -dynamic = [ -"readme" -] - -[project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python" - -[tool.setuptools.dynamic] -readme = {file = ["README.md"], content-type = "text/markdown"} - -[tool.setuptools.packages.find] -exclude = [ - "tests*", - "samples*", -] - [tool.azure-sdk-build] type_check_samples = false verifytypes = false diff --git a/sdk/core/azure/setup.py b/sdk/core/azure/setup.py new file mode 100644 index 000000000000..01417f8d6a91 --- /dev/null +++ b/sdk/core/azure/setup.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python + +#------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +#-------------------------------------------------------------------------- + +from setuptools import setup +import sys + + +message = """ + +Starting with v5.0.0, the 'azure' meta-package is deprecated and cannot be installed anymore. +Please install the service specific packages prefixed by `azure` needed for your application. + +The complete list of available packages can be found at: +https://aka.ms/azsdk/python/all + +Here's a non-exhaustive list of common packages: + +- azure-mgmt-compute (https://pypi.python.org/pypi/azure-mgmt-compute) : Management of Virtual Machines, etc. +- azure-mgmt-storage (https://pypi.python.org/pypi/azure-mgmt-storage) : Management of storage accounts. +- azure-mgmt-resource (https://pypi.python.org/pypi/azure-mgmt-resource) : Generic package about Azure Resource Management (ARM) +- azure-keyvault-secrets (https://pypi.python.org/pypi/azure-keyvault-secrets) : Access to secrets in Key Vault +- azure-storage-blob (https://pypi.python.org/pypi/azure-storage-blob) : Access to blobs in storage accounts + +A more comprehensive discussion of the rationale for this decision can be found in the following issue: +https://github.com/Azure/azure-sdk-for-python/issues/10646 + +""" + +if "sdist" in sys.argv: + setup( + name='azure', + version='5.0.0', + description='Microsoft Azure Client Libraries for Python', + long_description=open('README.md', 'r').read(), + long_description_content_type='text/markdown', + license='MIT License', + author='Microsoft Corporation', + author_email='azpysdkhelp@microsoft.com', + url='https://github.com/Azure/azure-sdk-for-python', + keywords="azure, azure sdk", + classifiers=[ + 'Development Status :: 7 - Inactive', + 'Programming Language :: Python', + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'License :: OSI Approved :: MIT License', + ], + zip_safe=False, + ) +else: + raise RuntimeError(message)