-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py~
106 lines (93 loc) · 2.97 KB
/
setup.py~
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
105
106
'''Build package.'''
import os
import subprocess
from setuptools import find_namespace_packages, setup
def sri():
if os.name == 'posix':
result = subprocess.run(
['dpkg', '-l', 'poppler-utils'], stdout=subprocess.PIPE, text=True)
if result.returncode != 0:
print("Requirement poppler-utils installing")
subprocess.run(['sudo', 'apt', 'install', 'poppler-utils'])
result = subprocess.run(
['dpkg', '-l', 'speedtest-cli'], stdout=subprocess.PIPE, text=True)
'''if result.returncode != 0:
print("Requirement speedtest-cli -> installing")
subprocess.run(['sudo', 'apt', 'install', 'speedtest-cli'])'''
def dos_req():
if os.name == 'posix':
subprocess.run(
['pip', 'install', 'pdf2docx'], stdout=subprocess.PIPE, text=True)
DESCRIPTION = 'Open source Python CLI toolkit for conversion, manipulation, Analysis of files (All major file operations)'
EXCLUDE_FROM_PACKAGES = ["build", "dist", "test", "src"]
sri()
dos
setup(
name="filemac",
author='wambua',
author_email='[email protected]',
version=open("version.txt").read(),
packages=find_namespace_packages(exclude=EXCLUDE_FROM_PACKAGES),
description=DESCRIPTION,
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
entry_points={
"console_scripts": [
"filemac=filemac:main",
"Filemac=filemac:main",
"FILEMAC=filemac:main",
],
},
python_requires=">=3.6",
install_requires=[
'argparse',
'pdfminer.six',
'python-docx',
'python-pptx',
'gTTS',
'pypandoc',
'pydub',
'requests',
'Pillow',
'pandas',
'opencv-python',
'pytesseract',
'PyPDF2',
'pdf2docx',
'requests',
'moviepy',
'reportlab',
'numpy',
'pdf2image',
'openpyxl',
'rich',
'tqdm',
'ffmpeg-python',
'librosa',
'python-magic',
'matplotlib',
'numpy',
'soundfile',
'SpeechRecognition',
'colorama',
'scipy'
],
include_package_data=True,
zip_safe=False,
license="GPL v3",
keywords=["file-conversion", "file-analysis", "file-manipulation", "ocr", "image-conversion"],
classifiers=[
"Environment :: Console",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"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",
],
)