@@ -218,8 +218,8 @@ def __init__(
218218 platform ,
219219 outfile = None ,
220220 strip_path_prefixes = None ,
221- incompatible_normalize_name = False ,
222- incompatible_normalize_version = False ,
221+ incompatible_normalize_name = True ,
222+ incompatible_normalize_version = True ,
223223 ):
224224 self ._name = name
225225 self ._version = version
@@ -460,8 +460,10 @@ def parse_args() -> argparse.Namespace:
460460 )
461461
462462 feature_group = parser .add_argument_group ("Feature flags" )
463- feature_group .add_argument ("--incompatible_normalize_name" , action = "store_true" )
464- feature_group .add_argument ("--incompatible_normalize_version" , action = "store_true" )
463+ feature_group .add_argument ("--noincompatible_normalize_name" , action = "store_true" )
464+ feature_group .add_argument (
465+ "--noincompatible_normalize_version" , action = "store_true"
466+ )
465467
466468 return parser .parse_args (sys .argv [1 :])
467469
@@ -519,8 +521,8 @@ def main() -> None:
519521 platform = arguments .platform ,
520522 outfile = arguments .out ,
521523 strip_path_prefixes = strip_prefixes ,
522- incompatible_normalize_name = arguments .incompatible_normalize_name ,
523- incompatible_normalize_version = arguments .incompatible_normalize_version ,
524+ incompatible_normalize_name = not arguments .noincompatible_normalize_name ,
525+ incompatible_normalize_version = not arguments .noincompatible_normalize_version ,
524526 ) as maker :
525527 for package_filename , real_filename in all_files :
526528 maker .add_file (package_filename , real_filename )
@@ -545,10 +547,10 @@ def main() -> None:
545547 with open (arguments .metadata_file , "rt" , encoding = "utf-8" ) as metadata_file :
546548 metadata = metadata_file .read ()
547549
548- if arguments .incompatible_normalize_version :
549- version_in_metadata = normalize_pep440 (version )
550- else :
550+ if arguments .noincompatible_normalize_version :
551551 version_in_metadata = version
552+ else :
553+ version_in_metadata = normalize_pep440 (version )
552554 maker .add_metadata (
553555 metadata = metadata ,
554556 name = name ,
0 commit comments