Skip to content

Commit eebd0e7

Browse files
authored
Point to correct Python version when running Update and Resolve dependencies (#22179)
1 parent 9a91565 commit eebd0e7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.builders/tests/test_upload.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,9 +368,9 @@ def test_lockfile_generation(tmp_path, setup_targets_dir):
368368
lock_files = list(fake_resolved_dir.glob("*.txt"))
369369
assert lock_files, "No lock files generated"
370370
lockfile_map = {lock_file.name: lock_file.read_text().strip() for lock_file in lock_files}
371-
linux_x86_64_lockfile = lockfile_map["linux-x86_64_3.12.txt"]
371+
linux_x86_64_lockfile = lockfile_map[f"linux-x86_64_{upload.CURRENT_PYTHON_VERSION}.txt"]
372372
assert linux_x86_64_lockfile == f'existing @ https://agent-int-packages.datadoghq.com/built/existing/existing-1.1.1-{frozen_timestamp}-cp312-cp312-manylinux2010_x86_64.whl#sha256=built-hash'
373-
linux_aarch64_lockfile = lockfile_map["linux-aarch64_3.12.txt"]
373+
linux_aarch64_lockfile = lockfile_map[f"linux-aarch64_{upload.CURRENT_PYTHON_VERSION}.txt"]
374374
assert linux_aarch64_lockfile == f'existing @ https://agent-int-packages.datadoghq.com/built/existing/existing-1.1.1-{frozen_timestamp}-cp312-cp312-manylinux2010_aarch64.whl#sha256=built-hash'
375375
assert len(lock_files) == 2
376376

.builders/upload.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
CACHE_CONTROL = 'public, max-age=15'
2626
VALID_PROJECT_NAME = re.compile(r'^([A-Z0-9]|[A-Z0-9][A-Z0-9._-]*[A-Z0-9])$', re.IGNORECASE)
2727
UNNORMALIZED_PROJECT_NAME_CHARS = re.compile(r'[-_.]+')
28-
CURRENT_PYTHON_VERSION = "3.12"
28+
CURRENT_PYTHON_VERSION = "3.13"
2929

3030
def is_valid_project_name(project_name: str) -> bool:
3131
# https://peps.python.org/pep-0508/#names

0 commit comments

Comments
 (0)