Establish single source of truth for Python package versions
#1757 aperta il 3 nov 2021
Metriche repository
- Star
- (2629 stelle)
- Metriche merge PR
- (Nessuna PR mergiata in 30 g)
Descrizione
Is your feature request related to a problem? Please describe. We have several Python packages:
- librelingo_audios
- librelingo_fakes
- librelingo_json_export
- librelingo_types
- librelingo_utils
- librelingo_yaml_loader
packaging is managed by poetry and the version is configured in meta data files, for example:
https://github.com/kantord/LibreLingo/blob/main/apps/librelingo_fakes/pyproject.toml#L3
the problem is, that versions might be (are) used elsewhere. Right not, only in init.py files.
for example:
The problem with this is that we need to be very careful to make sure these versions are always the same. Instead of double checking it every time, we should only need to update it in one place.
Describe the solution you'd like
- The version number of each package is only explicitly specified in one place
Describe alternatives you've considered We could instead have a script that updates this, and/or verify in CI that the version numbers are in sync. I don't like that solution though, because it sounds like it would add unnecessary complication and it still requires manual work to update the version everywhere.
Additional context I found a related thread no GitHub: https://github.com/python-poetry/poetry/issues/273