Skip to contentSkip to conversation

utils/scanpypi: search LICENSE.MD

PATCH New Fabrice Fontaine 3 participants 3 messages Jul 4, 2021 – Jul 14, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 utils/scanpypi: search LICENSE.MD

Some packages such as python-idna has a LICENSE.md file:
https://github.com/kjd/idna/blob/master/LICENSE.md

---
 utils/scanpypi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
utils/scanpypi +2 -2
index 47c7c00c60..8327fc3fc5 100755
@@ -495,8 +495,8 @@ class BuildrootPackage():
         """
         lines = []
 
-        filenames = ['LICENCE', 'LICENSE', 'LICENSE.RST', 'LICENSE.TXT',
-                     'COPYING', 'COPYING.TXT']
+        filenames = ['LICENCE', 'LICENSE', 'LICENSE.MD', 'LICENSE.RST',
+                     'LICENSE.TXT', 'COPYING', 'COPYING.TXT']
         self.license_files = list(find_file_upper_case(filenames, self.tmp_extract))
 
         lines.append(self.__get_license_names(self.license_files))
Signature · 1 line
2.30.2
#1 lore raw

PATCH 1/1 utils/scanpypi: search LICENSE.MD

Fabrice, All,

On 2021-07-04 21:38 +0200, Fabrice Fontaine spake thusly:

Quoted 4 lines

Some packages such as python-idna has a LICENSE.md file:
https://github.com/kjd/idna/blob/master/LICENSE.md

Applied to master, thanks.

Note that the python-idna we have still lists LICENSE.rst. Maybe a version bump is in the works? ;-)

Regards,
Yann E. MORIN.

Quoted 26 lines
---
 utils/scanpypi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
utils/scanpypi +2 -2
index 47c7c00c60..8327fc3fc5 100755
@@ -495,8 +495,8 @@ class BuildrootPackage():
         """
         lines = []
 
-        filenames = ['LICENCE', 'LICENSE', 'LICENSE.RST', 'LICENSE.TXT',
-                     'COPYING', 'COPYING.TXT']
+        filenames = ['LICENCE', 'LICENSE', 'LICENSE.MD', 'LICENSE.RST',
+                     'LICENSE.TXT', 'COPYING', 'COPYING.TXT']
         self.license_files = list(find_file_upper_case(filenames, self.tmp_extract))
 
         lines.append(self.__get_license_names(self.license_files))
Signature · 6 lines
2.30.2

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'