@@ -595,7 +595,7 @@ pub fn get_project_info(use_defaults: bool) -> Result<ProjectInfo> {
595595
596596 let python_version_default = match config. python_version {
597597 Some ( python) => python,
598- None => "3.13 " . to_string ( ) ,
598+ None => "3.14 " . to_string ( ) ,
599599 } ;
600600 let python_version = if use_defaults {
601601 python_version_default
@@ -619,15 +619,15 @@ pub fn get_project_info(use_defaults: bool) -> Result<ProjectInfo> {
619619 } else {
620620 match config. min_python_version {
621621 Some ( python) => python,
622- None => "3.9 " . to_string ( ) ,
622+ None => "3.10 " . to_string ( ) ,
623623 }
624624 }
625625 }
626626 #[ cfg( not( feature = "fastapi" ) ) ]
627627 {
628628 match config. min_python_version {
629629 Some ( python) => python,
630- None => "3.9 " . to_string ( ) ,
630+ None => "3.10 " . to_string ( ) ,
631631 }
632632 }
633633 } ;
@@ -655,8 +655,8 @@ pub fn get_project_info(use_defaults: bool) -> Result<ProjectInfo> {
655655 } else {
656656 let mut versions: Vec < String > = Vec :: new ( ) ;
657657
658- // Up to 3.13
659- for i in min..14 {
658+ // Up to 3.14
659+ for i in min..15 {
660660 versions. push ( format ! ( "3.{i}" ) ) ;
661661 }
662662
@@ -665,25 +665,30 @@ pub fn get_project_info(use_defaults: bool) -> Result<ProjectInfo> {
665665 } else {
666666 #[ cfg( feature = "fastapi" ) ]
667667 if is_fastapi_project {
668- vec ! [ "3.11" . to_string( ) , "3.12" . to_string( ) , "3.13" . to_string( ) ]
668+ vec ! [
669+ "3.11" . to_string( ) ,
670+ "3.12" . to_string( ) ,
671+ "3.13" . to_string( ) ,
672+ "3.14" . to_string( ) ,
673+ ]
669674 } else {
670675 vec ! [
671- "3.9" . to_string( ) ,
672676 "3.10" . to_string( ) ,
673677 "3.11" . to_string( ) ,
674678 "3.12" . to_string( ) ,
675679 "3.13" . to_string( ) ,
680+ "3.14" . to_string( ) ,
676681 ]
677682 }
678683
679684 #[ cfg( not( feature = "fastapi" ) ) ]
680685 {
681686 vec ! [
682- "3.9" . to_string( ) ,
683687 "3.10" . to_string( ) ,
684688 "3.11" . to_string( ) ,
685689 "3.12" . to_string( ) ,
686690 "3.13" . to_string( ) ,
691+ "3.14" . to_string( ) ,
687692 ]
688693 }
689694 }
@@ -1020,7 +1025,7 @@ mod tests {
10201025
10211026 #[ test]
10221027 fn test_valid_two_digit_python_version ( ) {
1023- assert ! ( is_valid_python_version( "3.9 " ) ) ;
1028+ assert ! ( is_valid_python_version( "3.10 " ) ) ;
10241029 }
10251030
10261031 #[ test]
@@ -1055,6 +1060,6 @@ mod tests {
10551060
10561061 #[ test]
10571062 fn test_invalid_python_version_non_numeric_patch ( ) {
1058- assert ! ( !is_valid_python_version( "3.9 .a" ) ) ;
1063+ assert ! ( !is_valid_python_version( "3.10 .a" ) ) ;
10591064 }
10601065}
0 commit comments