[using pip with 0.5.2]

Uwe Brauer oub at mat.ucm.es
Sat Aug 15 10:09:57 UTC 2020


> On Sat, Aug 15, 2020, 09:58 Uwe Brauer <oub at mat.ucm.es> wrote:


> I'm not sure what the problem really is here, but if you only get this for
> the license check and you are just evaluating if kallithea fits your needs,
> you could comment out the check in
> home/oub/.local/lib/python2.7/site-packages/kallithea/bin/kallithea_cli_front_end.py



You mean everything after: ?
(I don't know really python, sorry)

        click.echo("Generating LICENSES.txt")
        license_checker_path = os.path.join(front_end_dir, 'node_modules', '.bin', 'license-checker')
        check_licensing_json_path = os.path.join(tmp_dir, 'licensing.json')
        licensing_txt_path = os.path.join(public_dir, 'LICENSES.txt')
        subprocess.check_call([license_checker_path, '--json', '--out', check_licensing_json_path],
                cwd=front_end_dir, shell=kallithea.is_windows)
        with open(check_licensing_json_path) as jsonfile:
            rows = json.loads(jsonfile.read())
            with open(licensing_txt_path, 'w') as out:
                out.write("The Kallithea front-end was built using the following Node modules:\n\n")
                for name_version, values in sorted(rows.items()):
                    name, version = name_version.rsplit('@', 1)
                    line = "%s from https://www.npmjs.com/package/%s/v/%s\n  License: %s\n  Repository: %s\n" % (
                        name_version, name, version, values['licenses'], values.get('repository', '-'))
                    if values.get('copyright'):
                        line += "  Copyright: %s\n" % (values['copyright'])
                    out.write(line + '\n')

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5673 bytes
Desc: not available
URL: <http://lists.sfconservancy.org/pipermail/kallithea-general/attachments/20200815/5aeabf00/attachment-0001.bin>


More information about the kallithea-general mailing list