File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
- # Copyright (c) 2020, Oracle and/or its affiliates.
1
+ # Copyright (c) 2020, 2021, Oracle and/or its affiliates.
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License, version 2.0, as
36
36
class DistWheel (bdist_wheel , BaseCommand ):
37
37
"""Create a Wheel distribution."""
38
38
39
- user_options = bdist_wheel .user_options + BaseCommand .user_options
39
+ user_options = bdist_wheel .user_options + BaseCommand .user_options + [
40
+ ("metadata-license=" , None , "metadata license text" ),
41
+ ]
42
+ metadata_license = ""
40
43
41
44
def initialize_options (self ):
42
45
"""Initialize the options."""
@@ -52,5 +55,7 @@ def finalize_options(self):
52
55
53
56
def run (self ):
54
57
"""Run the command."""
58
+ if self .metadata_license :
59
+ self .distribution .metadata .license = self .metadata_license
55
60
bdist_wheel .run (self )
56
61
self .remove_temp ()
You can’t perform that action at this time.
0 commit comments