-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: remplacer poetry par uv (#875)
## Description 🎸 utiliser `uv` pour la gestion des environnements virtuels et la gestion des dépendances 🎸 le fichier `requirements.txt` requis par le PAAS `clevercloud` est généré à partir du fichier `uv.lock` versionné, lors du déploiement. ## Type de changement 🚧 technique ### Points d'attention 🦺 suppression du versionning des fichiers `requirements.txt` 🦺 le script `pre_build.sh` est chargé de généré le fichier `requirements.txt` 🦺 les paramètres de `uv export` : * `--format requirements-txt` : export au format avec les hashes des dépendances * `--no-dev` : ignorer les dependances du groupe dev * `--frozen` : ne pas mettre à jour `uv.lock` avant l'export⚠️ mise à jour des variables d'environnement du PAAS ``` CC_PIP_REQUIREMENTS_FILE="./requirements.txt" UV_PROJECT_ENVIRONMENT="/home/bas/venv" ``` 🦺 export du chemin de l'environnement virtuel dans `ci.yml` pour que les étapes suivantes accèdent aux dépendances installées
- Loading branch information
1 parent
6cc5958
commit 3904f46
Showing
14 changed files
with
1,693 additions
and
4,259 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
git clone "$ITOU_SECRETS_HTTPS_REPO_URL" secrets-vault | ||
sops -d secrets-vault/c3/"$ENVIRONMENT".enc.env > .env | ||
|
||
# generate requirements file to let clevercloud know which packages to install | ||
uv export --format requirements-txt --no-dev --frozen > requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.