| # Copyright 2024 Google LLC |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); |
| # you may not use this file except in compliance with the License. |
| # You may obtain a copy of the License at |
| # |
| # https://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| |
| module( |
| name = "federated_language", |
| version = "0.5.2", |
| compatibility_level = 0, |
| ) |
| |
| # Dependencies |
| bazel_dep(name = "protobuf", version = "29.0") |
| bazel_dep(name = "rules_license", version = "1.0.0") |
| bazel_dep(name = "rules_python", version = "1.0.0") |
| |
| bazel_dep(name = "rules_shell", version = "0.5.1", dev_dependency = True) |
| |
| # Python Toolchain |
| python = use_extension("@rules_python//python/extensions:python.bzl", "python") |
| python.toolchain( |
| python_version = "3.9", |
| ) |
| python.toolchain( |
| python_version = "3.10", |
| ) |
| python.toolchain( |
| python_version = "3.11", |
| ) |
| python.toolchain( |
| is_default = True, |
| python_version = "3.12", |
| ) |
| python.toolchain( |
| python_version = "3.13", |
| ) |
| use_repo(python, python = "python_versions") |
| |
| # Python Dependencies |
| pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip") |
| pip.parse( |
| hub_name = "federated_language_pypi", |
| python_version = "3.9", |
| requirements_lock = "//:requirements_lock_3_9.txt", |
| ) |
| pip.parse( |
| hub_name = "federated_language_pypi", |
| python_version = "3.10", |
| requirements_lock = "//:requirements_lock_3_10.txt", |
| ) |
| pip.parse( |
| hub_name = "federated_language_pypi", |
| python_version = "3.11", |
| requirements_lock = "//:requirements_lock_3_11.txt", |
| ) |
| pip.parse( |
| hub_name = "federated_language_pypi", |
| python_version = "3.12", |
| requirements_lock = "//:requirements_lock_3_12.txt", |
| ) |
| pip.parse( |
| hub_name = "federated_language_pypi", |
| python_version = "3.13", |
| requirements_lock = "//:requirements_lock_3_13.txt", |
| ) |
| use_repo(pip, "federated_language_pypi") |