|
16 | 16 |
|
17 | 17 | load("@bazel_features//:features.bzl", "bazel_features") |
18 | 18 | load("@pythons_hub//:interpreters.bzl", "INTERPRETER_LABELS") |
| 19 | +load("@pythons_hub//:versions.bzl", "MINOR_MAPPING") |
19 | 20 | load("//python/private:auth.bzl", "AUTH_ATTRS") |
| 21 | +load("//python/private:full_version.bzl", "full_version") |
20 | 22 | load("//python/private:normalize_name.bzl", "normalize_name") |
21 | 23 | load("//python/private:repo_utils.bzl", "repo_utils") |
22 | 24 | load("//python/private:semver.bzl", "semver") |
@@ -68,6 +70,7 @@ def _create_whl_repos( |
68 | 70 | pip_attr, |
69 | 71 | whl_overrides, |
70 | 72 | available_interpreters = INTERPRETER_LABELS, |
| 73 | + minor_mapping = MINOR_MAPPING, |
71 | 74 | get_index_urls = None): |
72 | 75 | """create all of the whl repositories |
73 | 76 |
|
@@ -159,8 +162,10 @@ def _create_whl_repos( |
159 | 162 | requirements_osx = pip_attr.requirements_darwin, |
160 | 163 | requirements_windows = pip_attr.requirements_windows, |
161 | 164 | extra_pip_args = pip_attr.extra_pip_args, |
162 | | - # TODO @aignas 2025-04-15: pass the full version into here |
163 | | - python_version = major_minor, |
| 165 | + python_version = full_version( |
| 166 | + version = pip_attr.python_version, |
| 167 | + minor_mapping = minor_mapping, |
| 168 | + ), |
164 | 169 | logger = logger, |
165 | 170 | ), |
166 | 171 | extra_pip_args = pip_attr.extra_pip_args, |
@@ -304,9 +309,6 @@ def _whl_repos(*, requirement, whl_library_args, download_only, netrc, auth_patt |
304 | 309 | if requirement.extra_pip_args: |
305 | 310 | args["extra_pip_args"] = requirement.extra_pip_args |
306 | 311 |
|
307 | | - if download_only: |
308 | | - args.setdefault("experimental_target_platforms", requirement.target_platforms) |
309 | | - |
310 | 312 | target_platforms = requirement.target_platforms if multiple_requirements_for_whl else [] |
311 | 313 | repo_name = pypi_repo_name( |
312 | 314 | normalize_name(requirement.distribution), |
|
0 commit comments