-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
104 lines (87 loc) · 3.1 KB
/
setup.py
File metadata and controls
104 lines (87 loc) · 3.1 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#!/usr/bin/env python3
"""
OCRmyPDF Qt GUI Client - Setup Script
"""
from setuptools import setup, find_packages
import os
def read_requirements():
"""Read requirements from requirements.txt"""
requirements_path = os.path.join(os.path.dirname(__file__), 'requirements.txt')
with open(requirements_path, 'r', encoding='utf-8') as f:
requirements = []
for line in f:
line = line.strip()
if line and not line.startswith('#') and not line.startswith('-'):
requirements.append(line)
return requirements
def read_readme():
"""Read README file"""
readme_path = os.path.join(os.path.dirname(__file__), 'README.md')
if os.path.exists(readme_path):
with open(readme_path, 'r', encoding='utf-8') as f:
return f.read()
return "OCRmyPDF Qt GUI Client - A user-friendly interface for OCRmyPDF"
setup(
name="ocrmypdf-gui",
version="1.0.0",
description="A user-friendly Qt GUI client for OCRmyPDF",
long_description=read_readme(),
long_description_content_type="text/markdown",
author="OCRmyPDF GUI Team",
author_email="contact@ocrmypdf-gui.org",
url="https://github.com/tw4/OCRmyPDF-Qt-GUI-Client",
packages=find_packages(),
include_package_data=True,
install_requires=read_requirements(),
extras_require={
'dev': [
'pytest>=7.0.0',
'pytest-qt>=4.0.0',
'black>=22.0.0',
'flake8>=4.0.0',
'mypy>=0.950',
],
},
entry_points={
'console_scripts': [
'ocrmypdf-gui=main:main',
],
'gui_scripts': [
'ocrmypdf-gui-windowed=main:main',
],
},
package_data={
'': [
'resources/icons/*.png',
'resources/icons/*.ico',
'resources/translations/*.qm',
'resources/*.qss',
],
},
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: End Users/Desktop',
'Topic :: Office/Business :: Office Suites',
'Topic :: Multimedia :: Graphics :: Graphics Conversion',
'Topic :: Scientific/Engineering :: Image Recognition',
'License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Environment :: X11 Applications :: Qt',
'Environment :: Win32 (MS Windows)',
'Environment :: MacOS X',
],
python_requires='>=3.8',
keywords='ocr pdf tesseract gui pyqt5 document-processing',
project_urls={
'Bug Reports': 'https://github.com/tw4/OCRmyPDF-Qt-GUI-Client/issues',
'Source': 'https://github.com/tw4/OCRmyPDF-Qt-GUI-Client',
'Documentation': 'https://github.com/tw4/OCRmyPDF-Qt-GUI-Client',
},
zip_safe=False,
)