-
Notifications
You must be signed in to change notification settings - Fork 26
/
setup.py
52 lines (43 loc) · 1.55 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
from setuptools import find_packages, setup
import os
version_file = "fastvqa/version.py"
def readme():
with open("README.md", encoding="utf-8") as f:
content = f.read()
return content
def get_version():
with open(version_file, "r") as f:
exec(compile(f.read(), version_file, "exec"))
return locals()["__version__"]
def get_requirements(filename="requirements.txt"):
here = os.path.dirname(os.path.realpath(__file__))
with open(os.path.join(here, filename), "r") as f:
requires = [line.replace("\n", "") for line in f.readlines()]
return requires
setup(
name="fastvqa",
version=get_version(),
description="Very Efficient End-to-End VQA Toolbox",
long_description=readme(),
long_description_content_type="text/markdown",
author="Timothy H. Wu",
author_email="realtimothyhwu@gmail.com",
keywords="computer vision, video quality assessment",
url="https://github.com/timothyhtimothy/fast-vqa",
include_package_data=True,
packages=find_packages(exclude=("demos", "examplar_data_labels", "results")),
classifiers=[
"Development Status :: 4 - Beta",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
license="Apache License 2.0",
setup_requires=["numpy"],
install_requires=get_requirements(),
ext_modules=[],
cmdclass={},
zip_safe=False,
)