Adapt bootstrap / conventions to use `pylock.toml`
@rgaudin ya está trabajando en esto.
Desde el 18/7/2025.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
In many projects we are building (scrapers, zimfarm, ... all besides libraries like python-scraperlib), we use pinned dependencies versions to ensure reproducible builds.
But now the ecosystem has changed and pylock.toml format has landed (see https://packaging.python.org/en/latest/specifications/pylock-toml/)
This file would allow to specify range of versions in pyproject.toml for all projects, and use the pylock.toml to have reproducible builds.
This would allow to simplify significantly dependency upgrades since one will just have to update the pylock.toml to most recent version matching pyproject.toml ranges. This is currently done manually and is quite a pain.
Currently, hatch does not support this pylock.toml file, see e.g. https://github.com/pypa/hatch/issues/749
We could:
- wait for hatch to support it, and help if possible
- downside: not ready
- consider migrating from
hatchtouv- downside1 : hatch-openzim plugin will not work anymore ... but could probably easily be adapted for uv +
- downside2: uv uses its own "proprietary" lock file, which is not really future-proof)
I would clearly prefer to wait for hatch support (and contribute to it as much as possible).
WDYT?
- Lenguaje dominante
- Python
- Estrellas
- 1
- Forks
- 4
- Merge medio
- 22 h 26 min
- PR fusionados (30 d)
- 2
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de openzim/_python-bootstrap
-
Dificultad 3/5 Medio día Aptitud para principiantes 50/100
openzim/_python-bootstrap#58 ·
-
Workflow conventionQuizá libre de nuevo @benoit74 la tomó hace 519 días y no hay ningún pull request abierto. Abiertoquestion
openzim/_python-bootstrap#53 · 1 asignado ·
-
Move `.pre-commit.yaml` to hatchAbiertoenhancement
Dificultad 3/5 1-2 días Aptitud para principiantes 25/100
openzim/_python-bootstrap#51 · 3 comentarios ·
-
What about nested logsQuizá libre de nuevo @rgaudin la tomó hace 793 días y no hay ningún pull request abierto. Abiertoenhancement
openzim/_python-bootstrap#48 · 2 asignados ·
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
openzim/_python-bootstrap#47 · 1 comentario ·
Todos los issues de openzim/_python-bootstrap
Issues similares
-
docs(contributing): the two things that silently block a PRPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoavailable documentation good first issue
Dificultad 1/5 1-3 horas Aptitud para principiantes 95/100
Nixitov/Riptide-Native#944 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
JTHCode/secretguard#24 ·
Los mantenedores suelen responder en 1 día
-
area: middleware documentation good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
-
enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
good first issue
Dificultad 1/5 Menos de una hora Aptitud para principiantes 95/100
omarelshamy25x/shamy-hijri#63 ·
Los mantenedores suelen responder en 1 día