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.
Files changed (33) hide show
  1. {python_kacl-0.6.0/python_kacl.egg-info → python_kacl-0.6.1}/PKG-INFO +1 -1
  2. {python_kacl-0.6.0 → python_kacl-0.6.1}/kacl/__init__.py +1 -1
  3. {python_kacl-0.6.0 → python_kacl-0.6.1}/kacl/utils.py +17 -0
  4. {python_kacl-0.6.0 → python_kacl-0.6.1/python_kacl.egg-info}/PKG-INFO +1 -1
  5. {python_kacl-0.6.0 → python_kacl-0.6.1}/setup.py +1 -1
  6. {python_kacl-0.6.0 → python_kacl-0.6.1}/LICENSE +0 -0
  7. {python_kacl-0.6.0 → python_kacl-0.6.1}/MANIFEST.in +0 -0
  8. {python_kacl-0.6.0 → python_kacl-0.6.1}/README.md +0 -0
  9. {python_kacl-0.6.0 → python_kacl-0.6.1}/kacl/__main__.py +0 -0
  10. {python_kacl-0.6.0 → python_kacl-0.6.1}/kacl/changes.py +0 -0
  11. {python_kacl-0.6.0 → python_kacl-0.6.1}/kacl/config/kacl-default.yml +0 -0
  12. {python_kacl-0.6.0 → python_kacl-0.6.1}/kacl/config.py +0 -0
  13. {python_kacl-0.6.0 → python_kacl-0.6.1}/kacl/document.py +0 -0
  14. {python_kacl-0.6.0 → python_kacl-0.6.1}/kacl/element.py +0 -0
  15. {python_kacl-0.6.0 → python_kacl-0.6.1}/kacl/exception.py +0 -0
  16. {python_kacl-0.6.0 → python_kacl-0.6.1}/kacl/jira_client.py +0 -0
  17. {python_kacl-0.6.0 → python_kacl-0.6.1}/kacl/kacl_cli.py +0 -0
  18. {python_kacl-0.6.0 → python_kacl-0.6.1}/kacl/link_provider.py +0 -0
  19. {python_kacl-0.6.0 → python_kacl-0.6.1}/kacl/parser.py +0 -0
  20. {python_kacl-0.6.0 → python_kacl-0.6.1}/kacl/serializer.py +0 -0
  21. {python_kacl-0.6.0 → python_kacl-0.6.1}/kacl/validation.py +0 -0
  22. {python_kacl-0.6.0 → python_kacl-0.6.1}/kacl/version.py +0 -0
  23. {python_kacl-0.6.0 → python_kacl-0.6.1}/python_kacl.egg-info/SOURCES.txt +0 -0
  24. {python_kacl-0.6.0 → python_kacl-0.6.1}/python_kacl.egg-info/dependency_links.txt +0 -0
  25. {python_kacl-0.6.0 → python_kacl-0.6.1}/python_kacl.egg-info/entry_points.txt +0 -0
  26. {python_kacl-0.6.0 → python_kacl-0.6.1}/python_kacl.egg-info/not-zip-safe +0 -0
  27. {python_kacl-0.6.0 → python_kacl-0.6.1}/python_kacl.egg-info/requires.txt +0 -0
  28. {python_kacl-0.6.0 → python_kacl-0.6.1}/python_kacl.egg-info/top_level.txt +0 -0
  29. {python_kacl-0.6.0 → python_kacl-0.6.1}/setup.cfg +0 -0
  30. {python_kacl-0.6.0 → python_kacl-0.6.1}/tests/__init__.py +0 -0
  31. {python_kacl-0.6.0 → python_kacl-0.6.1}/tests/snapshot_directory.py +0 -0
  32. {python_kacl-0.6.0 → python_kacl-0.6.1}/tests/test_cli.py +0 -0
  33. {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.0
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
@@ -1,5 +1,5 @@
1
1
  # Version of the python-kacl package
2
- __version__ = "0.6.0"
2
+ __version__ = "0.6.1"
3
3
 
4
4
  from kacl.document import KACLDocument
5
5
  from kacl.serializer import KACLMarkdownSerializer
@@ -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.0
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.0"
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