8000 Support "+" in package versions. · scarito1/rules_python@625587b · GitHub
[go: up one dir, main page]

Skip to content

Commit 625587b

Browse files
calderccoalson-sx
authored andcommitted
Support "+" in package versions.
1 parent 115e3a0 commit 625587b

File tree

3 files changed

+1
-1
lines changed

3 files changed

+1
-1
lines changed

rules_python/whl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def repository_name(self):
4646
# Returns the canonical name of the Bazel repository for this package.
4747
canonical = 'pypi__{}_{}'.format(self.distribution(), self.version())
4848
# Escape any illegal characters with underscore.
49-
return re.sub('[-.]', '_', canonical)
49+
return re.sub('[-.\+]', '_', canonical)
5050

5151
def _dist_info(self):
5252
# Return the name of the dist-info directory within the .whl file.

tools/piptool.par

2 Bytes
Binary file not shown.

tools/whltool.par

4 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)
0