Skip to content

Instantly share code, notes, and snippets.

@cacrespo
Last active November 20, 2024 18:06
Show Gist options
  • Save cacrespo/1fe8899f61bb93406ab485cb34b46e09 to your computer and use it in GitHub Desktop.
Save cacrespo/1fe8899f61bb93406ab485cb34b46e09 to your computer and use it in GitHub Desktop.
How to add commits to someone else's pull request

Notas Python-Docs-ES Update 3.12 a 3.13

  1. En términos generales seguí las instrucciones en .overrides/update-python-version.rst y además tomé los aportes de Rodrigo Tobar.
  2. Asegurarse que nuestro fork esté en sync con el repositorio original. No sea cosa que tengas que repetir todos los pasos!
  3. No me traje el último commit del repositorio sino el tag v3.13.0. Creo que es mucho más prolijo si lo empezamos a hacer así y ya sentamos las bases para hacer el update más frecuente.
git submodule init
git submodule update

cd cpython/
git fetch origin tag v3.13.0 --depth 1 --> ¿Alguien sabe por qué me trae todos los tags ¿?
git checkout v3.13.0

cd ..
git checkout -b 3.13
git add cpython
git commit -m "Update the cpython submodule"
  1. Ajustes relevantes en nuestro archivos:

requirements.txt

(...)
sphinx~=8.0.0
sphinxext-opengraph~=0.9.0
sphinx-notfound-page~=1.0.0
python-docs-theme>=2023.3.1,!=2023.7
Pygments>=2.16.1

conf.py

# Call patchlevel to get the version instead of hardcoding it
from patchlevel import get_version_info
version, release = get_version_info()
  1. Algunos warnings pero todo parece fluir.
  2. powrap tiene problemas con:
Error processing 'library/smtplib.po': Command '['msgcat', '-', '-o', '/tmp/tmpjpwgotve']' returned non-zero exit status 1. 
Error processing 'library/subprocess.po': Command '['msgcat', '-', '-o', '/tmp/tmpt2ljhk4r']' returned non-zero exit status 
Error processing 'library/turtle.po': Command '['msgcat', '-', '-o', '/tmp/tmpqr28n_hq']' returned non-zero exit status 1.
  1. make serve & make progress no funcionan (¿cuándo fue la última vez que funcionaron?)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment