Skip to content

Commit

Permalink
Make sure we use a canonical name for all packages and references to …
Browse files Browse the repository at this point in the history
…packages in requirements

Signed-off-by: Jean-Christophe Morin <[email protected]>
  • Loading branch information
JeanChristopheMorinPerso committed Oct 14, 2023
1 parent 9c61a5d commit bf755aa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
name: test

on:
push:
paths-ignore:
- .github/workflows/update_pip.yaml
- docs/**
- .readthedocs.yaml
pull_request:
paths-ignore:
- .github/workflows/update_pip.yaml
Expand Down
2 changes: 1 addition & 1 deletion src/rez_pip/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def pythontDistributionNameToRez(name: str) -> str:
:param name: Distribution name to convert.
:returns: Rez-compatible package name.
"""
return name.replace("-", "_")
return name.replace("-", "_").replace(".", "_").lower()


def pythonDistributionVersionToRez(version: str) -> str:
Expand Down

0 comments on commit bf755aa

Please sign in to comment.