Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2c29f40

Browse filesBrowse files
authored
Fix hyphen in requirement didn't work with bzlmod (bazel-contrib#952) (bazel-contrib#957)
1 parent 7262403 commit 2c29f40
Copy full SHA for 2c29f40

File tree

5 files changed

+13
-3
lines changed
Filter options

5 files changed

+13
-3
lines changed

‎examples/bzlmod/BUILD.bazel

Copy file name to clipboardExpand all lines: examples/bzlmod/BUILD.bazel
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ py_library(
1616
deps = [
1717
requirement("pylint"),
1818
requirement("tabulate"),
19+
requirement("python-dateutil"),
1920
],
2021
)
2122

‎examples/bzlmod/requirements.in

Copy file name to clipboardExpand all lines: examples/bzlmod/requirements.in
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ s3cmd~=2.1.0
33
yamllint>=1.28.0
44
tabulate~=0.9.0
55
pylint~=2.15.5
6+
python-dateutil>=2.8.2

‎examples/bzlmod/requirements_lock.txt

Copy file name to clipboardExpand all lines: examples/bzlmod/requirements_lock.txt
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ pylint==2.15.9 \
6868
python-dateutil==2.8.2 \
6969
--hash=sha256:0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86 \
7070
--hash=sha256:961d03dc3453ebbc59dbdea9e4e11c5651520a876d0f4db161e8674aae935da9
71-
# via s3cmd
71+
# via
72+
# -r ./requirements.in
73+
# s3cmd
7274
python-magic==0.4.27 \
7375
--hash=sha256:c1ba14b08e4a5f5c31a302b7721239695b2f0f058d125bd5ce1ee36b9d9d3c3b \
7476
--hash=sha256:c212960ad306f700aa0d01e5d7a325d20548ff97eb9920dcd29513174f0294d3

‎examples/bzlmod/requirements_windows.txt

Copy file name to clipboardExpand all lines: examples/bzlmod/requirements_windows.txt
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ pylint==2.15.9 \
7272
python-dateutil==2.8.2 \
7373
--hash=sha256:0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86 \
7474
--hash=sha256:961d03dc3453ebbc59dbdea9e4e11c5651520a876d0f4db161e8674aae935da9
75-
# via s3cmd
75+
# via
76+
# -r ./requirements.in
77+
# s3cmd
7678
python-magic==0.4.27 \
7779
--hash=sha256:c1ba14b08e4a5f5c31a302b7721239695b2f0f058d125bd5ce1ee36b9d9d3c3b \
7880
--hash=sha256:c212960ad306f700aa0d01e5d7a325d20548ff97eb9920dcd29513174f0294d3

‎python/pip_install/pip_repository.bzl

Copy file name to clipboardExpand all lines: python/pip_install/pip_repository.bzl
+5-1Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,11 @@ alias(
287287
name = "{name}_dist_info",
288288
actual = "@{repo_prefix}{dep}//:dist_info",
289289
)
290-
""".format(name = _clean_pkg_name(requirement[0]), repo_prefix = rctx.attr.repo_prefix, dep = requirement[0])
290+
""".format(
291+
name = _clean_pkg_name(requirement[0]),
292+
repo_prefix = rctx.attr.repo_prefix,
293+
dep = _clean_pkg_name(requirement[0]),
294+
)
291295

292296
return build_content
293297

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.