-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
68 lines (58 loc) · 2.44 KB
/
setup.py
File metadata and controls
68 lines (58 loc) · 2.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import os
from setuptools import setup, find_packages
# Read long description from README
# (ताकि PyPI पर प्रोजेक्ट का पूरा विवरण दिखे)
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setup(
name="kritidocx", # पैकेज का नाम (pip install kritidocx)
version="0.1.1",
author="KritiDocX Team",
author_email="kritidocx@gmail.com",
description="A Pro-Level HTML to DOCX Converter with Math/Latex Support.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/hoffawhy/KritiDocX",
project_urls={
"Documentation": "https://hoffawhy.github.io/KritiDocX/",
"Live Demo (Test)": "https://kritidocx.hoffawhy.com",
"Source Code": "https://github.com/hoffawhy/KritiDocX",
"Bug Tracker": "https://github.com/hoffawhy/KritiDocX/issues",
},
# 🕵️ Source Finding Logic
packages=find_packages(),
# 🎨 Asset Inclusion (Templates & XSLT)
# यह 'MANIFEST.in' के साथ मिलकर काम करता है
include_package_data=True,
# ⚙️ Python Compatibility
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Text Processing :: Markup :: HTML",
"Topic :: Office/Business :: Office Suites",
],
python_requires='>=3.8',
# 📦 Required Libraries (pip इसे अपने आप डाउनलोड करेगा)
# हमने requirements.txt की सामग्री को यहाँ डाल दिया है
install_requires=[
"python-docx>=0.8.11",
"beautifulsoup4>=4.9.0",
"lxml>=4.6.0",
"Pillow>=8.0.0",
"requests>=2.25.0",
"Markdown>=3.3.0",
"psutil>=5.8.0",
"latex2mathml>=1.9.0",
# For Safe imports resources in Step 2 (Optional for old Pythons)
"importlib_resources; python_version<'3.9'",
],
# 🔌 Entry Point (Optional)
# अगर आप कमांड लाइन टूल बनाना चाहते हैं: `kritidocx input.html`
entry_points={
'console_scripts': [
'kritidocx=kritidocx.__main__:main',
],
},
)