@@ -37,9 +37,9 @@ bazel_skylib_workspace()
3737
3838http_archive (
3939 name = "rules_python" ,
40- sha256 = "497ca47374f48c8b067d786b512ac10a276211810f4a580178ee9b9ad139323a " ,
41- strip_prefix = "rules_python-0.16.1 " ,
42- url = "https://github.com/bazelbuild/rules_python/archive/refs/tags/0.16.1 .tar.gz" ,
40+ sha256 = "a644da969b6824cc87f8fe7b18101a8a6c57da5db39caa6566ec6109f37d2141 " ,
41+ strip_prefix = "rules_python-0.20.0 " ,
42+ url = "https://github.com/bazelbuild/rules_python/releases/download/0.20.0/rules_python-0.20.0 .tar.gz" ,
4343)
4444
4545load ("@rules_python//python:repositories.bzl" , "python_register_multi_toolchains" )
@@ -53,10 +53,12 @@ python_register_multi_toolchains(
5353 "3.8" ,
5454 "3.9" ,
5555 "3.10" ,
56+ "3.11"
5657 ],
5758)
5859
5960load ("@python//:pip.bzl" , "multi_pip_parse" )
61+ load ("@python//3.11:defs.bzl" , interpreter_3_11 = "interpreter" )
6062load ("@python//3.10:defs.bzl" , interpreter_3_10 = "interpreter" )
6163load ("@python//3.9:defs.bzl" , interpreter_3_9 = "interpreter" )
6264load ("@python//3.8:defs.bzl" , interpreter_3_8 = "interpreter" )
@@ -65,11 +67,13 @@ multi_pip_parse(
6567 name = "py_dev_requirements" ,
6668 default_version = default_python_version ,
6769 python_interpreter_target = {
70+ "3.11" : interpreter_3_11 ,
6871 "3.10" : interpreter_3_10 ,
6972 "3.9" : interpreter_3_9 ,
7073 "3.8" : interpreter_3_8 ,
7174 },
7275 requirements_lock = {
76+ "3.11" :"//py:requirements_lock.txt" ,
7377 "3.10" : "//py:requirements_lock.txt" ,
7478 "3.9" : "//py:requirements_lock.txt" ,
7579 "3.8" : "//py:requirements_lock.txt" ,
0 commit comments