File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ python.toolchain(
27
27
is_default = True ,
28
28
python_version = "3.12" ,
29
29
)
30
+ python .toolchain (python_version = "3.13" )
30
31
31
32
pip = use_extension ("@rules_python//python/extensions:pip.bzl" , "pip" , dev_dependency = True )
32
33
pip .parse (
Original file line number Diff line number Diff line change @@ -92,16 +92,10 @@ def copy_extensions_to_source(self):
92
92
def bazel_build (self , ext : BazelExtension ) -> None :
93
93
"""Runs the bazel build to create the package."""
94
94
temp_path = Path (self .build_temp )
95
- if py_limited_api :
96
- # We only need to know the minimum ABI version,
97
- # since it is stable across minor versions by definition.
98
- # The value here is calculated as the minimum of a) the minimum
99
- # Python version required, and b) the stable ABI version target.
100
- # NB: This needs to be kept in sync with [project.requires-python]
101
- # in pyproject.toml.
102
- python_version = "3.12"
103
- else :
104
- python_version = "{0}.{1}" .format (* sys .version_info [:2 ])
95
+
96
+ # We round to the minor version, which makes rules_python
97
+ # look up the latest available patch version internally.
98
+ python_version = "{0}.{1}" .format (* sys .version_info [:2 ])
105
99
106
100
bazel_argv = [
107
101
"bazel" ,
You can’t perform that action at this time.
0 commit comments