PowerMachine commited on
Commit
39f2f80
·
verified ·
1 Parent(s): 6d97144

errata 74: ignore **/ para nomes de estado (fnmatch literal nao casa subdiretorios)

Browse files
Files changed (1) hide show
  1. scripts/74_publicar_v090.py +4 -1
scripts/74_publicar_v090.py CHANGED
@@ -96,7 +96,10 @@ def main():
96
  ignores = (
97
  [f"{d}/**" for d in ARQUIVOS_EXCLUIR_DIRS]
98
  + [f"{d}" for d in ARQUIVOS_EXCLUIR_DIRS]
99
- + list(ARQUIVOS_EXCLUIR_NOME) + list(NOMES_ESTADO)
 
 
 
100
  + list(SUFIXOS_ESTADO)
101
  + ["*.so", ".gitignore", "hf_*.py", "hf_*.json", "intros_*.json",
102
  "*.estado.json"]
 
96
  ignores = (
97
  [f"{d}/**" for d in ARQUIVOS_EXCLUIR_DIRS]
98
  + [f"{d}" for d in ARQUIVOS_EXCLUIR_DIRS]
99
+ # **/ : fnmatch literal NÃO casa subdiretórios (errata v0.9.0 — os
100
+ # estados locais vazaram na 1ª publicação em que existiam)
101
+ + [f"**/{n}" for n in ARQUIVOS_EXCLUIR_NOME]
102
+ + [f"**/{n}" for n in NOMES_ESTADO]
103
  + list(SUFIXOS_ESTADO)
104
  + ["*.so", ".gitignore", "hf_*.py", "hf_*.json", "intros_*.json",
105
  "*.estado.json"]