@@ -13,36 +13,43 @@ bazel_dep(name = "rules_python_gazelle_plugin", version = "1.5.1")
1313
1414python = use_extension ("@rules_python//python/extensions:python.bzl" , "python" )
1515
16+
1617python .toolchain (
1718 is_default = True ,
1819 configure_coverage_tool = True ,
1920 python_version = "3.9" ,
2021)
22+ python .toolchain (python_version = "3.10" )
23+ python .toolchain (python_version = "3.11" )
24+ python .toolchain (python_version = "3.12" )
2125
2226use_repo (python , "python_versions" )
2327
28+ uv = use_extension ("@rules_python//python/uv:uv.bzl" , "uv" )
29+ uv .configure (version = "0.8.24" )
30+
2431bazel_dep (name = "googletest" , version = "1.13.0" )
2532bazel_dep (name = "trlc" , version = "0.0.0" )
2633
2734pip = use_extension ("@rules_python//python/extensions:pip.bzl" , "pip" )
2835
29- pip .parse (
30- hub_name = "lobster_dependencies" ,
31- python_version = "3.12" ,
32- requirements_lock = "//:requirements.txt" ,
33- )
34-
35- pip .parse (
36- hub_name = "pip" ,
37- python_version = "3.9" ,
38- requirements_lock = "//:requirements_lock_3_9.txt" ,
39- requirements_windows = "//:requirements_windows_3_9.txt" ,
40- )
41-
42- use_repo (pip , "pip" )
36+ [
37+ pip .parse (
38+ hub_name = "lobster_pip_hub_dependencies" ,
39+ envsubst = ["PIP_INDEX_URL" ],
40+ # For all .whl artifacts use the Bazel downloader, allowing caching of artifacts.
41+ # Also, the Bazel download approach is supposed to be faster and on top offers parallel downloading.
42+ # For sdist packages this will fall back automatically to 'python -m pip --isolated wheel ..', unless we set 'download_only = True'.
43+ experimental_index_url = "${PIP_INDEX_URL:-https://pypi.org/simple}" ,
44+ python_version = "3.{}" .format (version ),
45+ requirements_lock = "//:requirements_lock.txt" .format (version ),
46+ )
47+ for version in ["9" , "10" , "11" , "12" ]
48+ ]
49+
50+ use_repo (pip , "lobster_pip_hub_dependencies" )
4351
4452bazel_dep (name = "gazelle" , version = "0.44.0" , repo_name = "bazel_gazelle" )
45- use_repo (python , "python_3_9" )
4653
4754git_override (
4855 commit = "650b51a47264a4f232b3341f473527710fc32669" ,
0 commit comments