Normalize the package name as found in the convention in older packaging tools versions and specs.
(name)
| 857 | |
| 858 | @staticmethod |
| 859 | def legacy_normalize(name): |
| 860 | """ |
| 861 | Normalize the package name as found in the convention in |
| 862 | older packaging tools versions and specs. |
| 863 | """ |
| 864 | return name.lower().replace('-', '_') |
| 865 | |
| 866 | def __bool__(self): |
| 867 | return bool(self.name) |