File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ class _WheelBuilder():
252
252
def __init__ (
253
253
self ,
254
254
project : Project ,
255
- metadata : Optional [ Metadata ] ,
255
+ metadata : Metadata ,
256
256
source_dir : pathlib .Path ,
257
257
build_dir : pathlib .Path ,
258
258
sources : Dict [str , Dict [str , Any ]],
@@ -349,9 +349,6 @@ def wheel(self) -> bytes:
349
349
@property
350
350
def entrypoints_txt (self ) -> bytes :
351
351
"""dist-info entry_points.txt."""
352
- if not self ._metadata :
353
- return b''
354
-
355
352
data = self ._metadata .entrypoints .copy ()
356
353
data .update ({
357
354
'console_scripts' : self ._metadata .scripts ,
@@ -902,10 +899,9 @@ def metadata(self) -> bytes:
902
899
903
900
@property
904
901
def license_file (self ) -> Optional [pathlib .Path ]:
905
- if self ._metadata :
906
- license_ = self ._metadata .license
907
- if license_ and license_ .file :
908
- return pathlib .Path (license_ .file )
902
+ license_ = self ._metadata .license
903
+ if license_ and license_ .file :
904
+ return pathlib .Path (license_ .file )
909
905
return None
910
906
911
907
@property
You can’t perform that action at this time.
0 commit comments