python-kacl 0.6.0__tar.gz → 0.6.1__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.
- {python_kacl-0.6.0/python_kacl.egg-info → python_kacl-0.6.1}/PKG-INFO +1 -1
- {python_kacl-0.6.0 → python_kacl-0.6.1}/kacl/__init__.py +1 -1
- {python_kacl-0.6.0 → python_kacl-0.6.1}/kacl/utils.py +17 -0
- {python_kacl-0.6.0 → python_kacl-0.6.1/python_kacl.egg-info}/PKG-INFO +1 -1
- {python_kacl-0.6.0 → python_kacl-0.6.1}/setup.py +1 -1
- {python_kacl-0.6.0 → python_kacl-0.6.1}/LICENSE +0 -0
- {python_kacl-0.6.0 → python_kacl-0.6.1}/MANIFEST.in +0 -0
- {python_kacl-0.6.0 → python_kacl-0.6.1}/README.md +0 -0
- {python_kacl-0.6.0 → python_kacl-0.6.1}/kacl/__main__.py +0 -0
- {python_kacl-0.6.0 → python_kacl-0.6.1}/kacl/changes.py +0 -0
- {python_kacl-0.6.0 → python_kacl-0.6.1}/kacl/config/kacl-default.yml +0 -0
- {python_kacl-0.6.0 → python_kacl-0.6.1}/kacl/config.py +0 -0
- {python_kacl-0.6.0 → python_kacl-0.6.1}/kacl/document.py +0 -0
- {python_kacl-0.6.0 → python_kacl-0.6.1}/kacl/element.py +0 -0
- {python_kacl-0.6.0 → python_kacl-0.6.1}/kacl/exception.py +0 -0
- {python_kacl-0.6.0 → python_kacl-0.6.1}/kacl/jira_client.py +0 -0
- {python_kacl-0.6.0 → python_kacl-0.6.1}/kacl/kacl_cli.py +0 -0
- {python_kacl-0.6.0 → python_kacl-0.6.1}/kacl/link_provider.py +0 -0
- {python_kacl-0.6.0 → python_kacl-0.6.1}/kacl/parser.py +0 -0
- {python_kacl-0.6.0 → python_kacl-0.6.1}/kacl/serializer.py +0 -0
- {python_kacl-0.6.0 → python_kacl-0.6.1}/kacl/validation.py +0 -0
- {python_kacl-0.6.0 → python_kacl-0.6.1}/kacl/version.py +0 -0
- {python_kacl-0.6.0 → python_kacl-0.6.1}/python_kacl.egg-info/SOURCES.txt +0 -0
- {python_kacl-0.6.0 → python_kacl-0.6.1}/python_kacl.egg-info/dependency_links.txt +0 -0
- {python_kacl-0.6.0 → python_kacl-0.6.1}/python_kacl.egg-info/entry_points.txt +0 -0
- {python_kacl-0.6.0 → python_kacl-0.6.1}/python_kacl.egg-info/not-zip-safe +0 -0
- {python_kacl-0.6.0 → python_kacl-0.6.1}/python_kacl.egg-info/requires.txt +0 -0
- {python_kacl-0.6.0 → python_kacl-0.6.1}/python_kacl.egg-info/top_level.txt +0 -0
- {python_kacl-0.6.0 → python_kacl-0.6.1}/setup.cfg +0 -0
- {python_kacl-0.6.0 → python_kacl-0.6.1}/tests/__init__.py +0 -0
- {python_kacl-0.6.0 → python_kacl-0.6.1}/tests/snapshot_directory.py +0 -0
- {python_kacl-0.6.0 → python_kacl-0.6.1}/tests/test_cli.py +0 -0
- {python_kacl-0.6.0 → python_kacl-0.6.1}/tests/test_kacl.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: python-kacl
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.1
|
|
4
4
|
Summary: Python module and CLI tool for validating and modifying Changelogs in "keep-a-changelog" format"
|
|
5
5
|
Home-page: https://gitlab.com/schmieder.matthias/python-kacl.git
|
|
6
6
|
Author: Matthias Schmieder
|
|
@@ -64,8 +64,25 @@ def convert_markdown_to_jira(markdown_text):
|
|
|
64
64
|
url = match.group(2)
|
|
65
65
|
return f"[{link_text}|{url}]"
|
|
66
66
|
|
|
67
|
+
# Convert markdown inline code to JIRA inline code
|
|
68
|
+
def replace_inline_code(match):
|
|
69
|
+
code_text = match.group(1)
|
|
70
|
+
return "{{" + code_text + "}}"
|
|
71
|
+
|
|
72
|
+
# Convert markdown bold text to JIRA bold text
|
|
73
|
+
def replace_bold_text(match):
|
|
74
|
+
bold_text = match.group(1)
|
|
75
|
+
return f"*{bold_text}*"
|
|
76
|
+
|
|
67
77
|
converted_text = re.sub(
|
|
68
78
|
r"^(#{1,6})\s+(.*)", replace_heading, markdown_text, flags=re.MULTILINE
|
|
69
79
|
)
|
|
70
80
|
converted_text = re.sub(r"\[(.*?)\]\((.*?)\)", replace_link, converted_text)
|
|
81
|
+
|
|
82
|
+
# Apply the inline code conversion
|
|
83
|
+
converted_text = re.sub(r"`(.*?)`", replace_inline_code, converted_text)
|
|
84
|
+
|
|
85
|
+
# Apply the bold text conversion
|
|
86
|
+
converted_text = re.sub(r"\*\*(.*?)\*\*", replace_bold_text, converted_text)
|
|
87
|
+
|
|
71
88
|
return converted_text
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: python-kacl
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.1
|
|
4
4
|
Summary: Python module and CLI tool for validating and modifying Changelogs in "keep-a-changelog" format"
|
|
5
5
|
Home-page: https://gitlab.com/schmieder.matthias/python-kacl.git
|
|
6
6
|
Author: Matthias Schmieder
|
|
@@ -11,7 +11,7 @@ this_directory = path.abspath(path.dirname(__file__))
|
|
|
11
11
|
with open(path.join(this_directory, "README.md"), encoding="utf-8") as f:
|
|
12
12
|
long_description = f.read()
|
|
13
13
|
|
|
14
|
-
version = "0.6.
|
|
14
|
+
version = "0.6.1"
|
|
15
15
|
|
|
16
16
|
version = f"{version}{os.environ.get('PIP_VERSION_POSTFIX', '')}"
|
|
17
17
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|