Ver a proveniência

fix: Remove frappe from boilerplate requirements.txt

Remove frappe from new app boilerplates to avoid possible supply chain attacks. Don't make pip fetch frappe from PyPI
version-14
Gavin D'souza há 4 anos
ascendente
cometimento
8e8490976c
1 ficheiros alterados com 1 adições e 1 eliminações
  1. +1
    -1
      frappe/utils/boilerplate.py

+ 1
- 1
frappe/utils/boilerplate.py Ver ficheiro

@@ -70,7 +70,7 @@ def make_boilerplate(dest, app_name):
f.write(frappe.as_unicode(setup_template.format(**hooks))) f.write(frappe.as_unicode(setup_template.format(**hooks)))


with open(os.path.join(dest, hooks.app_name, "requirements.txt"), "w") as f: with open(os.path.join(dest, hooks.app_name, "requirements.txt"), "w") as f:
f.write("frappe")
f.write("# frappe -- https://github.com/frappe/frappe is installed via 'bench init'")


with open(os.path.join(dest, hooks.app_name, "README.md"), "w") as f: with open(os.path.join(dest, hooks.app_name, "README.md"), "w") as f:
f.write(frappe.as_unicode("## {0}\n\n{1}\n\n#### License\n\n{2}".format(hooks.app_title, f.write(frappe.as_unicode("## {0}\n\n{1}\n\n#### License\n\n{2}".format(hooks.app_title,


Carregando…
Cancelar
Guardar