requiresthat 2025.6.20.0__py3-none-any.whl → 2025.6.21.0__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.
requiresthat/_requires.py CHANGED
@@ -80,8 +80,14 @@ def __assert(self, that, when: When, subwhen: str = str()):
80
80
  The reason we don't use assert here is to avoid the Knuthian dilemma of premature optimisation;
81
81
  namely, that it nukes this useful tool, :-[
82
82
  """
83
+ # We map everything that can go wrong to one exception; that way, the user has to deal with only
84
+ # one catagory of exceptions.
85
+ failure = RequirementNotFulfilledError(that, when, subwhen)
83
86
  try:
84
87
  if not eval(that):
85
- raise RequirementNotFulfilledError(that, when, subwhen) from None
88
+ raise failure from None
86
89
  except:
87
- raise RequirementNotFulfilledError(that, when, subwhen) from None
90
+ raise failure from None
91
+ else:
92
+ # Success!
93
+ pass
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: requiresthat
3
- Version: 2025.6.20.0
3
+ Version: 2025.6.21.0
4
4
  Summary: Support for requirements-assisted development
5
5
  Author-email: Ann T Ropea <bedhanger@gmx.de>
6
6
  License-Expression: MIT
@@ -0,0 +1,8 @@
1
+ requiresthat/__init__.py,sha256=VTyJru4K2_e7UEa0od6kXU7M8ovfD176GXEXqtNf-nY,154
2
+ requiresthat/_exceptions.py,sha256=kzzbS5F-h4Duj84lx6AXWUBHv56VD9jX8og_gJIvN9c,1282
3
+ requiresthat/_requires.py,sha256=XmJL6OQBDSNmS7xTRukk0-7vS98pbiTMQ9tEV0zVkOA,3222
4
+ requiresthat/_when.py,sha256=VoGuvoG9WDEMIPeKnxAsjMTaCMhgSszf4xxa1vLn5aU,299
5
+ requiresthat-2025.6.21.0.dist-info/METADATA,sha256=HGf8uPalVYizcliGDFsadP9U9kfomQOez7NNkfONCdw,2072
6
+ requiresthat-2025.6.21.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
+ requiresthat-2025.6.21.0.dist-info/top_level.txt,sha256=mUgMTpAG75GYtt5_rVajUyWp-O_1VrrkqRo_hY9L9So,13
8
+ requiresthat-2025.6.21.0.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- requiresthat/__init__.py,sha256=VTyJru4K2_e7UEa0od6kXU7M8ovfD176GXEXqtNf-nY,154
2
- requiresthat/_exceptions.py,sha256=kzzbS5F-h4Duj84lx6AXWUBHv56VD9jX8og_gJIvN9c,1282
3
- requiresthat/_requires.py,sha256=DzQkzMl12UCtPXmjkwsG1zy93oPSZWUGhB1T7o69Vt0,3066
4
- requiresthat/_when.py,sha256=VoGuvoG9WDEMIPeKnxAsjMTaCMhgSszf4xxa1vLn5aU,299
5
- requiresthat-2025.6.20.0.dist-info/METADATA,sha256=dI6DS-yxNlCu_BLsxd1A5JnId2wbiCWrHJjtYXVH45o,2072
6
- requiresthat-2025.6.20.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
- requiresthat-2025.6.20.0.dist-info/top_level.txt,sha256=mUgMTpAG75GYtt5_rVajUyWp-O_1VrrkqRo_hY9L9So,13
8
- requiresthat-2025.6.20.0.dist-info/RECORD,,