-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
69 lines (66 loc) · 2.4 KB
/
Copy pathsetup.py
File metadata and controls
69 lines (66 loc) · 2.4 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
69
#!/usr/bin/env python3
"""
Legacy setuptools entry point for DocStripper
"""
from setuptools import setup
from pathlib import Path
# Read README for long description
readme_file = Path(__file__).parent / "README.md"
long_description = readme_file.read_text(encoding='utf-8') if readme_file.exists() else ""
# Read version from tool.py (extract __version__ if exists, otherwise use default)
version = "2.1.0"
try:
tool_file = Path(__file__).parent / "tool.py"
if tool_file.exists():
content = tool_file.read_text(encoding='utf-8')
# Try to find version in comments or use default
for line in content.split('\n')[:50]:
if 'version' in line.lower() and ('2.' in line or 'v2' in line.lower()):
import re
match = re.search(r'(\d+\.\d+\.\d+)', line)
if match:
version = match.group(1)
break
except:
pass
setup(
name="docstripper",
version=version,
author="Kiku",
author_email="", # Add email if needed
description="Batch document cleaner - Remove noise from text documents automatically",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/KikuAI-Lab/DocStripper",
py_modules=["tool"],
scripts=[],
entry_points={
"console_scripts": [
"docstripper=tool:main",
],
},
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Text Processing :: Filters",
"Topic :: Utilities",
],
python_requires=">=3.9",
install_requires=[], # No dependencies - uses only stdlib
extras_require={
"pdf": [], # pdftotext is external dependency
},
keywords="document cleaner, text processing, pdf, docx, batch processing",
project_urls={
"Bug Reports": "https://github.com/KikuAI-Lab/DocStripper/issues",
"Source": "https://github.com/KikuAI-Lab/DocStripper",
"Documentation": "https://github.com/KikuAI-Lab/DocStripper/wiki",
},
)