Skip to content

Commit d0d6eb9

Browse files
scbeddCopilot
andauthored
Fix VerifySdist failure (Azure#42550)
* add tests for set_dev_version * fix issue with classification not updating. Co-authored-by: Copilot <[email protected]>
1 parent a7d9d94 commit d0d6eb9

File tree

21 files changed

+268
-46
lines changed

21 files changed

+268
-46
lines changed

.github/workflows/azure-sdk-tools.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v2
1515

16-
- name: Set up Python 3.11
16+
- name: Set up Python 3.13
1717
uses: actions/setup-python@v4
1818
with:
19-
python-version: 3.11
19+
python-version: 3.13
2020

2121
- name: Install azure-sdk-tools
2222
run: |

tools/azure-sdk-tools/ci_tools/versioning/version_set_dev.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020

2121
from ci_tools.variables import discover_repo_root
2222
from ci_tools.functions import process_requires
23+
from ci_tools.parsing import ParsedSetup
24+
25+
from typing import List
2326

2427
MAX_R_DIGITS = 3
2528

@@ -84,6 +87,9 @@ def version_set_dev_main() -> None:
8487
target_packages = get_packages(args, root_dir=root_dir)
8588
build_id = format_build_id(args.build_id)
8689

90+
set_dev_version(target_packages, build_id)
91+
92+
def set_dev_version(target_packages: List[ParsedSetup], build_id: str):
8793
if not target_packages:
8894
print("No packages found")
8995

tools/azure-sdk-tools/ci_tools/versioning/version_shared.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
VERSION_STRING = 'VERSION = "%s"'
2828

29-
DEV_STATUS_REGEX = r'(classifiers=\[(\s)*)(["\']Development Status :: .*["\'])'
29+
DEV_STATUS_REGEX = r'(classifiers\s*=\s*\[(\s)*)(["\']Development Status :: .*["\'])'
3030

3131
logging.getLogger().setLevel(logging.INFO)
3232

tools/azure-sdk-tools/tests/integration/scenarios/pyproject_project_def/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ authors = [
88
{name = "Microsoft Corporation", email = "[email protected]"}
99
]
1010
description = "Microsoft Azure Key Vault Keys Client Library for Python"
11-
requires-python = ">=3.7"
11+
requires-python = ">=3.8"
1212
license = {text = "MIT License"}
1313
classifiers = [
1414
"Development Status :: 5 - Production/Stable",
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This is an example of a package with all its metadata defined within the `[project]` setting of a `pyproject.toml`. This `pyproject.toml` file will not work with an actual build (none of the files/folders are present).
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# ------------------------------------
2+
# Copyright (c) Microsoft Corporation.
3+
# Licensed under the MIT License.
4+
# ------------------------------------
5+
# pylint:disable=missing-docstring
6+
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# ------------------------------------
2+
# Copyright (c) Microsoft Corporation.
3+
# Licensed under the MIT License.
4+
# ------------------------------------
5+
# pylint:disable=missing-docstring
6+
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# ------------------------------------
2+
# Copyright (c) Microsoft Corporation.
3+
# Licensed under the MIT License.
4+
# -------------------------------------
5+
6+
from ._version import VERSION
7+
8+
__version__ = VERSION
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# ------------------------------------
2+
# Copyright (c) Microsoft Corporation.
3+
# Licensed under the MIT License.
4+
# ------------------------------------
5+
6+
VERSION = "0.0.1b1"

tools/azure-sdk-tools/tests/integration/scenarios/pyproject_project_def_beta/azure/keyvault/keys/py.typed

Whitespace-only changes.

0 commit comments

Comments
 (0)