-
Notifications
You must be signed in to change notification settings - Fork 14
/
setup.py
65 lines (56 loc) · 1.92 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
#!/usr/bin/env python3
"""
This module contains the setup script for installing the package.
"""
import os
import subprocess
from setuptools import find_packages, setup
from setuptools.command.install import install
DESCRIPTION = """
Mimasa is a real-time multilingual face translator application that takes a video input,
detects the facial patterns and speech of the person, translates the speech to another language
and changes the facial expression of the person to match the output language. The final output
is a video with the translated speech and modified facial expression.
"""
class LintCommand(install):
"""Custom command to run linting on package installation."""
def run(self):
"""Run linter."""
subprocess.call(["pylint", "src"])
install.run(self)
with open("requirements.txt", encoding="utf-8") as f:
requirements = f.read().splitlines()
os.environ["PYTHONPATH"] = os.path.join(os.getcwd(), "src")
author_list = ["Yellenki Ritheesh Baradwaj"]
setup(
name="Mimasa",
version="1.1.3",
author=", ".join(author_list),
author_email="[email protected]",
description="A Real-time Multilingual Face Translator",
long_description=DESCRIPTION,
url="https://github.com/developers-cosmos/Mimasa",
packages=find_packages(),
install_requires=requirements,
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires=">=3.6",
scripts=["src/main.py"],
include_package_data=True,
package_data={
"": ["*.txt"],
},
entry_points={
"console_scripts": [
"mimasa = src.main:main",
],
},
env={"PYTHONPATH": os.path.abspath(os.path.join(os.path.dirname(__file__), "src"))},
# NOTE: Disbale the following lines to avoid lint checking
cmdclass={
"install": LintCommand,
},
)