superparsing 0.2.2__tar.gz → 0.3.0__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 (25) hide show
  1. {superparsing-0.2.2 → superparsing-0.3.0}/PKG-INFO +1 -1
  2. {superparsing-0.2.2 → superparsing-0.3.0}/pyproject.toml +1 -1
  3. {superparsing-0.2.2 → superparsing-0.3.0}/src/superparsing/core/SuperParser.py +8 -0
  4. {superparsing-0.2.2 → superparsing-0.3.0}/src/superparsing.egg-info/PKG-INFO +1 -1
  5. {superparsing-0.2.2 → superparsing-0.3.0}/LICENSE.txt +0 -0
  6. {superparsing-0.2.2 → superparsing-0.3.0}/MANIFEST.in +0 -0
  7. {superparsing-0.2.2 → superparsing-0.3.0}/README.rst +0 -0
  8. {superparsing-0.2.2 → superparsing-0.3.0}/run_tests.py +0 -0
  9. {superparsing-0.2.2 → superparsing-0.3.0}/setup.cfg +0 -0
  10. {superparsing-0.2.2 → superparsing-0.3.0}/src/superparsing/__init__.py +0 -0
  11. {superparsing-0.2.2 → superparsing-0.3.0}/src/superparsing/core/SubCommand.py +0 -0
  12. {superparsing-0.2.2 → superparsing-0.3.0}/src/superparsing/core/SuperFlag.py +0 -0
  13. {superparsing-0.2.2 → superparsing-0.3.0}/src/superparsing/core/SuperParseError.py +0 -0
  14. {superparsing-0.2.2 → superparsing-0.3.0}/src/superparsing/core/__init__.py +0 -0
  15. {superparsing-0.2.2 → superparsing-0.3.0}/src/superparsing/py.typed +0 -0
  16. {superparsing-0.2.2 → superparsing-0.3.0}/src/superparsing.egg-info/SOURCES.txt +0 -0
  17. {superparsing-0.2.2 → superparsing-0.3.0}/src/superparsing.egg-info/dependency_links.txt +0 -0
  18. {superparsing-0.2.2 → superparsing-0.3.0}/src/superparsing.egg-info/top_level.txt +0 -0
  19. {superparsing-0.2.2 → superparsing-0.3.0}/tests/test_0.py +0 -0
  20. {superparsing-0.2.2 → superparsing-0.3.0}/tests/test_comprehensive_TestParseArgs.py +0 -0
  21. {superparsing-0.2.2 → superparsing-0.3.0}/tests/test_comprehensive_TestSubCommand.py +0 -0
  22. {superparsing-0.2.2 → superparsing-0.3.0}/tests/test_comprehensive_TestSuperFlag.py +0 -0
  23. {superparsing-0.2.2 → superparsing-0.3.0}/tests/test_comprehensive_TestSuperParserBasics.py +0 -0
  24. {superparsing-0.2.2 → superparsing-0.3.0}/tests/test_comprehensive_TestSuperParserText.py +0 -0
  25. {superparsing-0.2.2 → superparsing-0.3.0}/tests/test_patch.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: superparsing
3
- Version: 0.2.2
3
+ Version: 0.3.0
4
4
  Summary: This project does superparsing.
5
5
  Author-email: Johannes <johannes.programming@gmail.com>
6
6
  License-Expression: MIT
@@ -27,7 +27,7 @@ license-files = [
27
27
  name = "superparsing"
28
28
  readme = "README.rst"
29
29
  requires-python = ">=3.11"
30
- version = "0.2.2"
30
+ version = "0.3.0"
31
31
 
32
32
  [project.urls]
33
33
  Download = "https://pypi.org/project/superparsing/#files"
@@ -21,6 +21,7 @@ ARGS_MESSAGE: Final[str] = (
21
21
 
22
22
  @dataclass
23
23
  class SuperParser:
24
+ description: object = field(default=None, kw_only=True)
24
25
  fromfile_prefix_chars: object = field(default="", kw_only=True)
25
26
  helpFlag: SuperFlag = field(
26
27
  default_factory=partial(SuperFlag, help="print this message and exit"),
@@ -33,6 +34,12 @@ class SuperParser:
33
34
  kw_only=True,
34
35
  )
35
36
 
37
+ def _description(self: Self) -> Optional[str]:
38
+ if self.description is None:
39
+ return None
40
+ else:
41
+ return str(self.description)
42
+
36
43
  def _keys_message(self: Self) -> Optional[str]:
37
44
  ans: str
38
45
  help_intro: str
@@ -87,6 +94,7 @@ class SuperParser:
87
94
  if intro is not None:
88
95
  return intro
89
96
  ans = list()
97
+ ans.append(self._description())
90
98
  ans.append(self.usage())
91
99
  ans.append(self._keys_message())
92
100
  ans.append(self._subCommands_message())
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: superparsing
3
- Version: 0.2.2
3
+ Version: 0.3.0
4
4
  Summary: This project does superparsing.
5
5
  Author-email: Johannes <johannes.programming@gmail.com>
6
6
  License-Expression: MIT
File without changes
File without changes
File without changes
File without changes
File without changes