Add: Entete de licence dans les fichier .py
This commit is contained in:
parent
c63f62721b
commit
f664d07c77
19 changed files with 173 additions and 0 deletions
|
|
@ -1,3 +1,12 @@
|
|||
#
|
||||
# Erminig - Analyse d'arguments pour evezh
|
||||
# Copyright (C) 2025 L0m1g
|
||||
# Sous licence DOUARN - Voir le fichier LICENCE pour les détails
|
||||
#
|
||||
# Ce fichier fait partie du projet Erminig.
|
||||
# Libre comme l’air, stable comme un menhir, et salé comme le beurre.
|
||||
#
|
||||
|
||||
import argparse
|
||||
import json
|
||||
from erminig.controllers.evezh import check
|
||||
|
|
|
|||
|
|
@ -1,3 +1,12 @@
|
|||
#
|
||||
# Erminig - Analyse d'arguments pour govel
|
||||
# Copyright (C) 2025 L0m1g
|
||||
# Sous licence DOUARN - Voir le fichier LICENCE pour les détails
|
||||
#
|
||||
# Ce fichier fait partie du projet Erminig.
|
||||
# Libre comme l’air, stable comme un menhir, et salé comme le beurre.
|
||||
#
|
||||
|
||||
import argparse
|
||||
from erminig.config import Config
|
||||
from erminig.controllers.govel.pakva import Pakva
|
||||
|
|
|
|||
|
|
@ -1,3 +1,12 @@
|
|||
#
|
||||
# Erminig - Initialisation des utilisateurs et répertoires
|
||||
# Copyright (C) 2025 L0m1g
|
||||
# Sous licence DOUARN - Voir le fichier LICENCE pour les détails
|
||||
#
|
||||
# Ce fichier fait partie du projet Erminig.
|
||||
# Libre comme l’air, stable comme un menhir, et salé comme le beurre.
|
||||
#
|
||||
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
|
|
|
|||
|
|
@ -1,3 +1,12 @@
|
|||
#
|
||||
# Erminig - Configuration de l'application
|
||||
# Copyright (C) 2025 L0m1g
|
||||
# Sous licence DOUARN - Voir le fichier LICENCE pour les détails
|
||||
#
|
||||
# Ce fichier fait partie du projet Erminig.
|
||||
# Libre comme l’air, stable comme un menhir, et salé comme le beurre.
|
||||
#
|
||||
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,13 @@
|
|||
#
|
||||
# Erminig - Classe abstraite pour la récupération des nouvelles version de softs.
|
||||
# Copyright (C) 2025 L0m1g
|
||||
# Sous licence DOUARN - Voir le fichier LICENCE pour les détails
|
||||
#
|
||||
# Ce fichier fait partie du projet Erminig.
|
||||
# Libre comme l’air, stable comme un menhir, et salé comme le beurre.
|
||||
#
|
||||
|
||||
|
||||
from abc import ABC, abstractmethod
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,12 @@
|
|||
#
|
||||
# Erminig - Classe globale pour la récupération des dernières versions de softs.
|
||||
# Copyright (C) 2025 L0m1g
|
||||
# Sous licence DOUARN - Voir le fichier LICENCE pour les détails
|
||||
#
|
||||
# Ce fichier fait partie du projet Erminig.
|
||||
# Libre comme l’air, stable comme un menhir, et salé comme le beurre.
|
||||
#
|
||||
|
||||
import json
|
||||
from pathlib import Path
|
||||
import yaml
|
||||
|
|
|
|||
|
|
@ -1,3 +1,12 @@
|
|||
#
|
||||
# Erminig - Récupération de la dernière version d'un soft sur Github via son API
|
||||
# Copyright (C) 2025 L0m1g
|
||||
# Sous licence DOUARN - Voir le fichier LICENCE pour les détails
|
||||
#
|
||||
# Ce fichier fait partie du projet Erminig.
|
||||
# Libre comme l’air, stable comme un menhir, et salé comme le beurre.
|
||||
#
|
||||
|
||||
import re
|
||||
import requests
|
||||
from erminig.config import Config
|
||||
|
|
|
|||
|
|
@ -1,3 +1,12 @@
|
|||
#
|
||||
# Erminig - Recupération de la dernière version d'un soft sur page html
|
||||
# Copyright (C) 2025 L0m1g
|
||||
# Sous licence DOUARN - Voir le fichier LICENCE pour les détails
|
||||
#
|
||||
# Ce fichier fait partie du projet Erminig.
|
||||
# Libre comme l’air, stable comme un menhir, et salé comme le beurre.
|
||||
#
|
||||
|
||||
import re
|
||||
import requests
|
||||
from erminig.controllers.evezh.abstract import UpstreamSource
|
||||
|
|
|
|||
|
|
@ -1,3 +1,12 @@
|
|||
#
|
||||
# Erminig - Recupération de la dernière version d'un soft sur page Sourceforge
|
||||
# Copyright (C) 2025 L0m1g
|
||||
# Sous licence DOUARN - Voir le fichier LICENCE pour les détails
|
||||
#
|
||||
# Ce fichier fait partie du projet Erminig.
|
||||
# Libre comme l’air, stable comme un menhir, et salé comme le beurre.
|
||||
#
|
||||
|
||||
import re
|
||||
import requests
|
||||
import xml.etree.ElementTree as ET
|
||||
|
|
|
|||
|
|
@ -1,3 +1,12 @@
|
|||
#
|
||||
# Erminig - Lancement de la construction du paquet
|
||||
# Copyright (C) 2025 L0m1g
|
||||
# Sous licence DOUARN - Voir le fichier LICENCE pour les détails
|
||||
#
|
||||
# Ce fichier fait partie du projet Erminig.
|
||||
# Libre comme l’air, stable comme un menhir, et salé comme le beurre.
|
||||
#
|
||||
|
||||
import subprocess
|
||||
from erminig.system.security import check_root, check_user_exists, run_as_user
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,12 @@
|
|||
#
|
||||
# Erminig - Création et mise à jour de la révision des fichiers pakva
|
||||
# Copyright (C) 2025 L0m1g
|
||||
# Sous licence DOUARN - Voir le fichier LICENCE pour les détails
|
||||
#
|
||||
# Ce fichier fait partie du projet Erminig.
|
||||
# Libre comme l’air, stable comme un menhir, et salé comme le beurre.
|
||||
#
|
||||
|
||||
from pathlib import Path
|
||||
from erminig.config import Config
|
||||
from erminig.system.security import run_as_user
|
||||
|
|
|
|||
|
|
@ -1,3 +1,12 @@
|
|||
#
|
||||
# Erminig - Rentre la nouvelle version d'un soft dans la base de données
|
||||
# Copyright (C) 2025 L0m1g
|
||||
# Sous licence DOUARN - Voir le fichier LICENCE pour les détails
|
||||
#
|
||||
# Ce fichier fait partie du projet Erminig.
|
||||
# Libre comme l’air, stable comme un menhir, et salé comme le beurre.
|
||||
#
|
||||
|
||||
from erminig.models import versions
|
||||
from erminig.controllers.govel.pakva import Pakva
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,12 @@
|
|||
#
|
||||
# Erminig - initialise la base sqlite
|
||||
# Copyright (C) 2025 L0m1g
|
||||
# Sous licence DOUARN - Voir le fichier LICENCE pour les détails
|
||||
#
|
||||
# Ce fichier fait partie du projet Erminig.
|
||||
# Libre comme l’air, stable comme un menhir, et salé comme le beurre.
|
||||
#
|
||||
|
||||
import sqlite3
|
||||
from erminig.config import Config
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,12 @@
|
|||
#
|
||||
# Erminig - Fonctions relatives à la table upstreams
|
||||
# Copyright (C) 2025 L0m1g
|
||||
# Sous licence DOUARN - Voir le fichier LICENCE pour les détails
|
||||
#
|
||||
# Ce fichier fait partie du projet Erminig.
|
||||
# Libre comme l’air, stable comme un menhir, et salé comme le beurre.
|
||||
#
|
||||
|
||||
from erminig.models.db import ErminigDB
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,12 @@
|
|||
#
|
||||
# Erminig - Fonctions relatives à la table versions
|
||||
# Copyright (C) 2025 L0m1g
|
||||
# Sous licence DOUARN - Voir le fichier LICENCE pour les détails
|
||||
#
|
||||
# Ce fichier fait partie du projet Erminig.
|
||||
# Libre comme l’air, stable comme un menhir, et salé comme le beurre.
|
||||
#
|
||||
|
||||
from erminig.models.db import ErminigDB
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,13 @@
|
|||
#
|
||||
# Erminig - Décorateur pour relancer un téléchargement
|
||||
# Copyright (C) 2025 L0m1g
|
||||
# Sous licence DOUARN - Voir le fichier LICENCE pour les détails
|
||||
#
|
||||
# Ce fichier fait partie du projet Erminig.
|
||||
# Libre comme l’air, stable comme un menhir, et salé comme le beurre.
|
||||
#
|
||||
|
||||
|
||||
import time
|
||||
import requests
|
||||
from erminig.config import Config
|
||||
|
|
|
|||
|
|
@ -1,3 +1,12 @@
|
|||
#
|
||||
# Erminig - Fonctions pour gérer les utilisateurs système.
|
||||
# Copyright (C) 2025 L0m1g
|
||||
# Sous licence DOUARN - Voir le fichier LICENCE pour les détails
|
||||
#
|
||||
# Ce fichier fait partie du projet Erminig.
|
||||
# Libre comme l’air, stable comme un menhir, et salé comme le beurre.
|
||||
#
|
||||
|
||||
import os
|
||||
import pwd
|
||||
import sys
|
||||
|
|
|
|||
|
|
@ -1,3 +1,12 @@
|
|||
#
|
||||
# Erminig - Tests relatifs à la bse de données
|
||||
# Copyright (C) 2025 L0m1g
|
||||
# Sous licence DOUARN - Voir le fichier LICENCE pour les détails
|
||||
#
|
||||
# Ce fichier fait partie du projet Erminig.
|
||||
# Libre comme l’air, stable comme un menhir, et salé comme le beurre.
|
||||
#
|
||||
|
||||
from erminig.config import Config
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,12 @@
|
|||
#
|
||||
# Erminig - Tests relatifs aux fichiers Pakva
|
||||
# Copyright (C) 2025 L0m1g
|
||||
# Sous licence DOUARN - Voir le fichier LICENCE pour les détails
|
||||
#
|
||||
# Ce fichier fait partie du projet Erminig.
|
||||
# Libre comme l’air, stable comme un menhir, et salé comme le beurre.
|
||||
#
|
||||
|
||||
import pytest
|
||||
from pathlib import Path
|
||||
from unittest.mock import patch
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue