diff --git a/sdk/keyvault/azure-keyvault-certificates/pyproject.toml b/sdk/keyvault/azure-keyvault-certificates/pyproject.toml index a82bda788dee..bb3c249b7ee2 100644 --- a/sdk/keyvault/azure-keyvault-certificates/pyproject.toml +++ b/sdk/keyvault/azure-keyvault-certificates/pyproject.toml @@ -1,6 +1,69 @@ +[build-system] +requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +build-backend = "setuptools.build_meta" + +[project] +name = "azure-keyvault-certificates" +authors = [ + {name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com"}, +] +description = "Microsoft Corporation Key Vault Certificates Client Library for Python" +keywords = ["azure", "azure sdk"] +requires-python = ">=3.9" +license = {text = "MIT License"} +classifiers = [ + "Development Status :: 5 - Production/Stable", + "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", + "Programming Language :: Python :: 3.13", + "License :: OSI Approved :: MIT License", +] +dependencies = [ + "isodate>=0.6.1", + "azure-core>=1.31.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.keyvault.certificates._version.VERSION"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} + +[tool.setuptools.packages.find] +exclude = ["samples*", "tests*", "azure", "azure.keyvault"] + +[tool.setuptools.package-data] +pytyped = ["py.typed"] + [tool.azure-sdk-build] pyright = false +[tool.uv.sources] +azure-core = { path = "../../core/azure-core" } +azure-identity = { path = "../../identity/azure-identity" } +azure-keyvault-nspkg = { path = "../../nspkg/azure-keyvault-nspkg" } +azure-sdk-tools = { path = "../../../eng/tools/azure-sdk-tools" } + +[dependency-groups] +dev = [ + "aiohttp>=3.0", + "azure-core", + "azure-identity", + "azure-keyvault-nspkg", + "azure-sdk-tools", + "parameterized>=0.7.3", + "pyopenssl", + "python-dateutil>=2.8.0", +] + [tool.azure-sdk-conda] in_bundle = true bundle_name = "azure-keyvault" diff --git a/sdk/keyvault/azure-keyvault-certificates/setup.py b/sdk/keyvault/azure-keyvault-certificates/setup.py deleted file mode 100644 index b9ea86ee01d9..000000000000 --- a/sdk/keyvault/azure-keyvault-certificates/setup.py +++ /dev/null @@ -1,69 +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-keyvault-certificates" -PACKAGE_PPRINT_NAME = "Key Vault Certificates" - -# 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, - include_package_data=True, - 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 :: 5 - Production/Stable", - "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", - "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", - ], - zip_safe=False, - packages=find_packages( - exclude=[ - "samples", - "tests", - # Exclude packages that will be covered by PEP420 or nspkg - "azure", - "azure.keyvault", - ] - ), - install_requires=[ - "isodate>=0.6.1", - "azure-core>=1.31.0", - "typing-extensions>=4.6.0", - ], - python_requires=">=3.9", -) diff --git a/sdk/keyvault/azure-keyvault-secrets/pyproject.toml b/sdk/keyvault/azure-keyvault-secrets/pyproject.toml index b66730034d2c..982ade033f84 100644 --- a/sdk/keyvault/azure-keyvault-secrets/pyproject.toml +++ b/sdk/keyvault/azure-keyvault-secrets/pyproject.toml @@ -1,5 +1,67 @@ +[build-system] +requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +build-backend = "setuptools.build_meta" + +[project] +name = "azure-keyvault-secrets" +authors = [ + {name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com"}, +] +description = "Microsoft Corporation Key Vault Secrets Client Library for Python" +keywords = ["azure", "azure sdk"] +requires-python = ">=3.9" +license = {text = "MIT License"} +classifiers = [ + "Development Status :: 5 - Production/Stable", + "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", + "Programming Language :: Python :: 3.13", + "License :: OSI Approved :: MIT License", +] +dependencies = [ + "isodate>=0.6.1", + "azure-core>=1.31.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.keyvault.secrets._version.VERSION"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} + +[tool.setuptools.packages.find] +exclude = ["samples*", "tests*", "azure", "azure.keyvault"] + +[tool.setuptools.package-data] +pytyped = ["py.typed"] + [tool.azure-sdk-build] +[tool.uv.sources] +azure-core = { path = "../../core/azure-core" } +azure-identity = { path = "../../identity/azure-identity" } +azure-keyvault-nspkg = { path = "../../nspkg/azure-keyvault-nspkg" } +azure-sdk-tools = { path = "../../../eng/tools/azure-sdk-tools" } + +[dependency-groups] +dev = [ + "aiohttp>=3.0", + "azure-core", + "azure-identity", + "azure-keyvault-nspkg", + "azure-sdk-tools", + "parameterized>=0.7.3", + "python-dateutil>=2.8.0", +] + [tool.azure-sdk-conda] in_bundle = true bundle_name = "azure-keyvault" diff --git a/sdk/keyvault/azure-keyvault-secrets/setup.py b/sdk/keyvault/azure-keyvault-secrets/setup.py deleted file mode 100644 index 62f8b4627517..000000000000 --- a/sdk/keyvault/azure-keyvault-secrets/setup.py +++ /dev/null @@ -1,69 +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-keyvault-secrets" -PACKAGE_PPRINT_NAME = "Key Vault Secrets" - -# 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, - include_package_data=True, - 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 :: 5 - Production/Stable", - "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", - "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", - ], - zip_safe=False, - packages=find_packages( - exclude=[ - "samples", - "tests", - # Exclude packages that will be covered by PEP420 or nspkg - "azure", - "azure.keyvault", - ] - ), - install_requires=[ - "isodate>=0.6.1", - "azure-core>=1.31.0", - "typing-extensions>=4.6.0", - ], - python_requires=">=3.9", -) diff --git a/sdk/keyvault/azure-keyvault-securitydomain/pyproject.toml b/sdk/keyvault/azure-keyvault-securitydomain/pyproject.toml new file mode 100644 index 000000000000..c4f56795a7f0 --- /dev/null +++ b/sdk/keyvault/azure-keyvault-securitydomain/pyproject.toml @@ -0,0 +1,60 @@ +[build-system] +requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +build-backend = "setuptools.build_meta" + +[project] +name = "azure-keyvault-securitydomain" +authors = [ + {name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com"}, +] +description = "Microsoft Corporation Azure Keyvault Securitydomain Client Library for Python" +keywords = ["azure", "azure sdk"] +requires-python = ">=3.9" +license = {text = "MIT License"} +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", + "Programming Language :: Python :: 3.13", + "License :: OSI Approved :: MIT License", +] +dependencies = [ + "isodate>=0.6.1", + "azure-core>=1.31.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.keyvault.securitydomain._version.VERSION"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} + +[tool.setuptools.packages.find] +exclude = ["samples*", "tests*", "azure", "azure.keyvault"] + +[tool.setuptools.package-data] +pytyped = ["py.typed"] + +[tool.azure-sdk-build] +pyright = false + +[tool.uv.sources] +azure-core = { path = "../../core/azure-core" } +azure-identity = { path = "../../identity/azure-identity" } +azure-sdk-tools = { path = "../../../eng/tools/azure-sdk-tools" } + +[dependency-groups] +dev = [ + "aiohttp", + "azure-core", + "azure-identity", + "azure-sdk-tools", +] diff --git a/sdk/keyvault/azure-keyvault-securitydomain/sdk_packaging.toml b/sdk/keyvault/azure-keyvault-securitydomain/sdk_packaging.toml new file mode 100644 index 000000000000..901bc8ccbfa6 --- /dev/null +++ b/sdk/keyvault/azure-keyvault-securitydomain/sdk_packaging.toml @@ -0,0 +1,2 @@ +[packaging] +auto_update = false diff --git a/sdk/keyvault/azure-keyvault-securitydomain/setup.py b/sdk/keyvault/azure-keyvault-securitydomain/setup.py deleted file mode 100644 index 227484eaaeda..000000000000 --- a/sdk/keyvault/azure-keyvault-securitydomain/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. -# -------------------------------------------------------------------------- - - -import os -import re -from setuptools import setup, find_packages - - -PACKAGE_NAME = "azure-keyvault-securitydomain" -PACKAGE_PPRINT_NAME = "Azure Keyvault Securitydomain" - -# 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", - "Programming Language :: Python :: 3.13", - "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.keyvault", - ] - ), - include_package_data=True, - package_data={ - "azure.keyvault.securitydomain": ["py.typed"], - }, - install_requires=[ - "isodate>=0.6.1", - "azure-core>=1.31.0", - "typing-extensions>=4.6.0", - ], - python_requires=">=3.9", -) diff --git a/sdk/keyvault/azure-keyvault/pyproject.toml b/sdk/keyvault/azure-keyvault/pyproject.toml index b93c482834e2..b28e647ec98a 100644 --- a/sdk/keyvault/azure-keyvault/pyproject.toml +++ b/sdk/keyvault/azure-keyvault/pyproject.toml @@ -1,5 +1,53 @@ +[build-system] +requires = ["setuptools>=61.0.0", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "azure-keyvault" +version = "4.2.0" +authors = [ + {name = "Microsoft Corporation", email = "azurekeyvault@microsoft.com"}, +] +description = "Microsoft Azure Key Vault Client Libraries for Python" +keywords = ["azure", "azure sdk"] +requires-python = ">=3.8" +license = {text = "MIT License"} +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 = [ + "azure-keyvault-certificates~=4.4", + "azure-keyvault-secrets~=4.4", + "azure-keyvault-keys~=4.5", +] +dynamic = ["readme"] + +[project.urls] +repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault" + +[tool.setuptools.dynamic] +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} + [tool.azure-sdk-build] pylint = false +pyright = false + +[tool.uv.sources] +azure-sdk-tools = { path = "../../../eng/tools/azure-sdk-tools" } + +[dependency-groups] +dev = [ + "azure-sdk-tools", +] [tool.azure-sdk-conda] in_bundle = false diff --git a/sdk/keyvault/azure-keyvault/setup.cfg b/sdk/keyvault/azure-keyvault/setup.cfg deleted file mode 100644 index 3c6e79cf31da..000000000000 --- a/sdk/keyvault/azure-keyvault/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[bdist_wheel] -universal=1 diff --git a/sdk/keyvault/azure-keyvault/setup.py b/sdk/keyvault/azure-keyvault/setup.py deleted file mode 100644 index d847a08ecbaa..000000000000 --- a/sdk/keyvault/azure-keyvault/setup.py +++ /dev/null @@ -1,46 +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 -from io import open - -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='azure-keyvault', - version='4.2.0', - description='Microsoft Azure Key Vault Client Libraries for Python', - long_description=README + "\n\n" + CHANGELOG, - long_description_content_type="text/markdown", - license='MIT License', - author='Microsoft Corporation', - author_email="azurekeyvault@microsoft.com", - url="https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault", - 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.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', - ], - zip_safe=False, - install_requires=[ - 'azure-keyvault-certificates~=4.4', - 'azure-keyvault-secrets~=4.4', - 'azure-keyvault-keys~=4.5', - ], -)