Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ jobs:
echo "APPDATA: $env:APPDATA"
echo "TEMP: $env:TEMP"

powershell -Command "New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem' -Name 'LongPathsEnabled' -Value 1 -PropertyType DWORD -Force"
powershell -Command "Get-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem' | Select-Object LongPathsEnabled"


steps:
- name: "node-cleanup"
if: runner.os != 'Windows'
Expand Down
10 changes: 5 additions & 5 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ module(
)

bazel_dep(name = "bazel_skylib", version = "1.9.0")
bazel_dep(name = "platforms", version = "1.0.0")
bazel_dep(name = "rules_cc", version = "0.2.17")
bazel_dep(name = "platforms", version = "1.1.0")
bazel_dep(name = "rules_cc", version = "0.2.18")
bazel_dep(name = "rules_multitool", version = "1.11.1")
bazel_dep(name = "rules_python", version = "1.9.0")
bazel_dep(name = "rules_shell", version = "0.7.1")
bazel_dep(name = "rules_rust", version = "0.69.0")
bazel_dep(name = "rules_python", version = "2.0.1")
bazel_dep(name = "rules_rust", version = "0.70.0")
bazel_dep(name = "rules_shell", version = "0.8.0")

python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.defaults(python_version = "3.13")
Expand Down
4 changes: 3 additions & 1 deletion examples/integration_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ if [[ -n "$WINDIR" ]] && ! grep -qE "^startup --(no)?windows_enable_symlinks$" .
exit 0
fi

[ -n "$WINDIR" ] && STARTUP_ARGS="--output_user_root=C:/b"

ARGS="--test_output=errors --spawn_strategy=local --verbose_failures"
ARGS="$ARGS --override_repository=ofiuco=$BUILD_WORKSPACE_DIRECTORY"
ARGS="$ARGS --experimental_ui_max_stdouterr_bytes=8388608"
ARGS="$ARGS --incompatible_autoload_externally="
[ -f MODULE.bazel ] && ARGS="$ARGS --override_module=ofiuco=$BUILD_WORKSPACE_DIRECTORY"

echo "Using $(bazelisk version)"
bazelisk test ... $ARGS
bazelisk $STARTUP_ARGS test ... $ARGS
8 changes: 4 additions & 4 deletions examples/numpy/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ alias(
name = "numpy",
actual = select({
# Update numpy references after "bazel run :lock -- --regenerate" from poetry.lock
":linux_aarch64": "@numpy-2.4.3-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64//:lib",
":linux_x86_64": "@numpy-2.4.3-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64//:lib",
":osx_aarch64": "@numpy-2.4.3-cp313-cp313-macosx_14_0_arm64//:lib",
":windows_x86_64": "@numpy-2.4.3-cp313-cp313-win_amd64//:lib",
":linux_aarch64": "@numpy-2.4.6-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64//:lib",
":linux_x86_64": "@numpy-2.4.6-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64//:lib",
":osx_aarch64": "@numpy-2.4.6-cp313-cp313-macosx_14_0_arm64//:lib",
":windows_x86_64": "@numpy-2.4.6-cp313-cp313-win_amd64//:lib",
}),
)

Expand Down
14 changes: 7 additions & 7 deletions examples/numpy/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
bazel_dep(name = "bazel_skylib", version = "1.9.0")
bazel_dep(name = "catch2", version = "3.13.0")
bazel_dep(name = "fmt", version = "12.1.0")
bazel_dep(name = "platforms", version = "1.0.0")
bazel_dep(name = "rules_cc", version = "0.2.17")
bazel_dep(name = "rules_python", version = "1.9.0")
bazel_dep(name = "platforms", version = "1.1.0")
bazel_dep(name = "rules_cc", version = "0.2.18")
bazel_dep(name = "rules_python", version = "2.0.1")

python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(python_version = "3.13")
Expand Down Expand Up @@ -42,10 +42,10 @@ cc_library(
use_repo(parse, "poetry")

# Update numpy references after "bazel run :lock -- --regenerate" from poetry.lock
use_repo(parse, "numpy-2.4.3-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64")
use_repo(parse, "numpy-2.4.3-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64")
use_repo(parse, "numpy-2.4.3-cp313-cp313-macosx_14_0_arm64")
use_repo(parse, "numpy-2.4.3-cp313-cp313-win_amd64")
use_repo(parse, "numpy-2.4.6-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64")
use_repo(parse, "numpy-2.4.6-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64")
use_repo(parse, "numpy-2.4.6-cp313-cp313-macosx_14_0_arm64")
use_repo(parse, "numpy-2.4.6-cp313-cp313-win_amd64")

git_repository = use_repo_rule("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")

Expand Down
168 changes: 84 additions & 84 deletions examples/numpy/poetry.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions python/extensions.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def _parse_impl(mctx):
commit = file["commit"],
init_submodules = True,
build_file_content = build_file,
patch_cmds = file["patch_cmds"],
)

parse = module_extension(
Expand Down
1 change: 1 addition & 0 deletions python/private/lock_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,7 @@ async def read_package_files(package):
name=package.name,
remote=package.source.url,
commit=package.source.resolved_reference or package.source.reference,
patch_cmds=["find src \\( -name BUILD -o -name BUILD.bazel \\) -delete || true"],
build_file=build_file.format(kind="pkg", sub=sub),
)
]
Expand Down
6 changes: 3 additions & 3 deletions python/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ _PACKAGES_ENDPOINT = "https://files.pythonhosted.org/packages/"
_INTERNAL_DEPS = [
(
"pip",
_PACKAGES_ENDPOINT + "de/f0/c81e05b613866b76d2d1066490adf1a3dbc4ee9d9c839961c3fc8a6997af/pip-26.0.1-py3-none-any.whl",
"bdb1b08f4274833d62c1aa29e20907365a2ceb950410df15fc9521bad440122b",
_PACKAGES_ENDPOINT + "3a/eb/fea4d1d51c49832120f7f285d07306db3960f423a2612c6057caf3e8196f/pip-26.1.1-py3-none-any.whl",
"99cb1c2899893b075ff56e4ed0af55669a955b49ad7fb8d8603ecdaf4ed653fb",
["@ofiuco//python:patches/scripts_executable.patch"],
),
]

_POETRY_VERSION = "2.3.2"
_POETRY_VERSION = "2.4.1"

def _poetry_deps_repo_impl(rctx):
interpreter = rctx.path(rctx.attr.python_host)
Expand Down
Loading