Index: dockerfile.txt ================================================================== --- dockerfile.txt +++ dockerfile.txt @@ -1,8 +1,8 @@ FROM python:3-alpine AS src -ENV VERSION 1.12.2 +ENV VERSION ${version} RUN apk add --update --no-cache \ unzip \ wget \ && wget https://grammalecte.net/grammalecte/zip/Grammalecte-fr-v${VERSION}.zip \ Index: helpers.py ================================================================== --- helpers.py +++ helpers.py @@ -120,11 +120,11 @@ open(spfDst, "w", encoding="utf-8", newline="\n").write(sText) def addFileToZipAndFileFile (hZip, spfSrc, spfDst, dVars): "add a file to zip archive and file it with " - if spfSrc.endswith((".py", ".js", ".json", ".html", ".htm", ".css", ".xcu", ".xul", ".rdf", ".dtd", ".properties")): + if spfSrc.endswith((".txt", ".md", ".py", ".js", ".json", ".html", ".htm", ".css", ".xcu", ".xul", ".rdf", ".dtd", ".properties")): hZip.writestr(spfDst, fileFile(spfSrc, dVars)) else: hZip.write(spfSrc, spfDst) Index: make.py ================================================================== --- make.py +++ make.py @@ -154,11 +154,13 @@ hZip = zipfile.ZipFile(spfZip, mode='w', compression=zipfile.ZIP_DEFLATED) copyGrammalectePyPackageInZipFile(hZip, spLangPack) for spf in ["grammalecte-cli.py", "grammalecte-server.py", \ "README.txt", "LICENSE.txt", "LICENSE.fr.txt"]: hZip.write(spf) - hZip.writestr("setup.py", helpers.fileFile("gc_lang/fr/setup.py", dVars)) + helpers.addFileToZipAndFileFile(hZip, "dockerfile.txt", "Dockerfile", dVars) + helpers.addFileToZipAndFileFile(hZip, "gc_lang/fr/setup.py", "setup.py", dVars) + #hZip.writestr("setup.py", helpers.fileFile("gc_lang/fr/setup.py", dVars)) def copyGrammalectePyPackageInZipFile (hZip, spLangPack, sAddPath=""): "copy Grammalecte Python package in zip file" for sf in os.listdir("grammalecte"):