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
1 change: 1 addition & 0 deletions examples/bzlmod/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ py_library(
deps = [
requirement("pylint"),
requirement("tabulate"),
requirement("python-dateutil"),
],
)

Expand Down
1 change: 1 addition & 0 deletions examples/bzlmod/requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ s3cmd~=2.1.0
yamllint>=1.28.0
tabulate~=0.9.0
pylint~=2.15.5
python-dateutil>=2.8.2
4 changes: 3 additions & 1 deletion examples/bzlmod/requirements_lock.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ pylint==2.15.9 \
python-dateutil==2.8.2 \
--hash=sha256:0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86 \
--hash=sha256:961d03dc3453ebbc59dbdea9e4e11c5651520a876d0f4db161e8674aae935da9
# via s3cmd
# via
# -r ./requirements.in
# s3cmd
python-magic==0.4.27 \
--hash=sha256:c1ba14b08e4a5f5c31a302b7721239695b2f0f058d125bd5ce1ee36b9d9d3c3b \
--hash=sha256:c212960ad306f700aa0d01e5d7a325d20548ff97eb9920dcd29513174f0294d3
Expand Down
4 changes: 3 additions & 1 deletion examples/bzlmod/requirements_windows.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ pylint==2.15.9 \
python-dateutil==2.8.2 \
--hash=sha256:0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86 \
--hash=sha256:961d03dc3453ebbc59dbdea9e4e11c5651520a876d0f4db161e8674aae935da9
# via s3cmd
# via
# -r ./requirements.in
# s3cmd
python-magic==0.4.27 \
--hash=sha256:c1ba14b08e4a5f5c31a302b7721239695b2f0f058d125bd5ce1ee36b9d9d3c3b \
--hash=sha256:c212960ad306f700aa0d01e5d7a325d20548ff97eb9920dcd29513174f0294d3
Expand Down
6 changes: 5 additions & 1 deletion python/pip_install/pip_repository.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,11 @@ alias(
name = "{name}_dist_info",
actual = "@{repo_prefix}{dep}//:dist_info",
)
""".format(name = _clean_pkg_name(requirement[0]), repo_prefix = rctx.attr.repo_prefix, dep = requirement[0])
""".format(
name = _clean_pkg_name(requirement[0]),
repo_prefix = rctx.attr.repo_prefix,
dep = _clean_pkg_name(requirement[0]),
)

return build_content

Expand Down