diff --git a/sdk/keyvault/azure-keyvault-keys/pyproject.toml b/sdk/keyvault/azure-keyvault-keys/pyproject.toml index e00361912969..77d38cedb050 100644 --- a/sdk/keyvault/azure-keyvault-keys/pyproject.toml +++ b/sdk/keyvault/azure-keyvault-keys/pyproject.toml @@ -1,2 +1,48 @@ +[build-system] +requires = ["setuptools>=61.0.0", "wheel"] # Requires 61.0.0 for dynamic version +build-backend = "setuptools.build_meta" + +[project] +name = "azure-keyvault-keys" +authors = [ + {name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com"}, +] +description = "Microsoft Corporation Azure Key Vault Keys 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 = [ + "azure-core>=1.31.0", + "cryptography>=2.1.4", + "isodate>=0.6.1", + "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.keys._version.VERSION"} +readme = {file = ["README.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 diff --git a/tools/azure-sdk-tools/ci_tools/parsing/parse_functions.py b/tools/azure-sdk-tools/ci_tools/parsing/parse_functions.py index ff2f23e22657..f58046052cfd 100644 --- a/tools/azure-sdk-tools/ci_tools/parsing/parse_functions.py +++ b/tools/azure-sdk-tools/ci_tools/parsing/parse_functions.py @@ -371,6 +371,7 @@ def parse_pyproject( # "give me the package metadata for this folder." # We can avoid this expensive operation if we parse the version out of the _version or version file directly. parsed_version = project_config.get("version", None) + if not parsed_version: parsed_version_py = get_version_py(pyproject_filename) @@ -447,6 +448,7 @@ def get_version_py(setup_path: str) -> Optional[str]: "local", "scripts", "images", + ".tox" } file_path, _ = os.path.split(setup_path)