erplibre/script/git
Mathieu Benoit a60baf743e [FIX] commit msg : chercher lib_identifiant sans masquer GitPython
Le répertoire ajouté est `script/`, qui porte un `git/` : en tête de
`sys.path`, il fait résoudre `import git` vers ce paquet plutôt que vers
GitPython, pour tout module importé ENSUITE dans le même processus — une
bibliothèque tierce disparaît parce qu'une des nôtres porte le même nom.
En queue, `lib_identifiant` se trouve toujours et les paquets installés
gardent la priorité ; la racine du dépôt suit la même règle, elle porte un
`test/` homonyme d'un paquet standard.
Mesuré : `unittest discover -p 'test_git*.py'` passe de 49 tests et une
erreur d'import à 84 verts ; le hook commit-msg reste vérifié.

--- EN ---

The directory being added is `script/`, which holds a `git/`: at the head of
`sys.path` it makes `import git` resolve to that package rather than to
GitPython, for every module imported AFTERWARDS in the same process — a
third-party library vanishes because one of ours bears the same name.
At the tail, `lib_identifiant` is still found and installed packages keep
their precedence; the repository root follows the same rule, it holds a
`test/` sharing its name with a standard library package.
Measured: `unittest discover -p 'test_git*.py'` goes from 49 tests and one
import error to 84 green; the commit-msg hook stays verified.

Assisted-by: Claude Opus 5
2026-09-04 03:48:36 +00:00
..
hooks [I18N] commit-msg : le garde-fou parle la langue du dépôt 2026-08-31 00:50:31 -04:00
__init__.py [UPD] script: move script git, manifest, database, poetry, install 2023-01-02 21:54:20 -05:00
clean_repo_manifest.sh [FIX] git clean repo manifest adapt for multi odoo 2025-11-05 04:36:47 -05:00
commit_msg_lib.py [FIX] commit msg : chercher lib_identifiant sans masquer GitPython 2026-09-04 03:48:36 +00:00
fork_project.py [IMP] script: update copyright year to 2026 2026-03-11 23:16:05 -04:00
fork_project_ERPLibre.py [IMP] script: update copyright year to 2026 2026-03-11 23:16:05 -04:00
git_change_remote.py [IMP] script: update copyright year to 2026 2026-03-11 23:16:05 -04:00
git_change_remote_https_to_git.py [IMP] script: update copyright year to 2026 2026-03-11 23:16:05 -04:00
git_diff_repo_manifest.py [IMP] script: update copyright year to 2026 2026-03-11 23:16:05 -04:00
git_local_server.py [UPD] script Format 2026-03-14 23:26:31 -04:00
git_merge_repo_manifest.py [ADD] installation: add optional extra modules (CybroOdoo) 2026-08-07 02:09:24 -04:00
git_repo_manifest.py [IMP] script: update copyright year to 2026 2026-03-11 23:16:05 -04:00
git_repo_update_group.py [ADD] commentaires : un relevé non bloquant, sa règle, le code nettoyé 2026-08-30 06:08:30 -04:00
git_show_code_diff_repo_manifest.py [IMP] script: update copyright year to 2026 2026-03-11 23:16:05 -04:00
git_tool.py [FIX] git tool : garder le dépôt racine quand le manifeste manque 2026-09-04 03:48:32 +00:00
git_update_repo.py [IMP] script: update copyright year to 2026 2026-03-11 23:16:05 -04:00
github_api.py [FIX] script: différer les annotations, la 12 tourne en Python 3.7 2026-08-23 03:13:58 -04:00
pull_request_ERPLibre.py [IMP] script: update copyright year to 2026 2026-03-11 23:16:05 -04:00
remote_code_generation_git_compare.py [IMP] script: update copyright year to 2026 2026-03-11 23:16:05 -04:00
repo_diff_last_version.sh [IMP] refactoring .venv.erplibre 2025-10-31 01:34:26 -04:00
repo_diff_stat_last_version.sh [IMP] refactoring .venv.erplibre 2025-10-31 01:34:26 -04:00
repo_remove_auto_install.py [IMP] script: update copyright year to 2026 2026-03-11 23:16:05 -04:00
repo_revert_git_diff_date_from_code_generator.py [IMP] script: update copyright year to 2026 2026-03-11 23:16:05 -04:00
repo_url.py [FIX] script: différer les annotations, la 12 tourne en Python 3.7 2026-08-23 03:13:58 -04:00
tag_push_all.py [IMP] script: update copyright year to 2026 2026-03-11 23:16:05 -04:00