excel2moodle 0.7.2__tar.gz → 0.7.3__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 (52) hide show
  1. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/PKG-INFO +6 -1
  2. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/README.md +5 -0
  3. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/excel2moodle/core/bullets.py +4 -2
  4. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/excel2moodle.egg-info/PKG-INFO +6 -1
  5. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/pyproject.toml +1 -1
  6. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/test/test_bullets.py +2 -0
  7. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/LICENSE +0 -0
  8. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/excel2moodle/__init__.py +0 -0
  9. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/excel2moodle/__main__.py +0 -0
  10. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/excel2moodle/core/__init__.py +0 -0
  11. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/excel2moodle/core/category.py +0 -0
  12. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/excel2moodle/core/dataStructure.py +0 -0
  13. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/excel2moodle/core/etHelpers.py +0 -0
  14. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/excel2moodle/core/exceptions.py +0 -0
  15. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/excel2moodle/core/globals.py +0 -0
  16. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/excel2moodle/core/parser.py +0 -0
  17. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/excel2moodle/core/question.py +0 -0
  18. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/excel2moodle/core/settings.py +0 -0
  19. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/excel2moodle/core/stringHelpers.py +0 -0
  20. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/excel2moodle/core/validator.py +0 -0
  21. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/excel2moodle/extra/__init__.py +0 -0
  22. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/excel2moodle/extra/equationChecker.py +0 -0
  23. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/excel2moodle/extra/scriptCaller.py +0 -0
  24. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/excel2moodle/extra/updateQuery.py +0 -0
  25. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/excel2moodle/extra/variableGenerator.py +0 -0
  26. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/excel2moodle/logger.py +0 -0
  27. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/excel2moodle/question_types/__init__.py +0 -0
  28. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/excel2moodle/question_types/cloze.py +0 -0
  29. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/excel2moodle/question_types/mc.py +0 -0
  30. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/excel2moodle/question_types/nf.py +0 -0
  31. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/excel2moodle/question_types/nfm.py +0 -0
  32. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/excel2moodle/ui/UI_equationChecker.py +0 -0
  33. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/excel2moodle/ui/UI_exportSettingsDialog.py +0 -0
  34. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/excel2moodle/ui/UI_mainWindow.py +0 -0
  35. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/excel2moodle/ui/UI_updateDlg.py +0 -0
  36. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/excel2moodle/ui/UI_variableGenerator.py +0 -0
  37. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/excel2moodle/ui/UI_variantDialog.py +0 -0
  38. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/excel2moodle/ui/__init__.py +0 -0
  39. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/excel2moodle/ui/appUi.py +0 -0
  40. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/excel2moodle/ui/dialogs.py +0 -0
  41. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/excel2moodle/ui/treewidget.py +0 -0
  42. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/excel2moodle.egg-info/SOURCES.txt +0 -0
  43. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/excel2moodle.egg-info/dependency_links.txt +0 -0
  44. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/excel2moodle.egg-info/entry_points.txt +0 -0
  45. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/excel2moodle.egg-info/requires.txt +0 -0
  46. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/excel2moodle.egg-info/top_level.txt +0 -0
  47. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/setup.cfg +0 -0
  48. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/test/test_feedbacking.py +0 -0
  49. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/test/test_nfmParsing.py +0 -0
  50. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/test/test_parseQuestion.py +0 -0
  51. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/test/test_picture.py +0 -0
  52. {excel2moodle-0.7.2 → excel2moodle-0.7.3}/test/test_questionDataGet.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: excel2moodle
3
- Version: 0.7.2
3
+ Version: 0.7.3
4
4
  Summary: A package for converting questions from a spreadsheet, to valid moodle-xml
5
5
  Author: Jakob Bosse
6
6
  License-Expression: GPL-3.0-or-later
@@ -90,6 +90,11 @@ If You want to support my work as well, you can by me a [coffee](https://ko-fi.c
90
90
 
91
91
  # Changelogs
92
92
 
93
+ ## 0.7.3 (2025-10-12)
94
+ further bulletPoint improvements
95
+
96
+ No changes.
97
+
93
98
  ## 0.7.2 (2025-10-11)
94
99
  small important bugfixes
95
100
 
@@ -68,6 +68,11 @@ If You want to support my work as well, you can by me a [coffee](https://ko-fi.c
68
68
 
69
69
  # Changelogs
70
70
 
71
+ ## 0.7.3 (2025-10-12)
72
+ further bulletPoint improvements
73
+
74
+ No changes.
75
+
71
76
  ## 0.7.2 (2025-10-11)
72
77
  small important bugfixes
73
78
 
@@ -62,7 +62,7 @@ class BulletList:
62
62
  r"^\s?(?P<desc>.*?)"
63
63
  r"(?:\s+(?P<var>[\w+\{\\/\}^_-]+)\s*=\s*)"
64
64
  r"(?P<val>[.,\{\w+\}]+)"
65
- r"(?:\s+(?P<unit>[\w/\\^²³⁴⁵⁶]+)\s*$)"
65
+ r"(?:\s+(?P<unit>[\w/\\^²³⁴⁵⁶%]+)\s*$)"
66
66
  )
67
67
  for i, item in enumerate(bps):
68
68
  match = re.search(bulletFinder, item)
@@ -89,7 +89,9 @@ class BulletList:
89
89
  bulletName = match.group(1)
90
90
  num: float = 0.0
91
91
  self.logger.debug("Got an variable bulletItem, match: %s", match)
92
-
92
+ # for userfriendliness because % would be the comment in latex
93
+ if unit == "%":
94
+ unit = r"\%"
93
95
  self.bullets[bulletName] = BulletP(name=name, var=var, unit=unit, value=num)
94
96
  self.element.append(self.bullets[bulletName].element)
95
97
  return self.element
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: excel2moodle
3
- Version: 0.7.2
3
+ Version: 0.7.3
4
4
  Summary: A package for converting questions from a spreadsheet, to valid moodle-xml
5
5
  Author: Jakob Bosse
6
6
  License-Expression: GPL-3.0-or-later
@@ -90,6 +90,11 @@ If You want to support my work as well, you can by me a [coffee](https://ko-fi.c
90
90
 
91
91
  # Changelogs
92
92
 
93
+ ## 0.7.3 (2025-10-12)
94
+ further bulletPoint improvements
95
+
96
+ No changes.
97
+
93
98
  ## 0.7.2 (2025-10-11)
94
99
  small important bugfixes
95
100
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "excel2moodle"
7
- version = "0.7.2"
7
+ version = "0.7.3"
8
8
  authors = [
9
9
  { name="Jakob Bosse" },
10
10
  ]
@@ -55,6 +55,8 @@ def test_bulletVariants(variant, bulletName, bulletStr) -> None:
55
55
  (r"Längste Strecke l_{max} = 15.0 km", "Längste Strecke", "l_{max}", 15, "km"),
56
56
  (r"Strng Var q_{st} = 33,339 kN/m²", "Strng Var", "q_{st}", 33.339, "kN/m²"),
57
57
  (r"Max Sp \sigma_{max} = 33 kN/m^2", "Max Sp", r"\sigma_{max}", 33, "kN/m^2"),
58
+ (r"Nutzungsgrad \eta = 33 \%", "Nutzungsgrad", r"\eta", 33, r"\%"),
59
+ (r"Nutzungsgrad \eta = 33 %", "Nutzungsgrad", r"\eta", 33, r"\%"),
58
60
  ],
59
61
  )
60
62
  def test_paresBPointNames(bulletString, name, var, value, unit) -> None:
File without changes
File without changes