io4it 0.0.0.12.3__tar.gz → 0.0.0.12.4__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 (36) hide show
  1. io4it-0.0.0.12.4/PKG-INFO +8 -0
  2. io4it-0.0.0.12.4/io4it.egg-info/PKG-INFO +8 -0
  3. {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/io4it.egg-info/requires.txt +0 -5
  4. {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/setup.py +47 -26
  5. io4it-0.0.0.12.3/PKG-INFO +0 -10
  6. io4it-0.0.0.12.3/io4it.egg-info/PKG-INFO +0 -10
  7. {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/License.txt +0 -0
  8. {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/io4it.egg-info/SOURCES.txt +0 -0
  9. {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/io4it.egg-info/dependency_links.txt +0 -0
  10. {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/io4it.egg-info/entry_points.txt +0 -0
  11. {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/io4it.egg-info/namespace_packages.txt +0 -0
  12. {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/io4it.egg-info/top_level.txt +0 -0
  13. {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/IO4IT/__init__.py +0 -0
  14. {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/IO4IT/ocr_function/__init__.py +0 -0
  15. {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/IO4IT/ocr_function/word_converter.py +0 -0
  16. {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/IO4IT/widgets/OWMarkdownizer.py +0 -0
  17. {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/IO4IT/widgets/OWPathPropagator.py +0 -0
  18. {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/IO4IT/widgets/OWS3Uploader.py +0 -0
  19. {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/IO4IT/widgets/OWS3downloader.py +0 -0
  20. {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/IO4IT/widgets/OWS3list.py +0 -0
  21. {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/IO4IT/widgets/OWSpeechToText.py +0 -0
  22. {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/IO4IT/widgets/OWwordpdf2docx.py +0 -0
  23. {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/IO4IT/widgets/__init__.py +0 -0
  24. {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/IO4IT/widgets/designer/ow_in_or_out_path.ui +0 -0
  25. {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/IO4IT/widgets/designer/owspeechtotext.ui +0 -0
  26. {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/IO4IT/widgets/designer/wordpdf2docx.ui +0 -0
  27. {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/IO4IT/widgets/icons/category.svg +0 -0
  28. {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/IO4IT/widgets/icons/download.png +0 -0
  29. {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/IO4IT/widgets/icons/in_or_out.png +0 -0
  30. {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/IO4IT/widgets/icons/list_aws.png +0 -0
  31. {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/IO4IT/widgets/icons/md.png +0 -0
  32. {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/IO4IT/widgets/icons/speech_to_text.png +0 -0
  33. {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/IO4IT/widgets/icons/upload.png +0 -0
  34. {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/IO4IT/widgets/icons/wordpdf2docx.png +0 -0
  35. {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/__init__.py +0 -0
  36. {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/setup.cfg +0 -0
@@ -0,0 +1,8 @@
1
+ Metadata-Version: 2.1
2
+ Name: io4it
3
+ Version: 0.0.0.12.4
4
+ Home-page:
5
+ Author:
6
+ Author-email:
7
+ Keywords: orange3 add-on
8
+ License-File: License.txt
@@ -0,0 +1,8 @@
1
+ Metadata-Version: 2.1
2
+ Name: io4it
3
+ Version: 0.0.0.12.4
4
+ Home-page:
5
+ Author:
6
+ Author-email:
7
+ Keywords: orange3 add-on
8
+ License-File: License.txt
@@ -8,8 +8,3 @@ pyannote.audio
8
8
  pyannote.core
9
9
  wave
10
10
  scikit-learn
11
-
12
- [cuda]
13
- torch
14
- torchvision
15
- torchaudio
@@ -7,30 +7,63 @@ import sys
7
7
  import subprocess
8
8
  from setuptools.command.install import install
9
9
 
10
- class PostInstallCommand(install):
11
- """Post-installation pour l'installation GPU."""
10
+ from setuptools import setup, find_packages
11
+ import sys
12
+ import subprocess
13
+ import platform
14
+ from setuptools.command.install import install
15
+
16
+ class CustomInstall(install):
12
17
  def run(self):
13
- install.run(self) # Installation normale
18
+ # Installation normale d'abord
19
+ install.run(self)
14
20
 
15
- # Tentative d'installation PyTorch CUDA après l'installation principale
21
+ # Vérification CUDA seulement sur Windows
22
+ if platform.system() == "Windows":
23
+ self._install_torch_cuda()
24
+
25
+ def _install_torch_cuda(self):
26
+ try:
27
+ import torch
28
+ if torch.cuda.is_available():
29
+ print("\n PyTorch CUDA est déjà installé et fonctionnel")
30
+ return
31
+ except ImportError:
32
+ pass
33
+
34
+ print("\n🔧 Tentative d'installation de PyTorch CUDA 12.6...")
16
35
  try:
17
36
  subprocess.check_call([
18
37
  sys.executable, '-m', 'pip', 'install',
19
- 'torch', 'torchvision', 'torchaudio',
20
- '--index-url', 'https://download.pytorch.org/whl/cu126'
38
+ 'torch==2.2.2+cu126',
39
+ 'torchvision==0.17.2+cu126',
40
+ 'torchaudio==2.2.2+cu126',
41
+ '--index-url', 'https://download.pytorch.org/whl/cu126',
42
+ '--no-deps' # Évite de réinstaller les dépendances existantes
21
43
  ])
22
44
  print("\n\n PyTorch CUDA installé avec succès")
23
45
  except subprocess.CalledProcessError:
24
- print("\n\n IMPORTANT : Pour l'accélération GPU, exécutez MANUELLEMENT:")
25
- print("pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu126")
26
-
46
+ print("\n\n ÉCHEC de l'installation automatique de PyTorch CUDA")
47
+ print("Veuillez exécuter MANUELLEMENT cette commande :")
48
+ print("pip install torch==2.2.2+cu126 torchvision==0.17.2+cu126 torchaudio==2.2.2+cu126 --index-url https://download.pytorch.org/whl/cu126")
27
49
 
28
- # Nom du package PyPI ('pip install NAME')
50
+ # Configuration
29
51
  NAME = "io4it"
52
+ VERSION = "0.0.0.12.4" # Incrémentez la version
30
53
 
31
- # Version du package PyPI
32
- VERSION = "0.0.0.12.3" # la version doit être supérieure à la précédente sinon la publication sera refusée
33
-
54
+ INSTALL_REQUIRES = [
55
+ "boto3",
56
+ "docling",
57
+ "docling-core",
58
+ "speechbrain",
59
+ "whisper",
60
+ "whisper-openai",
61
+ "pyannote.audio",
62
+ "pyannote.core",
63
+ "wave",
64
+ "scikit-learn",
65
+ # Exclure torch intentionnellement
66
+ ]
34
67
  # Facultatif / Adaptable à souhait
35
68
  AUTHOR = ""
36
69
  AUTHOR_EMAIL = ""
@@ -71,14 +104,6 @@ INSTALL_REQUIRES = [
71
104
  # NE PAS inclure torch ici
72
105
  ]
73
106
 
74
- # Extras optionnels pour CUDA
75
- EXTRAS_REQUIRE = {
76
- "cuda": [
77
- "torch",
78
- "torchvision",
79
- "torchaudio"
80
- ]
81
- }
82
107
  # Spécifie le dossier contenant les widgets et le nom de section qu'aura l'addon sur Orange
83
108
  ENTRY_POINTS = {
84
109
  "orange.widgets": (
@@ -111,14 +136,10 @@ setup(
111
136
  packages=PACKAGES,
112
137
  package_data=PACKAGE_DATA,
113
138
  install_requires=INSTALL_REQUIRES,
114
- extras_require=EXTRAS_REQUIRE,
115
139
  entry_points=ENTRY_POINTS,
116
140
  namespace_packages=NAMESPACE_PACKAGES,
117
- description="Package nécessitant PyTorch CUDA. Après installation, exécutez:\n"
118
- "pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu126",
119
-
120
141
  cmdclass={
121
- 'install': PostInstallCommand,
142
+ 'install': CustomInstall,
122
143
  },
123
144
  )
124
145
 
io4it-0.0.0.12.3/PKG-INFO DELETED
@@ -1,10 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: io4it
3
- Version: 0.0.0.12.3
4
- Summary: Package nécessitant PyTorch CUDA. Après installation, exécutez:
5
- Home-page:
6
- Author:
7
- Author-email:
8
- Keywords: orange3 add-on
9
- Provides-Extra: cuda
10
- License-File: License.txt
@@ -1,10 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: io4it
3
- Version: 0.0.0.12.3
4
- Summary: Package nécessitant PyTorch CUDA. Après installation, exécutez:
5
- Home-page:
6
- Author:
7
- Author-email:
8
- Keywords: orange3 add-on
9
- Provides-Extra: cuda
10
- License-File: License.txt
File without changes
File without changes