Skip to content

Commit

Permalink
Merge pull request #40 from rohaquinlop/issue-39
Browse files Browse the repository at this point in the history
feat(build): #39 upgrade bazel rules_python
  • Loading branch information
rohaquinlop committed Jul 19, 2024
2 parents 9a134c1 + a5fe77e commit c369715
Show file tree
Hide file tree
Showing 20 changed files with 589 additions and 430 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ automathon/errors/__pycache__/
build/
.idea/
bazel-*
.pytest_cache/
File renamed without changes.
24 changes: 18 additions & 6 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
###############################################################################
# Bazel now uses Bzlmod by default to manage external dependencies.
# Please consider migrating your external dependencies from WORKSPACE to MODULE.bazel.
#
# For more details, please check https://github.com/bazelbuild/bazel/issues/18958
###############################################################################
"""
Bazel build file for the Python module.
Imports the `rules_python` dependency and the `pip` extension from the
`rules_python` repository.
"""

bazel_dep(name = "rules_python", version = "0.34.0")

pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")

pip.parse(
hub_name = "pip",
python_version = "3.11",
requirements_lock = "//:requirements.txt",
)

use_repo(pip, "pip")
Loading

0 comments on commit c369715

Please sign in to comment.