io4it 0.0.0.11__tar.gz → 0.0.0.12.1__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 (34) hide show
  1. {io4it-0.0.0.11 → io4it-0.0.0.12.1}/PKG-INFO +2 -1
  2. {io4it-0.0.0.11 → io4it-0.0.0.12.1}/io4it.egg-info/PKG-INFO +2 -1
  3. {io4it-0.0.0.11 → io4it-0.0.0.12.1}/orangecontrib/IO4IT/ocr_function/word_converter.py +1 -1
  4. {io4it-0.0.0.11 → io4it-0.0.0.12.1}/setup.py +40 -5
  5. {io4it-0.0.0.11 → io4it-0.0.0.12.1}/License.txt +0 -0
  6. {io4it-0.0.0.11 → io4it-0.0.0.12.1}/io4it.egg-info/SOURCES.txt +0 -0
  7. {io4it-0.0.0.11 → io4it-0.0.0.12.1}/io4it.egg-info/dependency_links.txt +0 -0
  8. {io4it-0.0.0.11 → io4it-0.0.0.12.1}/io4it.egg-info/entry_points.txt +0 -0
  9. {io4it-0.0.0.11 → io4it-0.0.0.12.1}/io4it.egg-info/namespace_packages.txt +0 -0
  10. {io4it-0.0.0.11 → io4it-0.0.0.12.1}/io4it.egg-info/requires.txt +0 -0
  11. {io4it-0.0.0.11 → io4it-0.0.0.12.1}/io4it.egg-info/top_level.txt +0 -0
  12. {io4it-0.0.0.11 → io4it-0.0.0.12.1}/orangecontrib/IO4IT/__init__.py +0 -0
  13. {io4it-0.0.0.11 → io4it-0.0.0.12.1}/orangecontrib/IO4IT/ocr_function/__init__.py +0 -0
  14. {io4it-0.0.0.11 → io4it-0.0.0.12.1}/orangecontrib/IO4IT/widgets/OWMarkdownizer.py +0 -0
  15. {io4it-0.0.0.11 → io4it-0.0.0.12.1}/orangecontrib/IO4IT/widgets/OWPathPropagator.py +0 -0
  16. {io4it-0.0.0.11 → io4it-0.0.0.12.1}/orangecontrib/IO4IT/widgets/OWS3Uploader.py +0 -0
  17. {io4it-0.0.0.11 → io4it-0.0.0.12.1}/orangecontrib/IO4IT/widgets/OWS3downloader.py +0 -0
  18. {io4it-0.0.0.11 → io4it-0.0.0.12.1}/orangecontrib/IO4IT/widgets/OWS3list.py +0 -0
  19. {io4it-0.0.0.11 → io4it-0.0.0.12.1}/orangecontrib/IO4IT/widgets/OWSpeechToText.py +0 -0
  20. {io4it-0.0.0.11 → io4it-0.0.0.12.1}/orangecontrib/IO4IT/widgets/OWwordpdf2docx.py +0 -0
  21. {io4it-0.0.0.11 → io4it-0.0.0.12.1}/orangecontrib/IO4IT/widgets/__init__.py +0 -0
  22. {io4it-0.0.0.11 → io4it-0.0.0.12.1}/orangecontrib/IO4IT/widgets/designer/ow_in_or_out_path.ui +0 -0
  23. {io4it-0.0.0.11 → io4it-0.0.0.12.1}/orangecontrib/IO4IT/widgets/designer/owspeechtotext.ui +0 -0
  24. {io4it-0.0.0.11 → io4it-0.0.0.12.1}/orangecontrib/IO4IT/widgets/designer/wordpdf2docx.ui +0 -0
  25. {io4it-0.0.0.11 → io4it-0.0.0.12.1}/orangecontrib/IO4IT/widgets/icons/category.svg +0 -0
  26. {io4it-0.0.0.11 → io4it-0.0.0.12.1}/orangecontrib/IO4IT/widgets/icons/download.png +0 -0
  27. {io4it-0.0.0.11 → io4it-0.0.0.12.1}/orangecontrib/IO4IT/widgets/icons/in_or_out.png +0 -0
  28. {io4it-0.0.0.11 → io4it-0.0.0.12.1}/orangecontrib/IO4IT/widgets/icons/list_aws.png +0 -0
  29. {io4it-0.0.0.11 → io4it-0.0.0.12.1}/orangecontrib/IO4IT/widgets/icons/md.png +0 -0
  30. {io4it-0.0.0.11 → io4it-0.0.0.12.1}/orangecontrib/IO4IT/widgets/icons/speech_to_text.png +0 -0
  31. {io4it-0.0.0.11 → io4it-0.0.0.12.1}/orangecontrib/IO4IT/widgets/icons/upload.png +0 -0
  32. {io4it-0.0.0.11 → io4it-0.0.0.12.1}/orangecontrib/IO4IT/widgets/icons/wordpdf2docx.png +0 -0
  33. {io4it-0.0.0.11 → io4it-0.0.0.12.1}/orangecontrib/__init__.py +0 -0
  34. {io4it-0.0.0.11 → io4it-0.0.0.12.1}/setup.cfg +0 -0
@@ -1,6 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: io4it
3
- Version: 0.0.0.11
3
+ Version: 0.0.0.12.1
4
+ Summary: Package nécessitant PyTorch CUDA. Après installation, exécutez:
4
5
  Home-page:
5
6
  Author:
6
7
  Author-email:
@@ -1,6 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: io4it
3
- Version: 0.0.0.11
3
+ Version: 0.0.0.12.1
4
+ Summary: Package nécessitant PyTorch CUDA. Après installation, exécutez:
4
5
  Home-page:
5
6
  Author:
6
7
  Author-email:
@@ -17,7 +17,7 @@ def enable_long_path(path):
17
17
  """Simplifie la gestion des chemins longs sous Windows."""
18
18
  return pathlib.Path(r"\\?\\" + str(path))
19
19
 
20
- def convert_pdf_structure(input_dir: str, output_dir: str,ignore_exsting_out_put=False,eprogress_callback=None):
20
+ def convert_pdf_structure(input_dir: str, output_dir: str,ignore_exsting_out_put=False,progress_callback=None):
21
21
  """
22
22
  return a string with log in case of error
23
23
  Recursively lists all .pdf and .PDF files in the input directory,
@@ -1,12 +1,35 @@
1
1
  from setuptools import setup, find_packages
2
2
  import platform
3
3
  import warnings
4
+ # orangecontrib/IO4IT/__init__.py
5
+ from setuptools import setup, find_packages
6
+ import sys
7
+ import subprocess
8
+ from setuptools.command.install import install
9
+
10
+ class PostInstallCommand(install):
11
+ """Post-installation pour l'installation GPU."""
12
+ def run(self):
13
+ install.run(self) # Installation normale
14
+
15
+ # Tentative d'installation PyTorch CUDA après l'installation principale
16
+ try:
17
+ subprocess.check_call([
18
+ sys.executable, '-m', 'pip', 'install',
19
+ 'torch', 'torchvision', 'torchaudio',
20
+ '--index-url', 'https://download.pytorch.org/whl/cu126'
21
+ ])
22
+ print("\n\n✅ PyTorch CUDA installé avec succès")
23
+ 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
+
4
27
 
5
28
  # Nom du package PyPI ('pip install NAME')
6
29
  NAME = "io4it"
7
30
 
8
31
  # Version du package PyPI
9
- VERSION = "0.0.0.11" # la version doit être supérieure à la précédente sinon la publication sera refusée
32
+ VERSION = "0.0.0.12.1" # la version doit être supérieure à la précédente sinon la publication sera refusée
10
33
 
11
34
  # Facultatif / Adaptable à souhait
12
35
  AUTHOR = ""
@@ -33,9 +56,20 @@ PACKAGE_DATA = {
33
56
  # /!\ les noms de fichier 'orangecontrib.hkh_bot.widgets' doivent correspondre à l'arborescence
34
57
 
35
58
  # Dépendances
36
- INSTALL_REQUIRES = ["boto3", "docling", "docling-core", "speechbrain", "whisper", "whisper-openai", "pyannote.audio", "pyannote.core", "wave", "scikit-learn"]
37
-
38
-
59
+ # Dans votre setup.py principal
60
+ INSTALL_REQUIRES = [
61
+ "boto3",
62
+ "docling",
63
+ "docling-core",
64
+ "speechbrain",
65
+ "whisper",
66
+ "whisper-openai",
67
+ "pyannote.audio",
68
+ "pyannote.core",
69
+ "wave",
70
+ "scikit-learn",
71
+ # NE PAS inclure torch ici
72
+ ]
39
73
 
40
74
  # Extras optionnels pour CUDA
41
75
  EXTRAS_REQUIRE = {
@@ -72,7 +106,6 @@ setup(
72
106
  author=AUTHOR,
73
107
  author_email=AUTHOR_EMAIL,
74
108
  url=URL,
75
- description=DESCRIPTION,
76
109
  license=LICENSE,
77
110
  keywords=KEYWORDS,
78
111
  packages=PACKAGES,
@@ -81,5 +114,7 @@ setup(
81
114
  extras_require=EXTRAS_REQUIRE,
82
115
  entry_points=ENTRY_POINTS,
83
116
  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",
84
119
  )
85
120
 
File without changes
File without changes