alioune 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. alioune-0.1.0/.github/workflows/publier.yml +34 -0
  2. alioune-0.1.0/.github/workflows/tests.yml +22 -0
  3. alioune-0.1.0/.gitignore +9 -0
  4. alioune-0.1.0/CHANGELOG.md +8 -0
  5. alioune-0.1.0/CONTRIBUTING.md +33 -0
  6. alioune-0.1.0/LICENSE +21 -0
  7. alioune-0.1.0/PKG-INFO +87 -0
  8. alioune-0.1.0/README.md +68 -0
  9. alioune-0.1.0/pyproject.toml +36 -0
  10. alioune-0.1.0/src/alioune/__init__.py +3 -0
  11. alioune-0.1.0/src/alioune/__main__.py +4 -0
  12. alioune-0.1.0/src/alioune/auth.py +59 -0
  13. alioune-0.1.0/src/alioune/cli.py +289 -0
  14. alioune-0.1.0/src/alioune/gabarits/auth/app/creer_admin.py +49 -0
  15. alioune-0.1.0/src/alioune/gabarits/auth/app/dependances.py +57 -0
  16. alioune-0.1.0/src/alioune/gabarits/auth/app/modeles/utilisateur.py +18 -0
  17. alioune-0.1.0/src/alioune/gabarits/auth/app/routeurs/auth.py +39 -0
  18. alioune-0.1.0/src/alioune/gabarits/auth/app/schemas/auth.py +25 -0
  19. alioune-0.1.0/src/alioune/gabarits/auth/app/securite.py +48 -0
  20. alioune-0.1.0/src/alioune/gabarits/auth/app/services/auth.py +41 -0
  21. alioune-0.1.0/src/alioune/gabarits/auth/tests/test_auth.py +51 -0
  22. alioune-0.1.0/src/alioune/gabarits/generer/config.py.j2 +25 -0
  23. alioune-0.1.0/src/alioune/gabarits/generer/migration.py.j2 +24 -0
  24. alioune-0.1.0/src/alioune/gabarits/generer/modele.py.j2 +16 -0
  25. alioune-0.1.0/src/alioune/gabarits/generer/routeur.py.j2 +61 -0
  26. alioune-0.1.0/src/alioune/gabarits/generer/schema.py.j2 +31 -0
  27. alioune-0.1.0/src/alioune/gabarits/generer/service.py.j2 +39 -0
  28. alioune-0.1.0/src/alioune/gabarits/generer/test.py.j2 +65 -0
  29. alioune-0.1.0/src/alioune/gabarits/projet/README.md.j2 +56 -0
  30. alioune-0.1.0/src/alioune/gabarits/projet/alembic/env.py +56 -0
  31. alioune-0.1.0/src/alioune/gabarits/projet/alembic/script.py.mako +25 -0
  32. alioune-0.1.0/src/alioune/gabarits/projet/alembic/versions/dot_gitkeep +0 -0
  33. alioune-0.1.0/src/alioune/gabarits/projet/alembic.ini +40 -0
  34. alioune-0.1.0/src/alioune/gabarits/projet/alioune.json.j2 +6 -0
  35. alioune-0.1.0/src/alioune/gabarits/projet/app/__init__.py +0 -0
  36. alioune-0.1.0/src/alioune/gabarits/projet/app/base_de_donnees.py.j2 +39 -0
  37. alioune-0.1.0/src/alioune/gabarits/projet/app/config.py.j2 +40 -0
  38. alioune-0.1.0/src/alioune/gabarits/projet/app/gabarits/accueil.html +55 -0
  39. alioune-0.1.0/src/alioune/gabarits/projet/app/main.py +25 -0
  40. alioune-0.1.0/src/alioune/gabarits/projet/app/modeles/__init__.py +11 -0
  41. alioune-0.1.0/src/alioune/gabarits/projet/app/modeles/base.py +19 -0
  42. alioune-0.1.0/src/alioune/gabarits/projet/app/routeurs/__init__.py +13 -0
  43. alioune-0.1.0/src/alioune/gabarits/projet/app/routeurs/accueil.py +26 -0
  44. alioune-0.1.0/src/alioune/gabarits/projet/app/routeurs/sante.py +18 -0
  45. alioune-0.1.0/src/alioune/gabarits/projet/app/schemas/__init__.py +1 -0
  46. alioune-0.1.0/src/alioune/gabarits/projet/app/services/__init__.py +1 -0
  47. alioune-0.1.0/src/alioune/gabarits/projet/dot_env.example.j2 +8 -0
  48. alioune-0.1.0/src/alioune/gabarits/projet/dot_gitignore +9 -0
  49. alioune-0.1.0/src/alioune/gabarits/projet/pytest.ini +3 -0
  50. alioune-0.1.0/src/alioune/gabarits/projet/requirements-dev.txt +3 -0
  51. alioune-0.1.0/src/alioune/gabarits/projet/requirements.txt.j2 +9 -0
  52. alioune-0.1.0/src/alioune/gabarits/projet/tests/__init__.py +0 -0
  53. alioune-0.1.0/src/alioune/gabarits/projet/tests/conftest.py +35 -0
  54. alioune-0.1.0/src/alioune/gabarits/projet/tests/test_accueil.py +16 -0
  55. alioune-0.1.0/src/alioune/gabarits/projet/tests/test_sante.py +8 -0
  56. alioune-0.1.0/src/alioune/generateurs.py +294 -0
  57. alioune-0.1.0/src/alioune/migrations.py +100 -0
  58. alioune-0.1.0/src/alioune/moteur.py +87 -0
  59. alioune-0.1.0/src/alioune/noms.py +55 -0
  60. alioune-0.1.0/src/alioune/nouveau.py +87 -0
  61. alioune-0.1.0/src/alioune/plan.py +107 -0
  62. alioune-0.1.0/src/alioune/projet.py +38 -0
  63. alioune-0.1.0/tests/test_creation.py +71 -0
  64. alioune-0.1.0/tests/test_generation.py +142 -0
@@ -0,0 +1,34 @@
1
+ name: Publication sur PyPI
2
+
3
+ # Se déclenche quand tu publies une « Release » sur GitHub.
4
+ on:
5
+ release:
6
+ types: [published]
7
+
8
+ jobs:
9
+ construire:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v4
13
+ - uses: actions/setup-python@v5
14
+ with:
15
+ python-version: "3.12"
16
+ - run: python -m pip install build
17
+ - run: python -m build
18
+ - uses: actions/upload-artifact@v4
19
+ with:
20
+ name: paquet
21
+ path: dist/
22
+
23
+ publier:
24
+ needs: construire
25
+ runs-on: ubuntu-latest
26
+ environment: pypi
27
+ permissions:
28
+ id-token: write # « Trusted Publishing » : aucun mot de passe ni token à stocker
29
+ steps:
30
+ - uses: actions/download-artifact@v4
31
+ with:
32
+ name: paquet
33
+ path: dist/
34
+ - uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,22 @@
1
+ name: Tests
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+
8
+ jobs:
9
+ tests:
10
+ runs-on: ${{ matrix.os }}
11
+ strategy:
12
+ fail-fast: false
13
+ matrix:
14
+ os: [ubuntu-latest, windows-latest]
15
+ python: ["3.10", "3.12", "3.13"]
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+ - uses: actions/setup-python@v5
19
+ with:
20
+ python-version: ${{ matrix.python }}
21
+ - run: python -m pip install -e ".[dev]"
22
+ - run: python -m pytest -q
@@ -0,0 +1,9 @@
1
+ .venv/
2
+ __pycache__/
3
+ *.pyc
4
+ dist/
5
+ build/
6
+ *.egg-info/
7
+ .pytest_cache/
8
+ .idea/
9
+ .vscode/
@@ -0,0 +1,8 @@
1
+ # Journal des modifications
2
+
3
+ ## 0.1.0
4
+
5
+ - `alioune new` : crée un projet FastAPI fonctionnel (SQLAlchemy 2.0, Alembic, tests, page d'accueil).
6
+ - `alioune generate` : ressource, modèle, schéma, service, routeur, migration, config.
7
+ - `alioune auth` : authentification optionnelle (JWT, Argon2, rôles).
8
+ - `alioune serve`, `migrate`, `routes`, `info`.
@@ -0,0 +1,33 @@
1
+ # Contribuer à alioune
2
+
3
+ ```bash
4
+ git clone <url-du-depot>
5
+ cd alioune-cli
6
+ python -m venv .venv
7
+ source .venv/bin/activate # Windows : .venv\Scripts\activate
8
+ pip install -e ".[dev]"
9
+ pytest
10
+ ```
11
+
12
+ ## Où est quoi
13
+
14
+ | Dossier / fichier | Rôle |
15
+ |---|---|
16
+ | `src/alioune/cli.py` | Les commandes (`new`, `generate`, `auth`, `serve`...) |
17
+ | `src/alioune/gabarits/projet/` | Ce que `alioune new` crée |
18
+ | `src/alioune/gabarits/generer/` | Les gabarits de `alioune generate` |
19
+ | `src/alioune/gabarits/auth/` | Ce que `alioune auth` installe |
20
+ | `src/alioune/generateurs.py` | Logique de `generate` (champs, plan d'écriture) |
21
+ | `tests/` | Tests du CLI |
22
+
23
+ ## Règles des gabarits
24
+
25
+ - Un fichier `.j2` est rendu avec Jinja2 ; les autres sont copiés tels quels.
26
+ - `dot_xxx` devient `.xxx` (fichiers cachés).
27
+ - Le code généré est écrit en français, avec les API à jour de FastAPI et SQLAlchemy 2.0.
28
+ - Tout changement de gabarit doit garder le projet généré fonctionnel : lance `pytest`, puis génère un vrai projet et exécute ses tests.
29
+
30
+ ## Proposer un changement
31
+
32
+ 1. Crée une branche, modifie, ajoute un test.
33
+ 2. Vérifie `pytest`, puis ouvre une Pull Request.
alioune-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Alioune
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
alioune-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,87 @@
1
+ Metadata-Version: 2.5
2
+ Name: alioune
3
+ Version: 0.1.0
4
+ Summary: Générateur de projets et de code pour FastAPI : l'équivalent d'Angular CLI ou d'Artisan (Laravel), en français.
5
+ Author: Alioune
6
+ License-Expression: MIT
7
+ License-File: LICENSE
8
+ Keywords: alembic,cli,fastapi,generateur,scaffolding,sqlalchemy
9
+ Classifier: Framework :: FastAPI
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Topic :: Software Development :: Code Generators
12
+ Requires-Python: >=3.10
13
+ Requires-Dist: jinja2>=3.1
14
+ Requires-Dist: rich>=13
15
+ Requires-Dist: typer>=0.15
16
+ Provides-Extra: dev
17
+ Requires-Dist: pytest>=8; extra == 'dev'
18
+ Description-Content-Type: text/markdown
19
+
20
+ # alioune
21
+
22
+ Générateur de projets et de code pour **FastAPI** : l'équivalent d'Angular CLI (`ng new`) ou d'Artisan (Laravel), pensé pour une architecture en couches et du code en français.
23
+
24
+ ```bash
25
+ pipx install alioune # ou : pip install alioune
26
+ alioune new ma-boutique
27
+ cd ma-boutique
28
+ alioune serve # http://127.0.0.1:8000
29
+ ```
30
+
31
+ `alioune new` crée un projet **fonctionnel dès le premier lancement** : environnement virtuel, dépendances installées, `.env`, SQLAlchemy 2.0, Alembic, tests, et une page d'accueil avec le nom du projet et les liens vers les documentations.
32
+
33
+ ## Générer du code (comme `ng g` / `php artisan make:`)
34
+
35
+ ```bash
36
+ alioune g ressource produit -c "nom:str,prix:decimal,description:text?,actif:bool"
37
+ alioune migrate
38
+ ```
39
+
40
+ Une **ressource** crée d'un coup : modèle, schémas (création / mise à jour / lecture), service (CRUD), routeur (liste paginée, lecture, création, PATCH, suppression), migration Alembic chaînée et un fichier de tests. Le modèle et le routeur sont inscrits automatiquement dans `app/modeles/__init__.py` et `app/routeurs/__init__.py`.
41
+
42
+ | Type | Génère |
43
+ |---|---|
44
+ | `ressource` | tout ce qui précède |
45
+ | `modele`, `schema`, `service`, `routeur` | un seul fichier (avec inscription si besoin) |
46
+ | `migration` | une migration vide, chaînée à la dernière |
47
+ | `config` | une classe de paramètres (`pydantic-settings`) + variables dans `.env` |
48
+
49
+ Options : `-c/--champs` (types : `str text int float decimal bool date datetime`, `?` = facultatif), `--pluriel`, `--protege`, `--simuler` (n'écrit rien), `--force`. Un fichier existant n'est jamais écrasé sans `--force`.
50
+
51
+ ## Authentification (comme Breeze pour Laravel)
52
+
53
+ L'authentification est **optionnelle** : si tu as la tienne, ne lance rien.
54
+
55
+ ```bash
56
+ alioune auth
57
+ alioune migrate
58
+ python -m app.creer_admin admin@exemple.com
59
+ alioune g ressource commande --protege # route réservée aux utilisateurs connectés
60
+ ```
61
+
62
+ Installe : modèle `Utilisateur`, hachage Argon2, JWT, routes `POST /api/auth/inscription`, `POST /api/auth/connexion`, `GET /api/auth/moi`, dépendances `UtilisateurCourant` / `UtilisateurAdmin` / `exiger_role(...)`, migration et tests. Le code installé t'appartient : modifie-le librement.
63
+
64
+ ## Commandes
65
+
66
+ | Commande | Rôle |
67
+ |---|---|
68
+ | `alioune generate` (`g`) `<type> <nom>` | Génère du code (voir ci-dessus) |
69
+ | `alioune auth` | Installe l'authentification |
70
+ | `alioune new <nom> [--base postgresql\|sqlite] [--sans-installation] [--sans-git]` | Crée un projet |
71
+ | `alioune serve [--port 8000]` | Lance uvicorn avec rechargement automatique |
72
+ | `alioune migrate [--annuler]` | Applique (ou annule) les migrations Alembic |
73
+ | `alioune routes` | Liste les routes de l'application |
74
+ | `alioune info` | Affiche les informations du projet |
75
+
76
+ ## Développement
77
+
78
+ ```bash
79
+ pip install -e ".[dev]"
80
+ pytest
81
+ ```
82
+
83
+ Les gabarits sont dans `src/alioune/gabarits/`. Un fichier `.j2` est rendu avec Jinja2, les autres sont copiés tels quels, et `dot_` devient `.` pour les fichiers cachés.
84
+
85
+ ## Licence
86
+
87
+ MIT
@@ -0,0 +1,68 @@
1
+ # alioune
2
+
3
+ Générateur de projets et de code pour **FastAPI** : l'équivalent d'Angular CLI (`ng new`) ou d'Artisan (Laravel), pensé pour une architecture en couches et du code en français.
4
+
5
+ ```bash
6
+ pipx install alioune # ou : pip install alioune
7
+ alioune new ma-boutique
8
+ cd ma-boutique
9
+ alioune serve # http://127.0.0.1:8000
10
+ ```
11
+
12
+ `alioune new` crée un projet **fonctionnel dès le premier lancement** : environnement virtuel, dépendances installées, `.env`, SQLAlchemy 2.0, Alembic, tests, et une page d'accueil avec le nom du projet et les liens vers les documentations.
13
+
14
+ ## Générer du code (comme `ng g` / `php artisan make:`)
15
+
16
+ ```bash
17
+ alioune g ressource produit -c "nom:str,prix:decimal,description:text?,actif:bool"
18
+ alioune migrate
19
+ ```
20
+
21
+ Une **ressource** crée d'un coup : modèle, schémas (création / mise à jour / lecture), service (CRUD), routeur (liste paginée, lecture, création, PATCH, suppression), migration Alembic chaînée et un fichier de tests. Le modèle et le routeur sont inscrits automatiquement dans `app/modeles/__init__.py` et `app/routeurs/__init__.py`.
22
+
23
+ | Type | Génère |
24
+ |---|---|
25
+ | `ressource` | tout ce qui précède |
26
+ | `modele`, `schema`, `service`, `routeur` | un seul fichier (avec inscription si besoin) |
27
+ | `migration` | une migration vide, chaînée à la dernière |
28
+ | `config` | une classe de paramètres (`pydantic-settings`) + variables dans `.env` |
29
+
30
+ Options : `-c/--champs` (types : `str text int float decimal bool date datetime`, `?` = facultatif), `--pluriel`, `--protege`, `--simuler` (n'écrit rien), `--force`. Un fichier existant n'est jamais écrasé sans `--force`.
31
+
32
+ ## Authentification (comme Breeze pour Laravel)
33
+
34
+ L'authentification est **optionnelle** : si tu as la tienne, ne lance rien.
35
+
36
+ ```bash
37
+ alioune auth
38
+ alioune migrate
39
+ python -m app.creer_admin admin@exemple.com
40
+ alioune g ressource commande --protege # route réservée aux utilisateurs connectés
41
+ ```
42
+
43
+ Installe : modèle `Utilisateur`, hachage Argon2, JWT, routes `POST /api/auth/inscription`, `POST /api/auth/connexion`, `GET /api/auth/moi`, dépendances `UtilisateurCourant` / `UtilisateurAdmin` / `exiger_role(...)`, migration et tests. Le code installé t'appartient : modifie-le librement.
44
+
45
+ ## Commandes
46
+
47
+ | Commande | Rôle |
48
+ |---|---|
49
+ | `alioune generate` (`g`) `<type> <nom>` | Génère du code (voir ci-dessus) |
50
+ | `alioune auth` | Installe l'authentification |
51
+ | `alioune new <nom> [--base postgresql\|sqlite] [--sans-installation] [--sans-git]` | Crée un projet |
52
+ | `alioune serve [--port 8000]` | Lance uvicorn avec rechargement automatique |
53
+ | `alioune migrate [--annuler]` | Applique (ou annule) les migrations Alembic |
54
+ | `alioune routes` | Liste les routes de l'application |
55
+ | `alioune info` | Affiche les informations du projet |
56
+
57
+ ## Développement
58
+
59
+ ```bash
60
+ pip install -e ".[dev]"
61
+ pytest
62
+ ```
63
+
64
+ Les gabarits sont dans `src/alioune/gabarits/`. Un fichier `.j2` est rendu avec Jinja2, les autres sont copiés tels quels, et `dot_` devient `.` pour les fichiers cachés.
65
+
66
+ ## Licence
67
+
68
+ MIT
@@ -0,0 +1,36 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "alioune"
7
+ version = "0.1.0"
8
+ description = "Générateur de projets et de code pour FastAPI : l'équivalent d'Angular CLI ou d'Artisan (Laravel), en français."
9
+ readme = "README.md"
10
+ requires-python = ">=3.10"
11
+ license = "MIT"
12
+ license-files = ["LICENSE"]
13
+ authors = [{ name = "Alioune" }]
14
+ keywords = ["fastapi", "cli", "generateur", "scaffolding", "sqlalchemy", "alembic"]
15
+ classifiers = [
16
+ "Framework :: FastAPI",
17
+ "Programming Language :: Python :: 3",
18
+ "Topic :: Software Development :: Code Generators",
19
+ ]
20
+ dependencies = [
21
+ "typer>=0.15",
22
+ "rich>=13",
23
+ "jinja2>=3.1",
24
+ ]
25
+
26
+ [project.optional-dependencies]
27
+ dev = ["pytest>=8"]
28
+
29
+ [project.scripts]
30
+ alioune = "alioune.cli:app"
31
+
32
+ [tool.hatch.build.targets.wheel]
33
+ packages = ["src/alioune"]
34
+
35
+ [tool.pytest.ini_options]
36
+ testpaths = ["tests"]
@@ -0,0 +1,3 @@
1
+ """alioune : générateur de projets et de code pour FastAPI."""
2
+
3
+ __version__ = "0.1.0"
@@ -0,0 +1,4 @@
1
+ from alioune.cli import app
2
+
3
+ if __name__ == "__main__":
4
+ app()
@@ -0,0 +1,59 @@
1
+ """Logique de `alioune auth` : installe l'authentification (JWT) dans un projet."""
2
+
3
+ from __future__ import annotations
4
+
5
+ from pathlib import Path
6
+
7
+ from alioune.generateurs import (
8
+ CHEMIN_MODELES_INIT,
9
+ CHEMIN_ROUTEURS_INIT,
10
+ MARQUEUR_IMPORTS,
11
+ MARQUEUR_INCLUSIONS,
12
+ MARQUEUR_MODELES,
13
+ )
14
+ from alioune.migrations import lignes_creation_table, preparer_migration
15
+ from alioune.moteur import rendre_en_memoire
16
+ from alioune.plan import Insertion, Plan
17
+
18
+ DEPENDANCES = [
19
+ ("pyjwt>=2.8", "pyjwt"),
20
+ ("pwdlib[argon2]>=0.2", "pwdlib"),
21
+ ("email-validator>=2.1", "email-validator"),
22
+ ("python-multipart>=0.0.9", "python-multipart"),
23
+ ]
24
+
25
+
26
+ def preparer_auth(racine: Path) -> Plan:
27
+ plan = Plan()
28
+ plan.creations += rendre_en_memoire("auth", {})
29
+
30
+ colonnes = [
31
+ 'sa.Column("email", sa.String(length=255), nullable=False)',
32
+ 'sa.Column("nom_complet", sa.String(length=255), nullable=False)',
33
+ 'sa.Column("mot_de_passe_hache", sa.String(length=255), nullable=False)',
34
+ 'sa.Column("role", sa.String(length=50), nullable=False)',
35
+ 'sa.Column("est_actif", sa.Boolean(), nullable=False)',
36
+ ]
37
+ haut, bas = lignes_creation_table(
38
+ "utilisateurs", colonnes, index=[("ix_utilisateurs_email", "email", True)]
39
+ )
40
+ plan.creations.append(preparer_migration(racine, "creer_table_utilisateurs", haut, bas))
41
+
42
+ plan.insertions += [
43
+ Insertion(
44
+ CHEMIN_MODELES_INIT,
45
+ "from app.modeles.utilisateur import Utilisateur # noqa: F401",
46
+ MARQUEUR_MODELES,
47
+ ),
48
+ Insertion(
49
+ CHEMIN_ROUTEURS_INIT,
50
+ "from app.routeurs.auth import routeur as routeur_auth",
51
+ MARQUEUR_IMPORTS,
52
+ ),
53
+ Insertion(
54
+ CHEMIN_ROUTEURS_INIT, "routeur_api.include_router(routeur_auth)", MARQUEUR_INCLUSIONS
55
+ ),
56
+ ]
57
+ for ligne, cle in DEPENDANCES:
58
+ plan.insertions.append(Insertion(Path("requirements.txt"), ligne, cle=cle))
59
+ return plan