Skip to content

Commit

Permalink
Update rules_pycross to 0.7.1 (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
lalten authored Jan 25, 2025
1 parent 82928c7 commit f8fd614
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.x
8.x
6 changes: 4 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,11 @@ jobs:
- run: echo "common ${{ matrix.flags }}" >> .bazelrc

# Don't want to bother with hundreds of lines of Workspace setup for the rules_pycross compat test
# Also, ignore https://github.com/jvolkman/rules_pycross/issues/128
- if: matrix.external_dependency_system == 'workspace' || matrix.os == 'macos' || matrix.bazel-version == '8.x'
- if: matrix.external_dependency_system == 'workspace' || matrix.os == 'macos' || matrix.bazel-version == '6.x'
run: echo "tests/rules_pycross" >> .bazelignore
# Work around https://github.com/jvolkman/rules_pycross/issues/147
- if: matrix.bazel-version == '6.x'
run: sed -i.bak 's/"rules_pycross", version = "0.7.1"/"rules_pycross", version = "0.6.1"/' MODULE.bazel
- run: bazel test //...
examples:
runs-on: ubuntu-latest
Expand Down
5 changes: 3 additions & 2 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ use_repo(

register_toolchains("//appimage:all")

_DEFAULT_PYTHON = "3.13"
# 3.13 is blocked by https://github.com/jvolkman/rules_pycross/issues/128
_DEFAULT_PYTHON = "3.12"

python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
Expand All @@ -46,7 +47,7 @@ use_repo(dev_pip, "rules_appimage_py_deps")

bazel_dep(name = "container_structure_test", version = "1.19.1", dev_dependency = True)
bazel_dep(name = "rules_oci", version = "2.2.0", dev_dependency = True)
bazel_dep(name = "rules_pycross", version = "0.6.1", dev_dependency = True)
bazel_dep(name = "rules_pycross", version = "0.7.1", dev_dependency = True)
bazel_dep(name = "rules_pkg", version = "1.0.1", dev_dependency = True)

lock_import = use_extension("@rules_pycross//pycross/extensions:lock_import.bzl", "lock_import", dev_dependency = True)
Expand Down

0 comments on commit f8fd614

Please sign in to comment.