md2word 0.1.2__tar.gz → 0.1.3__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 (27) hide show
  1. {md2word-0.1.2 → md2word-0.1.3}/PKG-INFO +1 -1
  2. {md2word-0.1.2 → md2word-0.1.3}/md2word_demo.spec +5 -1
  3. {md2word-0.1.2 → md2word-0.1.3}/md2word_demo_console.spec +5 -1
  4. {md2word-0.1.2 → md2word-0.1.3}/pyproject.toml +1 -1
  5. {md2word-0.1.2 → md2word-0.1.3}/uv.lock +1 -1
  6. {md2word-0.1.2 → md2word-0.1.3}/.github/workflows/desktop_release.yml +0 -0
  7. {md2word-0.1.2 → md2word-0.1.3}/.github/workflows/publish.yml +0 -0
  8. {md2word-0.1.2 → md2word-0.1.3}/.gitignore +0 -0
  9. {md2word-0.1.2 → md2word-0.1.3}/LICENSE +0 -0
  10. {md2word-0.1.2 → md2word-0.1.3}/README.md +0 -0
  11. {md2word-0.1.2 → md2word-0.1.3}/README_zh.md +0 -0
  12. {md2word-0.1.2 → md2word-0.1.3}/examples/config_chinese.json +0 -0
  13. {md2word-0.1.2 → md2word-0.1.3}/examples/config_english.json +0 -0
  14. {md2word-0.1.2 → md2word-0.1.3}/examples/desktop_app/README.md +0 -0
  15. {md2word-0.1.2 → md2word-0.1.3}/examples/desktop_app/app.py +0 -0
  16. {md2word-0.1.2 → md2word-0.1.3}/examples/desktop_app/index.html +0 -0
  17. {md2word-0.1.2 → md2word-0.1.3}/examples/example.md +0 -0
  18. {md2word-0.1.2 → md2word-0.1.3}/examples/example_zh.md +0 -0
  19. {md2word-0.1.2 → md2word-0.1.3}/src/md2word/__init__.py +0 -0
  20. {md2word-0.1.2 → md2word-0.1.3}/src/md2word/__main__.py +0 -0
  21. {md2word-0.1.2 → md2word-0.1.3}/src/md2word/config.py +0 -0
  22. {md2word-0.1.2 → md2word-0.1.3}/src/md2word/converter.py +0 -0
  23. {md2word-0.1.2 → md2word-0.1.3}/src/md2word/latex.py +0 -0
  24. {md2word-0.1.2 → md2word-0.1.3}/tests/__init__.py +0 -0
  25. {md2word-0.1.2 → md2word-0.1.3}/tests/test_config.py +0 -0
  26. {md2word-0.1.2 → md2word-0.1.3}/tests/test_converter.py +0 -0
  27. {md2word-0.1.2 → md2word-0.1.3}/tests/test_latex.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: md2word
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: Convert Markdown files to Word documents with extensive customization
5
5
  Project-URL: Homepage, https://github.com/md2word/md2word
6
6
  Project-URL: Documentation, https://github.com/md2word/md2word#readme
@@ -2,7 +2,11 @@
2
2
 
3
3
  from pathlib import Path
4
4
 
5
- ROOT = Path(__file__).resolve().parent
5
+ _spec_path = globals().get("__file__")
6
+ if _spec_path:
7
+ ROOT = Path(_spec_path).resolve().parent
8
+ else:
9
+ ROOT = Path.cwd()
6
10
  APP_PATH = ROOT / "examples" / "desktop_app" / "app.py"
7
11
  INDEX_HTML = ROOT / "examples" / "desktop_app" / "index.html"
8
12
 
@@ -2,7 +2,11 @@
2
2
 
3
3
  from pathlib import Path
4
4
 
5
- ROOT = Path(__file__).resolve().parent
5
+ _spec_path = globals().get("__file__")
6
+ if _spec_path:
7
+ ROOT = Path(_spec_path).resolve().parent
8
+ else:
9
+ ROOT = Path.cwd()
6
10
  APP_PATH = ROOT / "examples" / "desktop_app" / "app.py"
7
11
  INDEX_HTML = ROOT / "examples" / "desktop_app" / "index.html"
8
12
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "md2word"
3
- version = "0.1.2"
3
+ version = "0.1.3"
4
4
  description = "Convert Markdown files to Word documents with extensive customization"
5
5
  readme = "README.md"
6
6
  license = { text = "MIT" }
@@ -384,7 +384,7 @@ wheels = [
384
384
 
385
385
  [[package]]
386
386
  name = "md2word"
387
- version = "0.1.2"
387
+ version = "0.1.3"
388
388
  source = { editable = "." }
389
389
  dependencies = [
390
390
  { name = "html-for-docx" },
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