markdown-to-confluence 0.5.0__py3-none-any.whl → 0.5.1__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.
- {markdown_to_confluence-0.5.0.dist-info → markdown_to_confluence-0.5.1.dist-info}/METADATA +2 -1
- {markdown_to_confluence-0.5.0.dist-info → markdown_to_confluence-0.5.1.dist-info}/RECORD +9 -9
- md2conf/__init__.py +1 -1
- md2conf/serializer.py +14 -2
- {markdown_to_confluence-0.5.0.dist-info → markdown_to_confluence-0.5.1.dist-info}/WHEEL +0 -0
- {markdown_to_confluence-0.5.0.dist-info → markdown_to_confluence-0.5.1.dist-info}/entry_points.txt +0 -0
- {markdown_to_confluence-0.5.0.dist-info → markdown_to_confluence-0.5.1.dist-info}/licenses/LICENSE +0 -0
- {markdown_to_confluence-0.5.0.dist-info → markdown_to_confluence-0.5.1.dist-info}/top_level.txt +0 -0
- {markdown_to_confluence-0.5.0.dist-info → markdown_to_confluence-0.5.1.dist-info}/zip-safe +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: markdown-to-confluence
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.1
|
|
4
4
|
Summary: Publish Markdown files to Confluence wiki
|
|
5
5
|
Author-email: Levente Hunyadi <hunyadi@gmail.com>
|
|
6
6
|
Maintainer-email: Levente Hunyadi <hunyadi@gmail.com>
|
|
@@ -26,6 +26,7 @@ License-File: LICENSE
|
|
|
26
26
|
Requires-Dist: cattrs>=25.3
|
|
27
27
|
Requires-Dist: lxml>=6.0
|
|
28
28
|
Requires-Dist: markdown>=3.10
|
|
29
|
+
Requires-Dist: orjson>=3.11
|
|
29
30
|
Requires-Dist: pymdown-extensions>=10.17
|
|
30
31
|
Requires-Dist: PyYAML>=6.0
|
|
31
32
|
Requires-Dist: requests>=2.32
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
markdown_to_confluence-0.5.
|
|
2
|
-
md2conf/__init__.py,sha256=
|
|
1
|
+
markdown_to_confluence-0.5.1.dist-info/licenses/LICENSE,sha256=56L-Y0dyZwyVlINRJRz3PNw-ka-oLVaAq-7d8zo6qlc,1077
|
|
2
|
+
md2conf/__init__.py,sha256=BhdWezYDER-ShxuHElVX_sLnP_NkQ7WoO5tr318SwgE,402
|
|
3
3
|
md2conf/__main__.py,sha256=ZAwZ2YqKUxKiVx8CQsrnso9z2deP5Xn80kqqf2o3AbY,11472
|
|
4
4
|
md2conf/api.py,sha256=yFDsE_5IpCXG4z24ZrxF8QjF07ep3HiBHqaWKcGKf1k,40731
|
|
5
5
|
md2conf/collection.py,sha256=nghFS5kK4kPbpLE7IHi4rprJK-Mu4KXNxjHYM9Rc5SQ,824
|
|
@@ -22,14 +22,14 @@ md2conf/publisher.py,sha256=yI7gObPZLrNEXbiPKBJwkBPcGLI17UwzKd8FQe3U8bE,8634
|
|
|
22
22
|
md2conf/puppeteer-config.json,sha256=-dMTAN_7kNTGbDlfXzApl0KJpAWna9YKZdwMKbpOb60,159
|
|
23
23
|
md2conf/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
24
24
|
md2conf/scanner.py,sha256=o46fTQXuTpbtvpnQPW3CW4ydIb5bM362K2TFpwO51P0,6782
|
|
25
|
-
md2conf/serializer.py,sha256=
|
|
25
|
+
md2conf/serializer.py,sha256=JrBj8Z9zP8PjBeVAlRRqnMKDoz6IvkRbTd6K-JgFVow,1757
|
|
26
26
|
md2conf/text.py,sha256=fHOrUaPXAjE4iRhHqFq-CiI-knpo4wvyHCWp0crewqA,1736
|
|
27
27
|
md2conf/toc.py,sha256=ZrfUfTv_Jiv27G4SBNjK3b-1ClYKoqN5yPRsEWp6IXk,2413
|
|
28
28
|
md2conf/uri.py,sha256=KbLBdRFtZTQTZd8b4j0LtE8Pb68Ly0WkemF4iW-EAB4,1158
|
|
29
29
|
md2conf/xml.py,sha256=Fu00Eg8c0VgMHIjRDBJBSNWtui8obEtowkiR7gHTduM,5526
|
|
30
|
-
markdown_to_confluence-0.5.
|
|
31
|
-
markdown_to_confluence-0.5.
|
|
32
|
-
markdown_to_confluence-0.5.
|
|
33
|
-
markdown_to_confluence-0.5.
|
|
34
|
-
markdown_to_confluence-0.5.
|
|
35
|
-
markdown_to_confluence-0.5.
|
|
30
|
+
markdown_to_confluence-0.5.1.dist-info/METADATA,sha256=Qttp8PjzAJnE6mJ_2-1ABYAVMCjEQeuL7QlaOcTmiEY,36463
|
|
31
|
+
markdown_to_confluence-0.5.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
32
|
+
markdown_to_confluence-0.5.1.dist-info/entry_points.txt,sha256=F1zxa1wtEObtbHS-qp46330WVFLHdMnV2wQ-ZorRmX0,50
|
|
33
|
+
markdown_to_confluence-0.5.1.dist-info/top_level.txt,sha256=_FJfl_kHrHNidyjUOuS01ngu_jDsfc-ZjSocNRJnTzU,8
|
|
34
|
+
markdown_to_confluence-0.5.1.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
35
|
+
markdown_to_confluence-0.5.1.dist-info/RECORD,,
|
md2conf/__init__.py
CHANGED
|
@@ -5,7 +5,7 @@ Parses Markdown files, converts Markdown content into the Confluence Storage For
|
|
|
5
5
|
Confluence API endpoints to upload images and content.
|
|
6
6
|
"""
|
|
7
7
|
|
|
8
|
-
__version__ = "0.5.
|
|
8
|
+
__version__ = "0.5.1"
|
|
9
9
|
__author__ = "Levente Hunyadi"
|
|
10
10
|
__copyright__ = "Copyright 2022-2025, Levente Hunyadi"
|
|
11
11
|
__license__ = "MIT"
|
md2conf/serializer.py
CHANGED
|
@@ -6,9 +6,11 @@ Copyright 2022-2025, Levente Hunyadi
|
|
|
6
6
|
:see: https://github.com/hunyadi/md2conf
|
|
7
7
|
"""
|
|
8
8
|
|
|
9
|
+
import sys
|
|
10
|
+
from datetime import datetime
|
|
9
11
|
from typing import TypeVar
|
|
10
12
|
|
|
11
|
-
from cattrs.preconf.
|
|
13
|
+
from cattrs.preconf.orjson import make_converter
|
|
12
14
|
|
|
13
15
|
JsonType = None | bool | int | float | str | dict[str, "JsonType"] | list["JsonType"]
|
|
14
16
|
JsonComposite = dict[str, "JsonType"] | list["JsonType"]
|
|
@@ -19,6 +21,16 @@ T = TypeVar("T")
|
|
|
19
21
|
_converter = make_converter(forbid_extra_keys=False)
|
|
20
22
|
|
|
21
23
|
|
|
24
|
+
if sys.version_info < (3, 11):
|
|
25
|
+
|
|
26
|
+
@_converter.register_structure_hook
|
|
27
|
+
def datetime_structure_hook(value: str, cls: type[datetime]) -> datetime:
|
|
28
|
+
if value.endswith("Z"):
|
|
29
|
+
# fromisoformat() prior to Python version 3.11 does not support military time zones like "Zulu" for UTC
|
|
30
|
+
value = f"{value[:-1]}+00:00"
|
|
31
|
+
return datetime.fromisoformat(value)
|
|
32
|
+
|
|
33
|
+
|
|
22
34
|
@_converter.register_structure_hook
|
|
23
35
|
def json_type_structure_hook(value: JsonType, cls: type[JsonType]) -> JsonType:
|
|
24
36
|
return value
|
|
@@ -49,4 +61,4 @@ def object_to_json_payload(data: object) -> bytes:
|
|
|
49
61
|
:returns: JSON string encoded in UTF-8.
|
|
50
62
|
"""
|
|
51
63
|
|
|
52
|
-
return _converter.dumps(data)
|
|
64
|
+
return _converter.dumps(data)
|
|
File without changes
|
{markdown_to_confluence-0.5.0.dist-info → markdown_to_confluence-0.5.1.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{markdown_to_confluence-0.5.0.dist-info → markdown_to_confluence-0.5.1.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{markdown_to_confluence-0.5.0.dist-info → markdown_to_confluence-0.5.1.dist-info}/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|