Skip to content

Commit 7642948

Browse files
v3.9
1 parent a393a81 commit 7642948

3 files changed

Lines changed: 18 additions & 15 deletions

File tree

packages/markitdown/setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = openize-markitdown
3-
version = 25.3.8
3+
version = 25.3.9
44
author = Openize
55
author_email = packages@openize.com
66
description = A document converter for Word, PDF, Excel, and PowerPoint to Markdown.

packages/markitdown/setup.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
1-
21
from setuptools import setup
32
from setuptools.command.install import install
43
import subprocess
54

5+
66
class PostInstallCommand(install):
77
"""Post-installation for installation mode."""
8+
89
def run(self):
10+
print("\n🚀 Running custom post-installation script...") # Display confirmation
911
install.run(self) # Run the standard install first
10-
subprocess.call(["python", "post_install.py"]) # Run post-install script
12+
print("\n✅ Setup.py executed successfully!\n") # Confirm setup execution
13+
14+
# Run post-install script
15+
subprocess.call(["python", "-m", "openize.markitdown.post_install:ask_license"])
16+
1117

1218
setup(
1319
setup_requires=['setuptools'],

packages/markitdown/src/openize/markitdown/__init__.py

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
1-
# packages/markitdown/src/openize/markitdown/__init__.py
2-
"""
3-
Openize.MarkItDown - Convert documents to Markdown format
1+
import sys
2+
import os
43

5-
This package provides utilities to convert various document formats
6-
(.docx, .pdf, .xlsx, .pptx) to Markdown format.
7-
"""
4+
sys.path.append(os.path.dirname(__file__))
85

9-
__version__ = "25.3.8"
6+
__version__ = "25.3.9"
107

11-
from processor import DocumentProcessor
12-
from converters import WordConverter, PDFConverter, ExcelConverter, PowerPointConverter
13-
from factory import ConverterFactory
14-
from llm_strategy import SaveLocally, InsertIntoLLM
15-
from license_manager import LicenseManager
8+
from .processor import DocumentProcessor
9+
from .converters import WordConverter, PDFConverter, ExcelConverter, PowerPointConverter
10+
from .factory import ConverterFactory
11+
from .llm_strategy import SaveLocally, InsertIntoLLM
12+
from .license_manager import LicenseManager
1613

1714
__all__ = [
1815
'DocumentProcessor',

0 commit comments

Comments
 (0)