@@ -26,15 +26,15 @@ class tomlgen_rust(setuptools.Command):
26
26
description = "Generate `Cargo.toml` for rust extensions"
27
27
28
28
user_options = [
29
- ("force" , 'f' ,
30
- "overwrite existing files if any" ),
31
- ("create-workspace" , 'w' ,
32
- "create a workspace file at the root of the project" ),
33
- ("no-config" , "C" ,
34
- "do not create a `.cargo/config` file when generating a workspace" )
29
+ (str ( "force" ), str ( 'f' ) ,
30
+ str ( "overwrite existing files if any" ) ),
31
+ (str ( "create-workspace" ), str ( 'w' ) ,
32
+ str ( "create a workspace file at the root of the project" ) ),
33
+ (str ( "no-config" ), str ( "C" ) ,
34
+ str ( "do not create a `.cargo/config` file when generating a workspace" ) )
35
35
]
36
36
37
- boolean_options = ['create_workspace' , 'force' ]
37
+ boolean_options = [str ( 'create_workspace' ), str ( 'force' ) ]
38
38
39
39
def initialize_options (self ):
40
40
@@ -71,6 +71,7 @@ def finalize_options(self):
71
71
self .distribution .get_author (),
72
72
self .distribution .get_author_email ().strip ('"\' ' ))
73
73
74
+
74
75
def run (self ):
75
76
76
77
# Create a `Cargo.toml` for each extension
0 commit comments