PySerials 0.0.0.dev15__py3-none-any.whl → 0.0.0.dev17__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PySerials
3
- Version: 0.0.0.dev15
3
+ Version: 0.0.0.dev17
4
4
  Requires-Python: >=3.10
5
5
  Requires-Dist: jsonschema <5,>=4.21.0
6
6
  Requires-Dist: referencing >=0.35.1
@@ -8,7 +8,7 @@ Requires-Dist: jsonpath-ng <2,>=1.6.1
8
8
  Requires-Dist: ruamel.yaml <0.18,>=0.17.32
9
9
  Requires-Dist: ruamel.yaml.string <1,>=0.1.1
10
10
  Requires-Dist: tomlkit <0.12,>=0.11.8
11
- Requires-Dist: MDit ==0.0.0.dev12
12
- Requires-Dist: ExceptionMan ==0.0.0.dev12
11
+ Requires-Dist: MDit ==0.0.0.dev14
12
+ Requires-Dist: ExceptionMan ==0.0.0.dev14
13
13
  Requires-Dist: ProtocolMan ==0.0.0.dev2
14
14
 
@@ -7,11 +7,11 @@ pyserials/update.py,sha256=GfrFgc1a2qYqR8zs04cngVKcXE0124o20xiJQiSMIxg,9259
7
7
  pyserials/validate.py,sha256=Ocs0x0BAV9zwRCgg_J5BGU2kEZV6vVjfDBsR3M9Teus,3564
8
8
  pyserials/write.py,sha256=pN8w78qVsKJjZd_jvPUcZjYp_RJkP7uQzpiXvPOv4lM,1776
9
9
  pyserials/exception/__init__.py,sha256=ZhbggwJUMlTyBhifAivC8ZQxP1Na6lJAwzZs7_YjOSU,151
10
- pyserials/exception/_base.py,sha256=Juns3cyAEV9bZ4_nYuefQnPOrXvpQTY_7peXnoCjlgI,765
10
+ pyserials/exception/_base.py,sha256=IdaZwBPBYgiUaWnvN0eMXvQQBqLbN1t766034CK7Hlc,853
11
11
  pyserials/exception/read.py,sha256=7yTqtT2V4xXthg7wzNMI0bYF9GMDc-AaEN8r2PhRkMw,9282
12
12
  pyserials/exception/update.py,sha256=P0js2-iY2fgO_KLdqedgWE3TTS5Xz15cusZY_wuKIW4,4222
13
13
  pyserials/exception/validate.py,sha256=fs4yMw5wSbRbINuTbjdj7HGo8PlE3-zir1JRveJkcPk,7461
14
- PySerials-0.0.0.dev15.dist-info/METADATA,sha256=wPwcsCC2xlOgr4NlzwTyVdicvJ-ttwo6wT9Ag_u2h7Q,438
15
- PySerials-0.0.0.dev15.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
16
- PySerials-0.0.0.dev15.dist-info/top_level.txt,sha256=SAks7WjSjdkv3i9Hvt4gY_P7VQbhhYJN5mf5dqx1aao,10
17
- PySerials-0.0.0.dev15.dist-info/RECORD,,
14
+ PySerials-0.0.0.dev17.dist-info/METADATA,sha256=XlIg2JMxykCLT83hAn8_ThpyXtW4A-CKz0ymv83dnrk,438
15
+ PySerials-0.0.0.dev17.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
16
+ PySerials-0.0.0.dev17.dist-info/top_level.txt,sha256=SAks7WjSjdkv3i9Hvt4gY_P7VQbhhYJN5mf5dqx1aao,10
17
+ PySerials-0.0.0.dev17.dist-info/RECORD,,
@@ -3,8 +3,10 @@
3
3
  from __future__ import annotations
4
4
 
5
5
  from typing import TYPE_CHECKING as _TYPE_CHECKING
6
+ from functools import partial as _partial
6
7
 
7
8
  from exceptionman import ReporterException as _ReporterException
9
+ import mdit as _mdit
8
10
 
9
11
  if _TYPE_CHECKING:
10
12
  from mdit import Document
@@ -14,13 +16,13 @@ class PySerialsException(_ReporterException):
14
16
  """Base class for all exceptions raised by PySerials."""
15
17
 
16
18
  def __init__(self, report: Document):
17
- super().__init__(
18
- report=report,
19
- sphinx_config={
20
- "extensions": ['myst_parser', 'sphinx_togglebutton'],
21
- "myst_enable_extensions": ["colon_fence", "fieldlist"],
22
- "html_theme": "pydata_sphinx_theme",
23
- "html_title": "PySerials Error Report",
24
- }
19
+ sphinx_config = {"html_title": "PySerials Error Report"}
20
+ sphinx_target_config = _mdit.target.sphinx(
21
+ renderer=_partial(
22
+ _mdit.render.sphinx,
23
+ config=_mdit.render.get_sphinx_config(sphinx_config)
24
+ )
25
25
  )
26
+ report.target_configs["sphinx"] = sphinx_target_config
27
+ super().__init__(report=report)
26
28
  return