|
| 1 | +module( |
| 2 | + name = "score_platform", |
| 3 | + version = "0.1", |
| 4 | + compatibility_level = 0, |
| 5 | +) |
| 6 | + |
| 7 | +############################################################################### |
| 8 | +# |
| 9 | +# Python version |
| 10 | +# |
| 11 | +############################################################################### |
| 12 | +bazel_dep(name = "rules_python", version = "0.37.2") |
| 13 | + |
| 14 | +PYTHON_VERSION = "3.12" |
| 15 | + |
| 16 | +python = use_extension("@rules_python//python/extensions:python.bzl", "python") |
| 17 | +python.toolchain( |
| 18 | + is_default = True, |
| 19 | + python_version = PYTHON_VERSION, |
| 20 | +) |
| 21 | +use_repo(python) |
| 22 | + |
| 23 | +############################################################################### |
| 24 | +# |
| 25 | +# pip dependencies |
| 26 | +# |
| 27 | +############################################################################### |
| 28 | +pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip") |
| 29 | +pip.parse( |
| 30 | + hub_name = "pip_sphinx", |
| 31 | + python_version = PYTHON_VERSION, |
| 32 | + requirements_lock = "//docs:requirements_lock.txt", |
| 33 | +) |
| 34 | +use_repo(pip, "pip_sphinx") |
| 35 | + |
| 36 | +############################################################################### |
| 37 | +# |
| 38 | +# Packaging dependencies |
| 39 | +# |
| 40 | +############################################################################### |
| 41 | +bazel_dep(name = "rules_pkg", version = "1.0.1") |
| 42 | + |
| 43 | +############################################################################### |
| 44 | +# |
| 45 | +# Buildifier dependency |
| 46 | +# Provides formatting and linting of Bazel files. |
| 47 | +# |
| 48 | +############################################################################### |
| 49 | +bazel_dep(name = "buildifier_prebuilt", version = "7.3.1") |
| 50 | + |
| 51 | +############################################################################### |
| 52 | +# |
| 53 | +# Generic linting and formatting rules |
| 54 | +# |
| 55 | +############################################################################### |
| 56 | +bazel_dep(name = "aspect_rules_lint", version = "1.0.3") |
0 commit comments