Skip to content

Commit 2b7f4f6

Browse files
Merge branch '3.12' into traduccion-library-gc
2 parents dba20a2 + 33a5e9c commit 2b7f4f6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+606
-503
lines changed

.github/workflows/main.yml

Lines changed: 53 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,34 +11,77 @@ jobs:
1111
name: Test
1212
runs-on: ubuntu-22.04
1313
steps:
14+
# Obtención del código
1415
- uses: actions/checkout@v4
16+
with:
17+
submodules: 'true'
18+
# Necesario para que tj-actions/changed-files se ejecute
19+
# dentro de un tiempo adecuado
20+
fetch-depth: 2
21+
22+
# Instalación de dependencias
1523
- name: Preparar Python v3.11
1624
uses: actions/setup-python@v4
1725
with:
1826
python-version: "3.11"
1927
cache: "pip"
20-
- name: Sincronizar con CPython
28+
- name: Configura dpkg/apt para ejecutarse de manera eficiente
29+
uses: abbbi/github-actions-tune@v1
30+
- name: Deshabilita triggers de postgresql-common
31+
run: sudo sed -i '/postgresql-common/d' /var/lib/dpkg/triggers/File
32+
- name: Instalar dependencias de sistema
2133
run: |
22-
git submodule update --init --depth=1 cpython
23-
- name: Instalar dependencias
34+
sudo apt-get install -y hunspell hunspell-es gettext language-pack-es locales-all
35+
- name: Instalar dependencias de Python
2436
run: |
25-
sudo apt-get update
26-
sudo apt-get install -y hunspell hunspell-es gettext language-pack-es
2737
python -m pip install -r requirements.txt
38+
- name: Listar paquetes y versiones
39+
run: |
2840
pip list
2941
pospell --version
3042
powrap --version
43+
44+
# Cálculo de los archivos .po a verificar.
45+
# En el caso de un PR, sólo se chequean los .po que se están editando,
46+
# mientras que en caseo de un push a las ramas 3.* queremos revisar
47+
# todos los archivos
48+
- name: Obtiene la lista de archivos .po con cambios (sólo en PRs)
49+
if: github.event_name == 'pull_request'
50+
id: changed-po-files
51+
uses: tj-actions/changed-files@v40
52+
with:
53+
files: |
54+
**/*.po
55+
- name: Calcula lista de archivos .po a revisar
56+
id: po-files-to-check
57+
env:
58+
PO_FILES_TO_CHECK: ${{ steps.changed-po-files.conclusion == 'skipped' && '**/*.po' || steps.changed-po-files.outputs.all_changed_files }}
59+
run: |
60+
echo "po_files_to_check=$PO_FILES_TO_CHECK" >> $GITHUB_OUTPUT
61+
echo "any_po_files_to_check=`test -n \"$PO_FILES_TO_CHECK\" && echo true || echo false`" >> $GITHUB_OUTPUT
62+
- name: Muestra outputs de steps anteriores para debugueo
63+
env:
64+
CHANGED_PO_FILES: ${{ toJson(steps.changed-po-files) }}
65+
PO_FILES_TO_CHECK: ${{ toJson(steps.po-files-to-check) }}
66+
run: |
67+
echo "steps.changed-po-files=$PO_FILES_TO_CHECK"
68+
echo "steps.po-files-to-change.$CHANGED_PO_FILES"
69+
70+
# Chequeos a realizar
3171
- name: TRANSLATORS
3272
run: |
3373
diff -Naur TRANSLATORS <(LANG=es python scripts/sort.py < TRANSLATORS)
3474
- name: Powrap
35-
run: powrap --check --quiet **/*.po
75+
if: steps.po-files-to-check.outputs.any_po_files_to_check == 'true'
76+
run: powrap --check --quiet ${{ steps.po-files-to-check.outputs.po_files_to_check }}
3677
- name: Sphinx lint
37-
run: |
38-
sphinx-lint */*.po
78+
if: steps.po-files-to-check.outputs.any_po_files_to_check == 'true'
79+
run: sphinx-lint ${{ steps.po-files-to-check.outputs.po_files_to_check }}
3980
- name: Pospell
40-
run: |
41-
python scripts/check_spell.py
81+
if: steps.po-files-to-check.outputs.any_po_files_to_check == 'true'
82+
run: python scripts/check_spell.py ${{ steps.po-files-to-check.outputs.po_files_to_check }}
83+
84+
# Construcción de la documentación
4285
- name: Construir documentación
4386
run: |
4487
# FIXME: Relative paths for includes in 'cpython'

.github/workflows/pr-comment.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Agrega comentario a PR
2+
3+
on:
4+
pull_request_target:
5+
6+
jobs:
7+
pr-comment:
8+
name: Entradas sin traducción
9+
runs-on: ubuntu-22.04
10+
steps:
11+
- uses: actions/checkout@v4
12+
with:
13+
ref: ${{ github.event.pull_request.merge_commit_sha }}
14+
persist-credentials: false
15+
- name: Preparar Python v3.11
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: "3.11"
19+
cache: "pip"
20+
- name: Instalar dependencias
21+
run: |
22+
python -m pip install -r requirements.txt
23+
- name: Obtiene lista de archivos con cambios
24+
id: changed-files
25+
uses: tj-actions/changed-files@v39
26+
with:
27+
files: |
28+
**/*.po
29+
- name: Calcular entradas faltantes
30+
if: steps.changed-files.outputs.any_changed == 'true'
31+
id: create-pr-comment
32+
env:
33+
CHANGED_PO_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
34+
run: |
35+
{
36+
echo 'comment<<EOF'
37+
python scripts/list_missing_entries.py --github $CHANGED_PO_FILES
38+
echo EOF
39+
} >> "$GITHUB_OUTPUT"
40+
- name: Agregar comentario con entradas faltantes
41+
if: steps.changed-files.outputs.any_changed == 'true'
42+
uses: thollander/actions-comment-pull-request@v2
43+
with:
44+
message: ${{ steps.create-pr-comment.outputs.comment }}
45+
comment_tag: missing-entries

library/abc.po

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,16 @@ msgstr ""
1111
"Project-Id-Version: Python 3.8\n"
1212
"Report-Msgid-Bugs-To: \n"
1313
"POT-Creation-Date: 2023-10-12 19:43+0200\n"
14-
"PO-Revision-Date: 2021-08-07 10:37+0200\n"
15-
"Last-Translator: Cristián Maureira-Fredes <cmaureirafredes@gmail.com>\n"
16-
"Language: es\n"
14+
"PO-Revision-Date: 2023-11-02 09:22+0100\n"
15+
"Last-Translator: Marcos Medrano <marcosmedrano0@gmail.com>\n"
1716
"Language-Team: python-doc-es\n"
18-
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
17+
"Language: es\n"
1918
"MIME-Version: 1.0\n"
2019
"Content-Type: text/plain; charset=utf-8\n"
2120
"Content-Transfer-Encoding: 8bit\n"
21+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
2222
"Generated-By: Babel 2.13.0\n"
23+
"X-Generator: Poedit 3.4\n"
2324

2425
#: ../Doc/library/abc.rst:2
2526
msgid ":mod:`abc` --- Abstract Base Classes"
@@ -43,7 +44,6 @@ msgstr ""
4344
"de tipos para números basados en CBAs.)"
4445

4546
#: ../Doc/library/abc.rst:20
46-
#, fuzzy
4747
msgid ""
4848
"The :mod:`collections` module has some concrete classes that derive from "
4949
"ABCs; these can, of course, be further derived. In addition, the :mod:"
@@ -54,8 +54,8 @@ msgstr ""
5454
"El módulo :mod:`collections` tiene algunas clases concretas que se derivan "
5555
"de ABC; estos, por supuesto, pueden derivarse más. Además, el submódulo :mod:"
5656
"`collections.abc` tiene algunos ABC que se pueden usar para probar si una "
57-
"clase o instancia proporciona una interfaz en particular, por ejemplo, si es "
58-
"hash o si es un mapeo."
57+
"clase o instancia proporciona una interfaz en particular, por ejemplo, si "
58+
"es :term:`hashable` o si es un mapeo."
5959

6060
#: ../Doc/library/abc.rst:27
6161
msgid ""

library/asynchat.po

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ msgstr ""
1111
"Project-Id-Version: Python 3.8\n"
1212
"Report-Msgid-Bugs-To: \n"
1313
"POT-Creation-Date: 2022-10-25 19:47+0200\n"
14-
"PO-Revision-Date: 2022-11-11 17:02-0300\n"
15-
"Last-Translator: Sofía Denner <sofi.denner@gmail.com>\n"
14+
"PO-Revision-Date: 2023-11-02 09:23+0100\n"
15+
"Last-Translator: Marcos Medrano <marcosmedrano0@gmail.com>\n"
1616
"Language-Team: python-doc-es\n"
1717
"Language: es\n"
1818
"MIME-Version: 1.0\n"
1919
"Content-Type: text/plain; charset=utf-8\n"
2020
"Content-Transfer-Encoding: 8bit\n"
2121
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
2222
"Generated-By: Babel 2.10.3\n"
23-
"X-Generator: Poedit 3.2\n"
23+
"X-Generator: Poedit 3.4\n"
2424

2525
#: ../Doc/library/asynchat.rst:2
2626
msgid ":mod:`asynchat` --- Asynchronous socket command/response handler"
@@ -73,7 +73,6 @@ msgstr ""
7373
"`asyncore.dispatcher` genera nuevos objetos de canal :class:`asynchat."
7474
"async_chat`, al recibir peticiones de conexión entrantes."
7575

76-
#, fuzzy
7776
msgid ":ref:`Availability <availability>`: not Emscripten, not WASI."
7877
msgstr ":ref:`Disponibilidad <availability>`: no Emscripten, no WASI."
7978

library/asyncio-protocol.po

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgstr ""
1111
"Project-Id-Version: Python 3.8\n"
1212
"Report-Msgid-Bugs-To: \n"
1313
"POT-Creation-Date: 2022-10-25 19:47+0200\n"
14-
"PO-Revision-Date: 2023-11-01 14:32+0100\n"
14+
"PO-Revision-Date: 2023-11-02 09:24+0100\n"
1515
"Last-Translator: Marcos Medrano <marcosmedrano0@gmail.com>\n"
1616
"Language-Team: python-doc-es\n"
1717
"Language: es\n"
@@ -982,15 +982,14 @@ msgstr ""
982982
"conexión esté abierta."
983983

984984
#: ../Doc/library/asyncio-protocol.rst:556
985-
#, fuzzy
986985
msgid ""
987986
"However, :meth:`protocol.eof_received() <Protocol.eof_received>` is called "
988987
"at most once. Once ``eof_received()`` is called, ``data_received()`` is not "
989988
"called anymore."
990989
msgstr ""
991990
"Sin embargo, :meth:`protocol.eof_received() <Protocol.eof_received>` se "
992-
"llama como máximo una vez. En el momento que se llama a `eof_received()`, ya "
993-
"no se llama a ``data_received()``."
991+
"llama como máximo una vez. Luego de llamar a ``eof_received()``, ya no se "
992+
"llama más a ``data_received()``."
994993

995994
#: ../Doc/library/asyncio-protocol.rst:562
996995
msgid ""

library/asyncore.po

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ msgstr ""
1111
"Project-Id-Version: Python 3.8\n"
1212
"Report-Msgid-Bugs-To: \n"
1313
"POT-Creation-Date: 2022-10-25 19:47+0200\n"
14-
"PO-Revision-Date: 2022-11-26 16:40-0300\n"
15-
"Last-Translator: Sofía Denner <sofi.denner@gmail.com>\n"
14+
"PO-Revision-Date: 2023-11-04 23:10+0100\n"
15+
"Last-Translator: Marcos Medrano <marcosmedrano0@gmail.com>\n"
1616
"Language-Team: python-doc-es\n"
1717
"Language: es\n"
1818
"MIME-Version: 1.0\n"
1919
"Content-Type: text/plain; charset=utf-8\n"
2020
"Content-Transfer-Encoding: 8bit\n"
2121
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
2222
"Generated-By: Babel 2.10.3\n"
23-
"X-Generator: Poedit 3.2\n"
23+
"X-Generator: Poedit 3.4\n"
2424

2525
#: ../Doc/library/asyncore.rst:2
2626
msgid ":mod:`asyncore` --- Asynchronous socket handler"
@@ -54,7 +54,6 @@ msgstr ""
5454
"Este módulo proporciona la infraestructura básica para escribir servicio de "
5555
"socket asincrónicos, clientes y servidores."
5656

57-
#, fuzzy
5857
msgid ":ref:`Availability <availability>`: not Emscripten, not WASI."
5958
msgstr ":ref:`Disponibilidad <availability>`: no Emscripten, no WASI."
6059

@@ -496,7 +495,6 @@ msgstr ""
496495
"pasará al constructor :class:`file_wrapper`."
497496

498497
#: ../Doc/library/asyncore.rst:283 ../Doc/library/asyncore.rst:292
499-
#, fuzzy
500498
msgid ":ref:`Availability <availability>`: Unix."
501499
msgstr ":ref:`Disponibilidad <availability>`: Unix."
502500

library/audit_events.po

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,16 @@ msgstr ""
99
"Project-Id-Version: Python en Español 3.7\n"
1010
"Report-Msgid-Bugs-To: \n"
1111
"POT-Creation-Date: 2023-10-12 19:43+0200\n"
12-
"PO-Revision-Date: 2021-08-07 10:33+0200\n"
13-
"Last-Translator: Cristián Maureira-Fredes <cmaureirafredes@gmail.com>\n"
14-
"Language: es\n"
12+
"PO-Revision-Date: 2023-11-02 09:27+0100\n"
13+
"Last-Translator: Marcos Medrano <marcosmedrano0@gmail.com>\n"
1514
"Language-Team: es <LL@li.org>\n"
16-
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
15+
"Language: es\n"
1716
"MIME-Version: 1.0\n"
1817
"Content-Type: text/plain; charset=utf-8\n"
1918
"Content-Transfer-Encoding: 8bit\n"
19+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
2020
"Generated-By: Babel 2.13.0\n"
21+
"X-Generator: Poedit 3.4\n"
2122

2223
#: ../Doc/library/audit_events.rst:6
2324
msgid "Audit events table"
@@ -134,6 +135,5 @@ msgid "``obj``"
134135
msgstr "``obj``"
135136

136137
#: ../Doc/library/audit_events.rst:3
137-
#, fuzzy
138138
msgid "audit events"
139-
msgstr "Evento de auditoría"
139+
msgstr "eventos de auditoría"

library/code.po

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,16 @@ msgstr ""
1111
"Project-Id-Version: Python 3.8\n"
1212
"Report-Msgid-Bugs-To: \n"
1313
"POT-Creation-Date: 2023-10-12 19:43+0200\n"
14-
"PO-Revision-Date: 2021-08-07 10:30+0200\n"
15-
"Last-Translator: Cristián Maureira-Fredes <cmaureirafredes@gmail.com>\n"
16-
"Language: es\n"
14+
"PO-Revision-Date: 2023-11-02 12:44+0100\n"
15+
"Last-Translator: Marcos Medrano <marcosmedrano0@gmail.com>\n"
1716
"Language-Team: python-doc-es\n"
18-
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
17+
"Language: es\n"
1918
"MIME-Version: 1.0\n"
2019
"Content-Type: text/plain; charset=utf-8\n"
2120
"Content-Transfer-Encoding: 8bit\n"
21+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
2222
"Generated-By: Babel 2.13.0\n"
23+
"X-Generator: Poedit 3.4\n"
2324

2425
#: ../Doc/library/code.rst:2
2526
msgid ":mod:`code` --- Interpreter base classes"
@@ -305,7 +306,6 @@ msgid "Print an exit message when exiting."
305306
msgstr "Imprime un mensaje de salida al salir."
306307

307308
#: ../Doc/library/code.rst:164
308-
#, fuzzy
309309
msgid ""
310310
"Push a line of source text to the interpreter. The line should not have a "
311311
"trailing newline; it may have internal newlines. The line is appended to a "
@@ -319,13 +319,13 @@ msgid ""
319319
msgstr ""
320320
"Envía una línea de texto fuente al intérprete. La línea no debe tener un "
321321
"salto de línea al final; puede tener nuevas líneas internas. La línea se "
322-
"agrega a un búfer y se llama al método :meth:`runsource` del intérprete con "
323-
"el contenido concatenado del búfer y la nueva fuente. Si indica que el "
324-
"comando se ejecutó o no es válido, el búfer se restablece; de lo contrario, "
325-
"el comando está incompleto y el búfer se deja como estaba después de agregar "
326-
"la línea. Si se requieren más entradas el valor de retorno es ``True``, "
327-
"``False`` si la línea se procesó de alguna manera (esto es lo mismo que :"
328-
"meth:`runsource`)."
322+
"agrega a un búfer y se llama al método :meth:`~InteractiveInterpreter."
323+
"runsource` del intérprete con el contenido concatenado del búfer y la nueva "
324+
"fuente. Si indica que el comando se ejecutó o no es válido, el búfer se "
325+
"restablece; de lo contrario, el comando está incompleto y el búfer se deja "
326+
"como estaba después de agregar la línea. Si se requieren más entradas el "
327+
"valor de retorno es ``True``, ``False`` si la línea se procesó de alguna "
328+
"manera (esto es lo mismo que :meth:`!runsource`)."
329329

330330
#: ../Doc/library/code.rst:176
331331
msgid "Remove any unhandled source text from the input buffer."

0 commit comments

Comments
 (0)