ScriptCollection 3.4.37__py3-none-any.whl → 3.4.39__py3-none-any.whl

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.
@@ -19,9 +19,7 @@ import requests
19
19
  import ntplib
20
20
  import qrcode
21
21
  import pycdlib
22
- from PIL import Image
23
22
  import send2trash
24
- import fitz
25
23
  import PyPDF2
26
24
  from .GeneralUtilities import GeneralUtilities
27
25
  from .ProgramRunnerBase import ProgramRunnerBase
@@ -29,7 +27,7 @@ from .ProgramRunnerPopen import ProgramRunnerPopen
29
27
  from .ProgramRunnerEpew import ProgramRunnerEpew, CustomEpewArgument
30
28
 
31
29
 
32
- version = "3.4.37"
30
+ version = "3.4.39"
33
31
  __version__ = version
34
32
 
35
33
 
@@ -679,11 +677,15 @@ class ScriptCollectionCore:
679
677
 
680
678
  @GeneralUtilities.check_arguments
681
679
  def pdf_to_image(self, file: str, outputfilename_without_extension: str) -> None:
682
- doc = fitz.open(file)
683
- for i, page in enumerate(doc):
684
- pix = page.get_pixmap()
685
- img = Image.frombytes("RGB", [pix.width, pix.height], pix.samples)
686
- img.save(f"{outputfilename_without_extension}_{i}.png", "PNG")
680
+ raise ValueError("Function currently not available")
681
+ # PyMuPDF can be used for that but sometimes it throws
682
+ # "ImportError: DLL load failed while importing _fitz: Das angegebene Modul wurde nicht gefunden."
683
+
684
+ # doc = None # fitz.open(file)
685
+ # for i, page in enumerate(doc):
686
+ # pix = page.get_pixmap()
687
+ # img = Image.frombytes("RGB", [pix.width, pix.height], pix.samples)
688
+ # img.save(f"{outputfilename_without_extension}_{i}.png", "PNG")
687
689
 
688
690
  @GeneralUtilities.check_arguments
689
691
  def show_missing_files(self, folderA: str, folderB: str):
@@ -1578,6 +1578,7 @@ class TasksForCommonProjectStructure:
1578
1578
  self.set_constant_for_commitdate(codeunit_folder)
1579
1579
  self.set_constant_for_commitname(codeunit_folder)
1580
1580
  self.set_constant_for_commitversion(codeunit_folder)
1581
+ self.set_constant_for_description(codeunit_folder)
1581
1582
 
1582
1583
  @GeneralUtilities.check_arguments
1583
1584
  def set_constant_for_commitid(self, codeunit_folder: str) -> None:
@@ -1599,6 +1600,12 @@ class TasksForCommonProjectStructure:
1599
1600
  codeunit_version: str = self.get_version_of_codeunit_folder(codeunit_folder)
1600
1601
  self.set_constant(codeunit_folder, "CodeUnitVersion", codeunit_version)
1601
1602
 
1603
+ @GeneralUtilities.check_arguments
1604
+ def set_constant_for_description(self, codeunit_folder: str) -> None:
1605
+ codeunit_name: str = os.path.basename(codeunit_folder)
1606
+ codeunit_description: str = self.get_codeunit_description(f"{codeunit_folder}/{codeunit_name}.codeunit.xml")
1607
+ self.set_constant(codeunit_folder, "CodeUnitDescription", codeunit_description)
1608
+
1602
1609
  @GeneralUtilities.check_arguments
1603
1610
  def set_constant(self, codeunit_folder: str, constantname: str, constant_value: str, documentationsummary: str = None, constants_valuefile: str = None) -> None:
1604
1611
  if documentationsummary is None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ScriptCollection
3
- Version: 3.4.37
3
+ Version: 3.4.39
4
4
  Summary: The ScriptCollection is the place for reusable scripts.
5
5
  Home-page: https://github.com/anionDev/ScriptCollection
6
6
  Author: Marius Göcke
@@ -34,7 +34,6 @@ Requires-Dist: pycdlib >=1.14.0
34
34
  Requires-Dist: Pygments >=2.16.1
35
35
  Requires-Dist: pylint >=3.0.2
36
36
  Requires-Dist: pyOpenSSL >=23.2.0
37
- Requires-Dist: PyMuPDF >=1.23.5
38
37
  Requires-Dist: PyPDF2 >=3.0.1
39
38
  Requires-Dist: pytest >=7.4.2
40
39
  Requires-Dist: qrcode >=7.4.2
@@ -3,12 +3,12 @@ ScriptCollection/GeneralUtilities.py,sha256=t91Z5spUMt7H_BdfMJMbEx_nJApJmLZsqozl
3
3
  ScriptCollection/ProgramRunnerBase.py,sha256=2kyOuoM3oFjBfLc9Q5t5RTz7Ya2CjUxFtB1rBBDmnjU,1937
4
4
  ScriptCollection/ProgramRunnerEpew.py,sha256=nIzY4dG6W-xEpkeoTbozwNZtFSIo-bU_W6t6u1AZKtE,6275
5
5
  ScriptCollection/ProgramRunnerPopen.py,sha256=veDNRg2Z0u0vd4iKWAycVFKbTm_uWYfuK6NTiwlbgrM,3230
6
- ScriptCollection/ScriptCollectionCore.py,sha256=-INfCyYDz402uI81FDT_-rgsb7yeVvoyIinSA9_9vKk,94040
7
- ScriptCollection/TasksForCommonProjectStructure.py,sha256=mmSl59TMPq-sVrs6zqDnA2iYGMzYtwwitKPEAtu8ToY,158840
6
+ ScriptCollection/ScriptCollectionCore.py,sha256=4EJ_FrqHydFVGIICyqKFkiHiIDHtFCVIIHlHDUqAH9I,94258
7
+ ScriptCollection/TasksForCommonProjectStructure.py,sha256=FVwl-iOmDhSj2bSRDgcLi1B_9JkfsPHTXFEG1f8QT4o,159287
8
8
  ScriptCollection/UpdateCertificates.py,sha256=Go-JJK-YTi7aBB1phlLxypa8GHkmFHBEPB0_TT9G-bw,7918
9
9
  ScriptCollection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
- ScriptCollection-3.4.37.dist-info/METADATA,sha256=cvqoSvxXEseo_XOmKa792NuNublKByN64z1GEvhROFw,7644
11
- ScriptCollection-3.4.37.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
12
- ScriptCollection-3.4.37.dist-info/entry_points.txt,sha256=dJKdWcH41owxlKx_khj4P7DItr9lhxWP9JU2Dq8GSsQ,2088
13
- ScriptCollection-3.4.37.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
14
- ScriptCollection-3.4.37.dist-info/RECORD,,
10
+ ScriptCollection-3.4.39.dist-info/METADATA,sha256=pUktf9zlETzrjLeTA3N2tkHYSeunDi516hcBY9rd_as,7611
11
+ ScriptCollection-3.4.39.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
12
+ ScriptCollection-3.4.39.dist-info/entry_points.txt,sha256=dJKdWcH41owxlKx_khj4P7DItr9lhxWP9JU2Dq8GSsQ,2088
13
+ ScriptCollection-3.4.39.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
14
+ ScriptCollection-3.4.39.dist-info/RECORD,,