Skip to content

Commit

Permalink
🐛 fix name normalization
Browse files Browse the repository at this point in the history
Signed-off-by: rjdbcm <[email protected]>
  • Loading branch information
rjdbcm committed Jul 3, 2024
1 parent b0ec73b commit 1974a37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ozi/new/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def postprocess_arguments(project: Namespace) -> Namespace:
verify=project.verify_email,
)
project.keywords = project.keywords.split(',')
project.name = re.sub(r'[-_.]+', '-', project.name).lower()
project.name = re.sub(r'[-_.]+', '-', project.name)
project.target = Path(project.target)
project.topic = list(set(project.topic))
project.dist_requires = list(set(project.dist_requires))
Expand Down Expand Up @@ -152,7 +152,7 @@ def main(args: list[str] | None = None) -> None: # pragma: no cover
else args
)
ozi_new = parser.parse_args(args=args)
ozi_new.argv = args if args else shlex.join(sys.argv[1:])
ozi_new.argv = shlex.join(args) if args else shlex.join(sys.argv[1:])
match ozi_new:
case ozi_new if ozi_new.new in ['i', 'interactive']:
args = interactive_prompt(ozi_new)
Expand Down

0 comments on commit 1974a37

Please sign in to comment.