Put an actual license in LICENSE

This commit is contained in:
Alexandre Aubin 2021-04-23 18:34:39 +02:00
parent dc5cb76a40
commit c9d2ae81ad

View file

@ -435,6 +435,11 @@ class App(TestSuite):
if not file_exists(app.path + "/" + filename): if not file_exists(app.path + "/" + filename):
yield Error("Providing %s is mandatory" % filename) yield Error("Providing %s is mandatory" % filename)
if file_exists(app.path + "/LICENSE"):
license_content = open(app.path + "/LICENSE").read()
if "File containing the license of your package" in license_content:
yield Warning("You should put an actual license in LICENSE...")
@test() @test()
def change_url_script(app): def change_url_script(app):