errata 74: ignore **/ para nomes de estado (fnmatch literal nao casa subdiretorios)
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
| 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"]
|