Skip to content

Commit

Permalink
Normalize the package name to lowercase in setuptools migration script
Browse files Browse the repository at this point in the history
  • Loading branch information
ofek committed Jul 3, 2022
1 parent fa44364 commit 00bf485
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/history.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
***Fixed:***

- Use `utf-8` for all files generated for new projects
- Normalize the package name to lowercase in `setuptools` migration script

### [1.2.1](https://github.com/pypa/hatch/releases/tag/hatch-v1.2.1) - 2022-05-30 ### {: #hatch-v1.2.1 }

Expand Down
2 changes: 1 addition & 1 deletion src/hatch/cli/new/migrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def setup(**kwargs):
project_name = name.replace('_', '-')
package_name = package_path = package_source = sorted(kwargs.get('packages') or [name.replace('-', '_')])[0].split(
'.'
)[0]
)[0].lower()

project_metadata['name'] = project_name

Expand Down

0 comments on commit 00bf485

Please sign in to comment.