Fix nom des projets pour les paquets PyPi
Some checks failed
Build & Publish Python Packages / build-and-publish (push) Failing after 12s

This commit is contained in:
lionel
2025-07-08 16:42:00 +02:00
parent e05d576386
commit 59e56fd74c
36 changed files with 49 additions and 37 deletions

View File

@ -2,5 +2,5 @@ build
résumé_P#.xlsx
résumé_torrent.xlsx
résumé.xlsx
HandBrake_recursive.egg-info/
HandBrake-recursive.egg-info/
.venv/

View File

@ -96,6 +96,21 @@ def set_column_width(ws, column_range, width=15):
for col in column_range:
ws.column_dimensions[col].width = width
def convert_gvfs_to_smb(gvfs_path):
# Vérifier si le chemin commence par '/run/user/' et contient 'gvfs/smb-share:'
if 'gvfs/smb-share:' in gvfs_path:
# Extraire les informations du chemin gvfs
parts = gvfs_path.split(',')
server_part = parts[0].split('=')[1] # Récupérer le nom du serveur
share_part = parts[1].split('=')[1] # Récupérer le nom du partage
# Construire le chemin smb://
smb_path = f'smb://{server_part}/{share_part}'
return smb_path
else:
# Si ce n'est pas un lien gvfs, renvoyer la chaîne originale
return gvfs_path
def export_xlsx(lignes, output_directory, fichier_sortie="résumé.xlsx"):
# Charger le classeur existant ou en créer un nouveau
if os.path.exists(fichier_sortie):
@ -146,7 +161,7 @@ def export_xlsx(lignes, output_directory, fichier_sortie="résumé.xlsx"):
gain_percent = calc_gain_percent(input_size, output_size, raw=True)
row = [
f'=HYPERLINK("{os.path.abspath(output_directory)}/{file}","{file}")', # string
f'=HYPERLINK("{convert_gvfs_to_smb(os.path.abspath(output_directory))}/{file}","{file}")', # string
codec, # string
resolution, # string
action, # string

View File

@ -1,10 +1,10 @@
from setuptools import setup
setup(
name='HandBrake_recursive',
name='HandBrake-recursive',
version='0.1.0',
description='Un script pour traiter les fichiers vidéo avec HandBrake de manière récursive.',
py_modules=['HandBrake_recursive'],
py_modules=['HandBrake-recursive'],
install_requires=[
'ffmpeg-python',
'openpyxl',
@ -13,7 +13,7 @@ setup(
],
entry_points={
'console_scripts': [
'handbrake_recursive=HandBrake_recursive:main',
'HandBrake-recursive=HandBrake-recursive:main',
],
},
python_requires='>=3.6',

3
multiplex/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
build
multiplex.egg-info
.venv

3
proxmox-export-disk/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
build
proxmox-export-disk.egg-info/
.venv/

View File

@ -1,16 +1,16 @@
from setuptools import setup
setup(
name='proxmox_export_disk',
name='proxmox-export-disk',
version='0.1.0',
description='Un script pour récupérer l\'utilisation des disques des VMs dans Proxmox.',
py_modules=['proxmox_export_disk'],
py_modules=['proxmox-export-disk'],
install_requires=[
'openpyxl',
],
entry_points={
'console_scripts': [
'proxmox_export_disk=proxmox_export_disk:main',
'proxmox-export-disk=proxmox-export-disk:main',
],
},
python_requires='>=3.6',

View File

@ -1,3 +0,0 @@
build
proxmox_export_disk.egg-info/
.venv/

3
tree-stream/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
build
tree-stream.egg-info/
.venv/

17
tree-stream/setup.py Normal file
View File

@ -0,0 +1,17 @@
from setuptools import setup, find_packages
setup(
name="tree-stream",
version="0.1.0",
description="Affiche une arborescence enrichie des fichiers vidéo avec chapitres et flux",
py_modules=['tree-stream'],
install_requires=[
'ffmpeg-python'
],
entry_points={
"console_scripts": [
"tree-stream=tree-stream:main",
]
},
python_requires='>=3.6',
)

View File

@ -1,3 +0,0 @@
build
tree_stream.egg-info/
.venv/

View File

@ -1,22 +0,0 @@
from setuptools import setup, find_packages
setup(
name="tree_stream",
version="0.1.0",
description="Affiche une arborescence enrichie des fichiers vidéo avec chapitres et flux",
author="TonNom",
packages=find_packages(),
install_requires=["ffmpeg-python"],
entry_points={
"console_scripts": [
"tree_stream=tree_stream.main:main",
]
},
classifiers=[
"Programming Language :: Python :: 3",
"Environment :: Console",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires='>=3.6',
)

View File

@ -1 +0,0 @@
from .main import main