-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
118 lines (108 loc) · 2.98 KB
/
Copy pathsetup.py
File metadata and controls
118 lines (108 loc) · 2.98 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
"""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"])
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", "*~", "fweb"]
sri()
dos_req()
setup(
name="filewarp",
author="wambua",
author_email="swskye17@gmail.com",
version=open(os.path.abspath("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",
url="https://pypi.org/project/filewarp/",
entry_points={
"console_scripts": [
"filewarp=filewarp:main",
"warp=filewarp:main",
"Filewarp=filewarp:main",
"audiobot=filewarp:audiobot",
],
},
python_requires=">=3.8",
install_requires=[
"argparse",
"pdfminer.six",
"python-docx",
"python-pptx",
"gTTS",
"pypandoc",
"pydub",
"Pillow",
"pandas",
"opencv-python",
"pytesseract",
"PyPDF2",
"pdf2docx", # Needs pymupdf
"pymupdf",
"requests",
"moviepy",
"reportlab",
"numpy",
"pdf2image",
#"poppler", # Required by pdf2image
"openpyxl",
"rich",
"tqdm",
"ffmpeg-python",
"librosa",
"python-magic",
"matplotlib",
"numpy",
"soundfile",
"SpeechRecognition",
"colorama",
"scipy",
"PyMuPDF",
"pyautogui",
"imageio",
"pynput",
"pyaudio",
"cairosvg",
],
include_package_data=True,
zip_safe=False,
license="GNU v3",
keywords=[
"file-conversion",
"document-conversion",
"file-analysis",
"image-conversion",
"file-manipulation",
"audio-conversion",
"ocr",
"image-conversion",
"audio_effects",
"voice_shift",
"pdf",
"docx",
],
classifiers=[
"Environment :: Console",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
],
)