Skip to content

Commit 8aaee90

Browse files
committed
removing relative imports
1 parent c2bb8f6 commit 8aaee90

2 files changed

Lines changed: 3 additions & 18 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ md2ast = "md2bbcode.md2ast:main"
2828
html2bbcode = "md2bbcode.html2bbcode:main"
2929

3030
[project.urls]
31-
Homepage = "https://github.com/RedGuides/md2bbcode"
3231
Repository = "https://github.com/RedGuides/md2bbcode.git"
3332
Issues = "https://github.com/RedGuides/md2bbcode/issues"
3433
Documentation = "https://github.com/RedGuides/md2bbcode#readme"
@@ -48,21 +47,7 @@ include = [
4847
"src/md2bbcode/renderers/*.py",
4948
"bb_codes.xml"
5049
]
51-
exclude = ["__pycache__/**"]
5250

5351
[tool.hatch.build.targets.wheel]
54-
include = [
55-
"README.md",
56-
"LICENSE",
57-
"src/md2bbcode/*.py",
58-
"src/md2bbcode/renderers/*.py",
59-
"bb_codes.xml"
60-
]
61-
exclude = ["__pycache__/**"]
6252
packages = ["src/md2bbcode"]
63-
64-
[tool.hatch.envs.default]
65-
dependencies = [
66-
"mistune>=3.0.2",
67-
"beautifulsoup4"
68-
]
53+
include = ["bb_codes.xml"]

src/md2bbcode/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
from mistune.plugins.spoiler import spoiler
1818

1919
# local
20-
from .renderers.bbcode import BBCodeRenderer
21-
from .html2bbcode import process_html
20+
from md2bbcode.renderers.bbcode import BBCodeRenderer
21+
from md2bbcode.html2bbcode import process_html
2222

2323
def convert_markdown_to_bbcode(markdown_text, domain):
2424
# Create a Markdown parser instance using the custom BBCode renderer

0 commit comments

Comments
 (0)