Beispiel #1
0
 def auto_fill_license(self, key='license'):
     """ Try to auto-determine the license """
     contents, _ = find_contents(['LICENSE*'], limit=20)
     short, classifier = determined_license(contents)
     if short:
         self.auto_fill('license', short)
         classifiers = self.value('classifiers')
         if classifiers and isinstance(classifiers, list):
             if classifier not in classifiers:
                 classifiers.append(classifier)
Beispiel #2
0
 def auto_fill_license(self, key="license"):
     """ Try to auto-determine the license """
     contents, _ = find_contents(["LICENSE*"], limit=20)
     short = determined_license(contents)
     if short:
         self.auto_fill("license", short)