File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ def canonicalize_license_expression(s: str) -> str:
7878
7979__version__  =  '0.17.0.dev0' 
8080
81+ _PYPROJECT_METADATA_VERSION  =  tuple (map (int , pyproject_metadata .__version__ .split ('.' )[:2 ]))
8182
8283_NINJA_REQUIRED_VERSION  =  '1.8.2' 
8384_MESON_REQUIRED_VERSION  =  '0.63.3'  # keep in sync with the version requirement in pyproject.toml 
@@ -244,6 +245,9 @@ class MesonBuilderError(Error):
244245
245246class  Metadata (pyproject_metadata .StandardMetadata ):
246247    def  __init__ (self , name : str , * args : Any , ** kwargs : Any ):
248+         if  _PYPROJECT_METADATA_VERSION  <  (0 , 9 ):
249+             kwargs .pop ('license' , None )
250+             kwargs .pop ('license_files' , None )
247251        super ().__init__ (name , * args , ** kwargs )
248252        # Local fix for https://github.com/FFY00/python-pyproject-metadata/issues/60 
249253        self .name  =  self ._validate_name (name )
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments