Normalize the package name as found in the convention in older packaging tools versions and specs.
(name)
| 970 | |
| 971 | @staticmethod |
| 972 | def legacy_normalize(name): |
| 973 | """ |
| 974 | Normalize the package name as found in the convention in |
| 975 | older packaging tools versions and specs. |
| 976 | """ |
| 977 | return name.lower().replace('-', '_') |
| 978 | |
| 979 | def __bool__(self): |
| 980 | return bool(self.name) |