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
This repository was archived by the owner on Jul 21, 2021. It is now read-only.

Commit fa77c9c

Browse filesBrowse files
authored
Merge pull request bazel-contrib#11 from mattmoor/lowercase
Allow any capitalization in requirement names.
2 parents 22260b5 + 6797d26 commit fa77c9c
Copy full SHA for fa77c9c

File tree

Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed

‎rules_python/piptool.py

Copy file name to clipboardExpand all lines: rules_python/piptool.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,12 @@ def pip_install():
141141
all_requirements = _requirements.values()
142142
143143
def requirement(name):
144-
name = name.replace("-", "_")
144+
name = name.replace("-", "_").lower()
145145
return _requirements[name]
146146
""".format(input=args.input,
147147
whl_libraries='\n'.join(map(whl_library, whls)),
148148
mappings=','.join([
149-
'"%s": "@%s//:pkg"' % (wheel.distribution(), wheel.repository_name())
149+
'"%s": "@%s//:pkg"' % (wheel.distribution().lower(), wheel.repository_name())
150150
for wheel in whls
151151
])))
152152

‎tools/piptool.par

Copy file name to clipboard
21 Bytes
Binary file not shown.

0 commit comments

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