-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
also regenerate `uv.lock` for e2e-tests with the following command: uvx --from="uv==0.4.0" uv lock
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
""" | ||
uv has introduced a special `virtual` tag for packages. | ||
This change was introduced in the following PR: | ||
https://github.com/astral-sh/uv/pull/6728 | ||
This PR was contained in the following release: | ||
https://github.com/astral-sh/uv/releases/tag/0.4.0 | ||
""" | ||
|
||
load("@aspect_bazel_lib//lib:testing.bzl", "assert_json_matches") | ||
load("@aspect_bazel_lib//lib:write_source_files.bzl", "write_source_file") | ||
load("//pycross:defs.bzl", "pycross_uv_lock_model") | ||
|
||
pycross_uv_lock_model( | ||
name = "lock", | ||
lock_file = "uv.lock", | ||
project_file = "pyproject.toml", | ||
) | ||
|
||
write_source_file( | ||
name = "update_expected", | ||
diff_test = False, | ||
in_file = ":lock", | ||
out_file = "expected.json", | ||
) | ||
|
||
assert_json_matches( | ||
name = "test", | ||
file1 = ":lock", | ||
file2 = "expected.json", | ||
) |